@nexgencloud/hyperstack-sdk-javascript 1.22.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +640 -0
- package/dist/ApiClient.js +710 -0
- package/dist/api/AliveApi.js +75 -0
- package/dist/api/ApiKeyApi.js +209 -0
- package/dist/api/AssigningMemberRoleApi.js +136 -0
- package/dist/api/AuthApi.js +79 -0
- package/dist/api/BillingApi.js +974 -0
- package/dist/api/CalculateApi.js +94 -0
- package/dist/api/CallbacksApi.js +318 -0
- package/dist/api/ClusterEventsApi.js +85 -0
- package/dist/api/ClustersApi.js +269 -0
- package/dist/api/ComplianceApi.js +202 -0
- package/dist/api/CreditApi.js +77 -0
- package/dist/api/CustomerContractApi.js +183 -0
- package/dist/api/DashboardApi.js +79 -0
- package/dist/api/DeploymentApi.js +195 -0
- package/dist/api/EnvironmentApi.js +264 -0
- package/dist/api/FirewallAttachmentApi.js +92 -0
- package/dist/api/FirewallsApi.js +317 -0
- package/dist/api/FlavorApi.js +86 -0
- package/dist/api/FloatingIpApi.js +128 -0
- package/dist/api/GpuApi.js +79 -0
- package/dist/api/ImageApi.js +231 -0
- package/dist/api/InviteApi.js +162 -0
- package/dist/api/KeypairApi.js +224 -0
- package/dist/api/OrganizationApi.js +161 -0
- package/dist/api/PaymentApi.js +116 -0
- package/dist/api/PermissionApi.js +79 -0
- package/dist/api/PolicyApi.js +79 -0
- package/dist/api/PricebookApi.js +75 -0
- package/dist/api/ProfileApi.js +203 -0
- package/dist/api/RbacRoleApi.js +251 -0
- package/dist/api/RegionApi.js +79 -0
- package/dist/api/SecurityRulesApi.js +79 -0
- package/dist/api/SnapshotEventsApi.js +85 -0
- package/dist/api/SnapshotsApi.js +316 -0
- package/dist/api/StockApi.js +79 -0
- package/dist/api/TemplateApi.js +280 -0
- package/dist/api/UserApi.js +153 -0
- package/dist/api/UserDetailChoiceApi.js +79 -0
- package/dist/api/UserPermissionApi.js +120 -0
- package/dist/api/VirtualMachineApi.js +861 -0
- package/dist/api/VirtualMachineEventsApi.js +87 -0
- package/dist/api/VncUrlApi.js +132 -0
- package/dist/api/VolumeApi.js +295 -0
- package/dist/api/VolumeAttachmentApi.js +143 -0
- package/dist/index.js +2729 -0
- package/dist/model/AddUpdateFlavorOrganizationPayload.js +242 -0
- package/dist/model/AddUserInfoSuccessResponseModel.js +111 -0
- package/dist/model/AllocatedGPUCountGraph.js +97 -0
- package/dist/model/ApiKeyFields.js +129 -0
- package/dist/model/ApiKeyVerifyFields.js +117 -0
- package/dist/model/AssignRbacRolePayload.js +108 -0
- package/dist/model/AttachCallbackPayload.js +112 -0
- package/dist/model/AttachCallbackResponse.js +109 -0
- package/dist/model/AttachFirewallWithVM.js +112 -0
- package/dist/model/AttachFirewallsToVMPayload.js +113 -0
- package/dist/model/AttachVolumeFields.js +121 -0
- package/dist/model/AttachVolumes.js +130 -0
- package/dist/model/AttachVolumesPayload.js +89 -0
- package/dist/model/AuthGetTokenResponseModel.js +119 -0
- package/dist/model/AuthRequestLoginFields.js +101 -0
- package/dist/model/AuthRequestLoginResponseModel.js +111 -0
- package/dist/model/AuthUserFields.js +121 -0
- package/dist/model/AuthUserInfoResponseModel.js +111 -0
- package/dist/model/BillingImmuneResourcesResponse.js +111 -0
- package/dist/model/BillingResponse.js +130 -0
- package/dist/model/Billingmetricesfields.js +173 -0
- package/dist/model/Billingmetricesresponse.js +130 -0
- package/dist/model/ClusterEvents.js +130 -0
- package/dist/model/ClusterEventsFields.js +165 -0
- package/dist/model/ClusterFields.js +211 -0
- package/dist/model/ClusterListResponse.js +130 -0
- package/dist/model/ClusterResponse.js +111 -0
- package/dist/model/ClusterVersions.js +109 -0
- package/dist/model/CommonResponseModel.js +97 -0
- package/dist/model/ComplianceFields.js +125 -0
- package/dist/model/ComplianceModelFields.js +141 -0
- package/dist/model/CompliancePayload.js +166 -0
- package/dist/model/ComplianceResponse.js +111 -0
- package/dist/model/ContainerOverviewFields.js +117 -0
- package/dist/model/Contract.js +158 -0
- package/dist/model/ContractBillingHistory.js +105 -0
- package/dist/model/ContractBillingHistoryResponseAttributes.js +149 -0
- package/dist/model/ContractBillingHistoryResponseModel.js +111 -0
- package/dist/model/ContractChangePayload.js +166 -0
- package/dist/model/ContractDiscountPlanFields.js +165 -0
- package/dist/model/ContractEligibleInstanceFields.js +153 -0
- package/dist/model/ContractEligibleInstancesResponse.js +138 -0
- package/dist/model/ContractEventCreateModel.js +143 -0
- package/dist/model/ContractGPUAllocationGraphResponse.js +111 -0
- package/dist/model/ContractInstanceFields.js +153 -0
- package/dist/model/ContractInstancesResponse.js +130 -0
- package/dist/model/ContractResourcePayload.js +146 -0
- package/dist/model/ContractlBillingHistoryResponseMetrics.js +85 -0
- package/dist/model/CreateClusterPayload.js +206 -0
- package/dist/model/CreateContractFields.js +170 -0
- package/dist/model/CreateContractPayload.js +178 -0
- package/dist/model/CreateDiscountResponse.js +111 -0
- package/dist/model/CreateDiscountsPayload.js +192 -0
- package/dist/model/CreateEnvironment.js +128 -0
- package/dist/model/CreateFirewallPayload.js +137 -0
- package/dist/model/CreateFirewallRulePayload.js +314 -0
- package/dist/model/CreateGPU.js +137 -0
- package/dist/model/CreateImage.js +105 -0
- package/dist/model/CreateImagePayload.js +126 -0
- package/dist/model/CreateInstancesPayload.js +320 -0
- package/dist/model/CreateInstancesResponse.js +130 -0
- package/dist/model/CreateProfilePayload.js +139 -0
- package/dist/model/CreateProfileResponse.js +111 -0
- package/dist/model/CreateSecurityRulePayload.js +312 -0
- package/dist/model/CreateSnapshotPayload.js +152 -0
- package/dist/model/CreateSnapshotResponse.js +111 -0
- package/dist/model/CreateUpdateComplianceResponse.js +111 -0
- package/dist/model/CreateUpdatePermissionPayload.js +154 -0
- package/dist/model/CreateUpdatePermissionResponseModel.js +111 -0
- package/dist/model/CreateUpdatePolicyPayload.js +150 -0
- package/dist/model/CreateUpdatePolicyResponseModel.js +111 -0
- package/dist/model/CreateUpdateRbacRolePayload.js +152 -0
- package/dist/model/CreateVolumePayload.js +189 -0
- package/dist/model/Creditrechargelimitfield.js +109 -0
- package/dist/model/Creditrechargelimitresponse.js +130 -0
- package/dist/model/Creditrequestresponse.js +130 -0
- package/dist/model/Creditrequests.js +125 -0
- package/dist/model/CustomerContractDetailResponseModel.js +111 -0
- package/dist/model/CustomerContractFields.js +182 -0
- package/dist/model/CustomerFields.js +97 -0
- package/dist/model/CustomerPayload.js +122 -0
- package/dist/model/DashboardInfoResponse.js +111 -0
- package/dist/model/Data.js +108 -0
- package/dist/model/DeploymentFields.js +141 -0
- package/dist/model/DeploymentFieldsforstartdeployments.js +153 -0
- package/dist/model/Deployments.js +130 -0
- package/dist/model/DetachVolumes.js +130 -0
- package/dist/model/DetachVolumesPayload.js +89 -0
- package/dist/model/DiscountEntityModel.js +122 -0
- package/dist/model/DiscountFields.js +149 -0
- package/dist/model/DiscountPlanFields.js +181 -0
- package/dist/model/DiscountResourceFields.js +113 -0
- package/dist/model/DiscountResourcePayload.js +142 -0
- package/dist/model/EditlabelofanexistingVMPayload.js +90 -0
- package/dist/model/Environment.js +111 -0
- package/dist/model/EnvironmentFeatures.js +85 -0
- package/dist/model/EnvironmentFields.js +131 -0
- package/dist/model/EnvironmentFieldsforVolume.js +89 -0
- package/dist/model/Environments.js +154 -0
- package/dist/model/ErrorResponseModel.js +112 -0
- package/dist/model/ExcludeBillingPostPayload.js +135 -0
- package/dist/model/ExcludeBillingPostResponse.js +91 -0
- package/dist/model/ExportBillingDataRequest.js +186 -0
- package/dist/model/ExportBillingDataResponse.js +101 -0
- package/dist/model/FieldChange.js +116 -0
- package/dist/model/FirewallAttachmentModel.js +119 -0
- package/dist/model/FirewallAttachmentVMModel.js +141 -0
- package/dist/model/FirewallDetailFields.js +206 -0
- package/dist/model/FirewallDetailResponse.js +111 -0
- package/dist/model/FirewallEnvironmentFields.js +109 -0
- package/dist/model/FirewallFields.js +143 -0
- package/dist/model/FirewallResponse.js +111 -0
- package/dist/model/FirewallRule.js +111 -0
- package/dist/model/FirewallsListResponse.js +154 -0
- package/dist/model/FlavorFields.js +222 -0
- package/dist/model/FlavorItemGetResponse.js +134 -0
- package/dist/model/FlavorListResponse.js +130 -0
- package/dist/model/FlavorObjectFields.js +121 -0
- package/dist/model/FlavorPayload.js +190 -0
- package/dist/model/FlavorResponse.js +111 -0
- package/dist/model/FlavorVMFields.js +149 -0
- package/dist/model/FlavorVMsResponse.js +130 -0
- package/dist/model/FutureNodeModel.js +171 -0
- package/dist/model/FutureNodeResponseModel.js +122 -0
- package/dist/model/FutureNodeStockModel.js +128 -0
- package/dist/model/FutureNodeUpdateModel.js +152 -0
- package/dist/model/FutureNodesStockModel.js +110 -0
- package/dist/model/GPU.js +111 -0
- package/dist/model/GPUFields.js +158 -0
- package/dist/model/GPUList.js +130 -0
- package/dist/model/GPURegionFields.js +97 -0
- package/dist/model/GenerateUpdateApiKeyPayload.js +124 -0
- package/dist/model/GenerateUpdateApiKeyResponseModel.js +111 -0
- package/dist/model/GetAllContractFields.js +137 -0
- package/dist/model/GetAllContractsResponseModel.js +130 -0
- package/dist/model/GetAllDiscountForAllOrganizationResponse.js +130 -0
- package/dist/model/GetAllDiscountsFields.js +158 -0
- package/dist/model/GetApiKeysResponseModel.js +130 -0
- package/dist/model/GetCustomerContractsListResponseModel.js +138 -0
- package/dist/model/GetDiscountDetailResponse.js +111 -0
- package/dist/model/GetDiscountResponse.js +130 -0
- package/dist/model/GetEntityDiscountDetailResponse.js +159 -0
- package/dist/model/GetInvitesResponseModel.js +130 -0
- package/dist/model/GetOrganizationResponseModel.js +111 -0
- package/dist/model/GetPermissionsResponseModel.js +130 -0
- package/dist/model/GetPoliciesResponseModel.js +130 -0
- package/dist/model/GetRbacRolesResponseModel.js +130 -0
- package/dist/model/GetTokenPayload.js +126 -0
- package/dist/model/GetUserPermissionsResponseModel.js +130 -0
- package/dist/model/GetVersionResponse.js +109 -0
- package/dist/model/Getcreditandthresholdinfo.js +101 -0
- package/dist/model/Getcreditandthresholdinfoinresponse.js +111 -0
- package/dist/model/GraphDatetimeValueModel.js +97 -0
- package/dist/model/HistoricalInstance.js +138 -0
- package/dist/model/HistoricalInstancesFields.js +201 -0
- package/dist/model/Image.js +91 -0
- package/dist/model/ImageFields.js +206 -0
- package/dist/model/ImageGetResponse.js +146 -0
- package/dist/model/ImageLogos.js +130 -0
- package/dist/model/Images.js +130 -0
- package/dist/model/ImportKeypairPayload.js +143 -0
- package/dist/model/ImportKeypairResponse.js +111 -0
- package/dist/model/InfrahubResourceObjectResponse.js +222 -0
- package/dist/model/InfrahubResourceObjectResponseForCustomer.js +182 -0
- package/dist/model/InsertDiscountPlanFields.js +168 -0
- package/dist/model/Instance.js +111 -0
- package/dist/model/InstanceEnvironmentFields.js +131 -0
- package/dist/model/InstanceEvents.js +130 -0
- package/dist/model/InstanceEventsFields.js +157 -0
- package/dist/model/InstanceFields.js +368 -0
- package/dist/model/InstanceFlavorFields.js +149 -0
- package/dist/model/InstanceImageFields.js +89 -0
- package/dist/model/InstanceKeypairFields.js +89 -0
- package/dist/model/InstanceOverviewFields.js +117 -0
- package/dist/model/InstanceResizePayload.js +103 -0
- package/dist/model/Instances.js +154 -0
- package/dist/model/InstancesSummaryFields.js +249 -0
- package/dist/model/InternalEnvironmentFields.js +117 -0
- package/dist/model/InternalInstanceFields.js +344 -0
- package/dist/model/InternalInstanceFlavorFields.js +161 -0
- package/dist/model/InternalInstanceImageFields.js +133 -0
- package/dist/model/InternalInstanceKeypairFields.js +141 -0
- package/dist/model/InternalInstancesResponse.js +130 -0
- package/dist/model/InternalSecurityRulesFieldsForInstance.js +169 -0
- package/dist/model/InternalVolumeAttachmentFields.js +123 -0
- package/dist/model/InternalVolumeFields.js +129 -0
- package/dist/model/InternalVolumesResponse.js +130 -0
- package/dist/model/InviteFields.js +117 -0
- package/dist/model/InviteUserPayload.js +113 -0
- package/dist/model/InviteUserResponseModel.js +111 -0
- package/dist/model/KeypairFields.js +141 -0
- package/dist/model/Keypairs.js +154 -0
- package/dist/model/LableResonse.js +97 -0
- package/dist/model/Lastdaycostfields.js +109 -0
- package/dist/model/Lastdaycostresponse.js +111 -0
- package/dist/model/LogoGetResponse.js +109 -0
- package/dist/model/LogoutPayload.js +112 -0
- package/dist/model/MetricItemFields.js +113 -0
- package/dist/model/MetricsFields.js +156 -0
- package/dist/model/NameAvailableModel.js +109 -0
- package/dist/model/NewConfigurationsResponse.js +117 -0
- package/dist/model/NewModelResponse.js +151 -0
- package/dist/model/NewStockResponse.js +134 -0
- package/dist/model/NewStockRetriveResponse.js +110 -0
- package/dist/model/NewStockUpdateResponseModel.js +97 -0
- package/dist/model/NodeModel.js +230 -0
- package/dist/model/NodePayloadModel.js +122 -0
- package/dist/model/NodePowerUsageModel.js +244 -0
- package/dist/model/NodeResponseModel.js +122 -0
- package/dist/model/NodeStockPayloadModel.js +110 -0
- package/dist/model/NodeStockResponseModel.js +110 -0
- package/dist/model/NodeStocksPayload.js +144 -0
- package/dist/model/OrganizationFields.js +208 -0
- package/dist/model/OrganizationLevelBillingHistory.js +126 -0
- package/dist/model/OrganizationLevelBillingHistoryResources.js +105 -0
- package/dist/model/OrganizationLevelBillingHistoryResponseAttributes.js +89 -0
- package/dist/model/OrganizationLevelBillingHistoryResponseMetrics.js +125 -0
- package/dist/model/OrganizationLevelBillingHistoryResponseModel.js +111 -0
- package/dist/model/OrganizationObjectResponse.js +118 -0
- package/dist/model/OrganizationThresholdfields.js +125 -0
- package/dist/model/OrganizationUserResponseModel.js +194 -0
- package/dist/model/Organizationcreditrechargelimitresponse.js +111 -0
- package/dist/model/Organizationthresholdsresponse.js +130 -0
- package/dist/model/Organizationthresholdupdateresponse.js +111 -0
- package/dist/model/OverviewInfo.js +119 -0
- package/dist/model/PaginationData.js +101 -0
- package/dist/model/PaymentDetailsFields.js +185 -0
- package/dist/model/PaymentDetailsResponse.js +111 -0
- package/dist/model/PaymentInitiateFields.js +89 -0
- package/dist/model/PaymentInitiatePayload.js +85 -0
- package/dist/model/PaymentInitiateResponse.js +111 -0
- package/dist/model/PermissionFields.js +141 -0
- package/dist/model/PolicyFields.js +150 -0
- package/dist/model/PolicyPermissionFields.js +109 -0
- package/dist/model/PowerUsageModel.js +122 -0
- package/dist/model/PricebookModel.js +137 -0
- package/dist/model/PricebookResourceObjectResponse.js +173 -0
- package/dist/model/PricebookResourceObjectResponseForCustomer.js +141 -0
- package/dist/model/ProfileFields.js +129 -0
- package/dist/model/ProfileListResponse.js +130 -0
- package/dist/model/ProfileObjectFields.js +124 -0
- package/dist/model/RbacRoleDetailResponseModel.js +111 -0
- package/dist/model/RbacRoleDetailResponseModelFixed.js +111 -0
- package/dist/model/RbacRoleField.js +89 -0
- package/dist/model/RbacRoleFields.js +180 -0
- package/dist/model/RefreshTokenPayload.js +126 -0
- package/dist/model/RegionFields.js +109 -0
- package/dist/model/RegionPayload.js +124 -0
- package/dist/model/RegionResponse.js +111 -0
- package/dist/model/Regions.js +130 -0
- package/dist/model/RemoveMemberFromOrganizationResponseModel.js +97 -0
- package/dist/model/RemoveMemberPayload.js +113 -0
- package/dist/model/RequestConsole.js +109 -0
- package/dist/model/ResourceBillingEventsHistoryMetrics.js +125 -0
- package/dist/model/ResourceBillingEventsHistoryResponse.js +130 -0
- package/dist/model/ResourceBillingResponseForCustomer.js +111 -0
- package/dist/model/ResourceLevelBillingDetailsAttributes.js +109 -0
- package/dist/model/ResourceLevelBillingDetailsMetrics.js +141 -0
- package/dist/model/ResourceLevelBillingDetailsVM.js +126 -0
- package/dist/model/ResourceLevelBillingDetailsVolume.js +126 -0
- package/dist/model/ResourceLevelBillingDetailsVolumeAttributes.js +129 -0
- package/dist/model/ResourceLevelBillingDetailsVolumeMetrics.js +117 -0
- package/dist/model/ResourceLevelBillingHistory.js +140 -0
- package/dist/model/ResourceLevelBillingHistoryResources.js +105 -0
- package/dist/model/ResourceLevelBillingHistoryResponseAttributes.js +121 -0
- package/dist/model/ResourceLevelBillingHistoryResponseMetrics.js +101 -0
- package/dist/model/ResourceLevelBillingVMDetailsResources.js +105 -0
- package/dist/model/ResourceLevelBillingVolumeDetailsResources.js +105 -0
- package/dist/model/ResourceLevelGraphBillingDetailVolume.js +134 -0
- package/dist/model/ResourceLevelGraphBillingDetailsAttributes.js +109 -0
- package/dist/model/ResourceLevelGraphBillingDetailsMetrics.js +118 -0
- package/dist/model/ResourceLevelGraphBillingDetailsVM.js +134 -0
- package/dist/model/ResourceLevelGraphBillingVMDetailsResources.js +105 -0
- package/dist/model/ResourceLevelGraphBillingVolumeDetailsResources.js +105 -0
- package/dist/model/ResourceLevelVMBillingDetailsResponseModel.js +111 -0
- package/dist/model/ResourceLevelVmBillingHistoryResponseModel.js +111 -0
- package/dist/model/ResourceLevelVmGraphBillingDetailsResponseModel.js +111 -0
- package/dist/model/ResourceLevelVolumeBillingDetailsResponseModel.js +111 -0
- package/dist/model/ResourceLevelVolumeBillingHistoryResponseModel.js +111 -0
- package/dist/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js +111 -0
- package/dist/model/ResourceObjectResponseForCustomer.js +99 -0
- package/dist/model/ResponseModel.js +97 -0
- package/dist/model/RolePermissionFields.js +109 -0
- package/dist/model/RolePolicyFields.js +109 -0
- package/dist/model/SecurityGroupRule.js +111 -0
- package/dist/model/SecurityGroupRuleFields.js +169 -0
- package/dist/model/SecurityRulesFieldsforInstance.js +169 -0
- package/dist/model/SecurityRulesProtocolFields.js +109 -0
- package/dist/model/SetDefaultsPayload.js +126 -0
- package/dist/model/SingleVisibilityUserResponse.js +128 -0
- package/dist/model/SnapshotFields.js +220 -0
- package/dist/model/SnapshotRestoreRequest.js +122 -0
- package/dist/model/SnapshotRetrieve.js +111 -0
- package/dist/model/SnapshotRetrieveFields.js +207 -0
- package/dist/model/Snapshots.js +154 -0
- package/dist/model/StartDeployment.js +111 -0
- package/dist/model/StartDeploymentPayload.js +146 -0
- package/dist/model/StockVisibilityUserListResponse.js +130 -0
- package/dist/model/StockVisibilityUserPayload.js +112 -0
- package/dist/model/SubResourceGraphBillingDetailsMetrics.js +303 -0
- package/dist/model/SubResourcesCostsResponseModel.js +134 -0
- package/dist/model/SubResourcesGraphBillingHistoryFields.js +105 -0
- package/dist/model/SubResourcesGraphResponseModel.js +111 -0
- package/dist/model/Subscribeorunsubscribeupdatepayload.js +109 -0
- package/dist/model/SuccessResponseModel.js +100 -0
- package/dist/model/Template.js +111 -0
- package/dist/model/TemplateFields.js +137 -0
- package/dist/model/Templates.js +130 -0
- package/dist/model/TokenFields.js +113 -0
- package/dist/model/UpdateContractPayload.js +168 -0
- package/dist/model/UpdateDiscountsPayload.js +160 -0
- package/dist/model/UpdateDiscountsStatusPayload.js +112 -0
- package/dist/model/UpdateEnvironment.js +113 -0
- package/dist/model/UpdateGPU.js +114 -0
- package/dist/model/UpdateKeypairName.js +113 -0
- package/dist/model/UpdateKeypairnameresponse.js +111 -0
- package/dist/model/UpdateOrganizationPayload.js +113 -0
- package/dist/model/UpdateOrganizationResponseModel.js +97 -0
- package/dist/model/UpdateTemplate.js +109 -0
- package/dist/model/UserDefaultChoiceForUserFields.js +101 -0
- package/dist/model/UserDefaultChoicesForUserResponse.js +130 -0
- package/dist/model/UserPermissionFields.js +109 -0
- package/dist/model/UserTransferPayload.js +122 -0
- package/dist/model/Userinfopostpayload.js +232 -0
- package/dist/model/UsersInfoFields.js +229 -0
- package/dist/model/UsersInfoListResponse.js +111 -0
- package/dist/model/VMUsageRequestPayload.js +113 -0
- package/dist/model/VMUsageResponse.js +138 -0
- package/dist/model/VNCURL.js +111 -0
- package/dist/model/VNCURLFields.js +97 -0
- package/dist/model/VerifyApiKeyPayload.js +113 -0
- package/dist/model/VerifyApiKeyResponseModel.js +111 -0
- package/dist/model/VirtualMachineUsage.js +117 -0
- package/dist/model/Volume.js +111 -0
- package/dist/model/VolumeAttachmentFields.js +123 -0
- package/dist/model/VolumeFields.js +211 -0
- package/dist/model/VolumeFieldsforInstance.js +137 -0
- package/dist/model/VolumeOverviewFields.js +101 -0
- package/dist/model/VolumeStatusChangeFields.js +125 -0
- package/dist/model/VolumeTypes.js +109 -0
- package/dist/model/Volumes.js +130 -0
- package/dist/model/VolumesLastStatusChangeResponse.js +130 -0
- package/dist/model/WarningMailLogFields.js +149 -0
- package/dist/model/WarningMailLogResponse.js +138 -0
- package/package.json +46 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Infrahub-API
|
|
19
|
+
* Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 1.0
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The CreateEnvironment model module.
|
|
31
|
+
* @module model/CreateEnvironment
|
|
32
|
+
* @version v1.22.0-alpha
|
|
33
|
+
*/
|
|
34
|
+
var CreateEnvironment = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>CreateEnvironment</code>.
|
|
37
|
+
* @alias module:model/CreateEnvironment
|
|
38
|
+
* @param name {String} The name of the environment being created.
|
|
39
|
+
* @param region {String} The geographic location of the data center where the environment is being created. To learn more about regions, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/regions).
|
|
40
|
+
*/
|
|
41
|
+
function CreateEnvironment(name, region) {
|
|
42
|
+
_classCallCheck(this, CreateEnvironment);
|
|
43
|
+
CreateEnvironment.initialize(this, name, region);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(CreateEnvironment, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, name, region) {
|
|
54
|
+
obj['name'] = name;
|
|
55
|
+
obj['region'] = region;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>CreateEnvironment</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
+
* @param {module:model/CreateEnvironment} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/CreateEnvironment} The populated <code>CreateEnvironment</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "constructFromObject",
|
|
67
|
+
value: function constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new CreateEnvironment();
|
|
70
|
+
if (data.hasOwnProperty('name')) {
|
|
71
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('region')) {
|
|
74
|
+
obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String');
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return obj;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Validates the JSON data with respect to <code>CreateEnvironment</code>.
|
|
82
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
83
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateEnvironment</code>.
|
|
84
|
+
*/
|
|
85
|
+
}, {
|
|
86
|
+
key: "validateJSON",
|
|
87
|
+
value: function validateJSON(data) {
|
|
88
|
+
// check to make sure all required properties are present in the JSON string
|
|
89
|
+
var _iterator = _createForOfIteratorHelper(CreateEnvironment.RequiredProperties),
|
|
90
|
+
_step;
|
|
91
|
+
try {
|
|
92
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
93
|
+
var property = _step.value;
|
|
94
|
+
if (!data.hasOwnProperty(property)) {
|
|
95
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
// ensure the json data is a string
|
|
99
|
+
} catch (err) {
|
|
100
|
+
_iterator.e(err);
|
|
101
|
+
} finally {
|
|
102
|
+
_iterator.f();
|
|
103
|
+
}
|
|
104
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
105
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
106
|
+
}
|
|
107
|
+
// ensure the json data is a string
|
|
108
|
+
if (data['region'] && !(typeof data['region'] === 'string' || data['region'] instanceof String)) {
|
|
109
|
+
throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data['region']);
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
}]);
|
|
114
|
+
}();
|
|
115
|
+
CreateEnvironment.RequiredProperties = ["name", "region"];
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* The name of the environment being created.
|
|
119
|
+
* @member {String} name
|
|
120
|
+
*/
|
|
121
|
+
CreateEnvironment.prototype['name'] = undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The geographic location of the data center where the environment is being created. To learn more about regions, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/regions).
|
|
125
|
+
* @member {String} region
|
|
126
|
+
*/
|
|
127
|
+
CreateEnvironment.prototype['region'] = undefined;
|
|
128
|
+
var _default = exports["default"] = CreateEnvironment;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Infrahub-API
|
|
19
|
+
* Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 1.0
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The CreateFirewallPayload model module.
|
|
31
|
+
* @module model/CreateFirewallPayload
|
|
32
|
+
* @version v1.22.0-alpha
|
|
33
|
+
*/
|
|
34
|
+
var CreateFirewallPayload = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>CreateFirewallPayload</code>.
|
|
37
|
+
* @alias module:model/CreateFirewallPayload
|
|
38
|
+
* @param environmentId {Number} ID of the environment.
|
|
39
|
+
* @param name {String} Name of the firewall.
|
|
40
|
+
*/
|
|
41
|
+
function CreateFirewallPayload(environmentId, name) {
|
|
42
|
+
_classCallCheck(this, CreateFirewallPayload);
|
|
43
|
+
CreateFirewallPayload.initialize(this, environmentId, name);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(CreateFirewallPayload, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, environmentId, name) {
|
|
54
|
+
obj['environment_id'] = environmentId;
|
|
55
|
+
obj['name'] = name;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>CreateFirewallPayload</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
+
* @param {module:model/CreateFirewallPayload} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/CreateFirewallPayload} The populated <code>CreateFirewallPayload</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "constructFromObject",
|
|
67
|
+
value: function constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new CreateFirewallPayload();
|
|
70
|
+
if (data.hasOwnProperty('description')) {
|
|
71
|
+
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('environment_id')) {
|
|
74
|
+
obj['environment_id'] = _ApiClient["default"].convertToType(data['environment_id'], 'Number');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('name')) {
|
|
77
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return obj;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Validates the JSON data with respect to <code>CreateFirewallPayload</code>.
|
|
85
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
86
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateFirewallPayload</code>.
|
|
87
|
+
*/
|
|
88
|
+
}, {
|
|
89
|
+
key: "validateJSON",
|
|
90
|
+
value: function validateJSON(data) {
|
|
91
|
+
// check to make sure all required properties are present in the JSON string
|
|
92
|
+
var _iterator = _createForOfIteratorHelper(CreateFirewallPayload.RequiredProperties),
|
|
93
|
+
_step;
|
|
94
|
+
try {
|
|
95
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
96
|
+
var property = _step.value;
|
|
97
|
+
if (!data.hasOwnProperty(property)) {
|
|
98
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
// ensure the json data is a string
|
|
102
|
+
} catch (err) {
|
|
103
|
+
_iterator.e(err);
|
|
104
|
+
} finally {
|
|
105
|
+
_iterator.f();
|
|
106
|
+
}
|
|
107
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
108
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
109
|
+
}
|
|
110
|
+
// ensure the json data is a string
|
|
111
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
112
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
113
|
+
}
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
}]);
|
|
117
|
+
}();
|
|
118
|
+
CreateFirewallPayload.RequiredProperties = ["environment_id", "name"];
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Description of the firewall.
|
|
122
|
+
* @member {String} description
|
|
123
|
+
*/
|
|
124
|
+
CreateFirewallPayload.prototype['description'] = undefined;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* ID of the environment.
|
|
128
|
+
* @member {Number} environment_id
|
|
129
|
+
*/
|
|
130
|
+
CreateFirewallPayload.prototype['environment_id'] = undefined;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Name of the firewall.
|
|
134
|
+
* @member {String} name
|
|
135
|
+
*/
|
|
136
|
+
CreateFirewallPayload.prototype['name'] = undefined;
|
|
137
|
+
var _default = exports["default"] = CreateFirewallPayload;
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Infrahub-API
|
|
19
|
+
* Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 1.0
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The CreateFirewallRulePayload model module.
|
|
31
|
+
* @module model/CreateFirewallRulePayload
|
|
32
|
+
* @version v1.22.0-alpha
|
|
33
|
+
*/
|
|
34
|
+
var CreateFirewallRulePayload = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>CreateFirewallRulePayload</code>.
|
|
37
|
+
* @alias module:model/CreateFirewallRulePayload
|
|
38
|
+
* @param direction {String} The direction of traffic that the firewall rule applies to.
|
|
39
|
+
* @param ethertype {String} The Ethernet type associated with the rule.
|
|
40
|
+
* @param protocol {module:model/CreateFirewallRulePayload.ProtocolEnum} The network protocol associated with the rule. Call the [`GET /core/sg-rules-protocols`](https://infrahub-api-doc.nexgencloud.com/#get-/core/sg-rules-protocols) endpoint to retrieve a list of permitted network protocols.
|
|
41
|
+
* @param remoteIpPrefix {String} The IP address range that is allowed to access the specified port. Use \"0.0.0.0/0\" to allow any IP address.
|
|
42
|
+
*/
|
|
43
|
+
function CreateFirewallRulePayload(direction, ethertype, protocol, remoteIpPrefix) {
|
|
44
|
+
_classCallCheck(this, CreateFirewallRulePayload);
|
|
45
|
+
CreateFirewallRulePayload.initialize(this, direction, ethertype, protocol, remoteIpPrefix);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Initializes the fields of this object.
|
|
50
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
51
|
+
* Only for internal use.
|
|
52
|
+
*/
|
|
53
|
+
return _createClass(CreateFirewallRulePayload, null, [{
|
|
54
|
+
key: "initialize",
|
|
55
|
+
value: function initialize(obj, direction, ethertype, protocol, remoteIpPrefix) {
|
|
56
|
+
obj['direction'] = direction;
|
|
57
|
+
obj['ethertype'] = ethertype;
|
|
58
|
+
obj['protocol'] = protocol;
|
|
59
|
+
obj['remote_ip_prefix'] = remoteIpPrefix;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Constructs a <code>CreateFirewallRulePayload</code> from a plain JavaScript object, optionally creating a new instance.
|
|
64
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
65
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
66
|
+
* @param {module:model/CreateFirewallRulePayload} obj Optional instance to populate.
|
|
67
|
+
* @return {module:model/CreateFirewallRulePayload} The populated <code>CreateFirewallRulePayload</code> instance.
|
|
68
|
+
*/
|
|
69
|
+
}, {
|
|
70
|
+
key: "constructFromObject",
|
|
71
|
+
value: function constructFromObject(data, obj) {
|
|
72
|
+
if (data) {
|
|
73
|
+
obj = obj || new CreateFirewallRulePayload();
|
|
74
|
+
if (data.hasOwnProperty('direction')) {
|
|
75
|
+
obj['direction'] = _ApiClient["default"].convertToType(data['direction'], 'String');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('ethertype')) {
|
|
78
|
+
obj['ethertype'] = _ApiClient["default"].convertToType(data['ethertype'], 'String');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('port_range_max')) {
|
|
81
|
+
obj['port_range_max'] = _ApiClient["default"].convertToType(data['port_range_max'], 'Number');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('port_range_min')) {
|
|
84
|
+
obj['port_range_min'] = _ApiClient["default"].convertToType(data['port_range_min'], 'Number');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('protocol')) {
|
|
87
|
+
obj['protocol'] = _ApiClient["default"].convertToType(data['protocol'], 'String');
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('remote_ip_prefix')) {
|
|
90
|
+
obj['remote_ip_prefix'] = _ApiClient["default"].convertToType(data['remote_ip_prefix'], 'String');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return obj;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Validates the JSON data with respect to <code>CreateFirewallRulePayload</code>.
|
|
98
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
99
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateFirewallRulePayload</code>.
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
102
|
+
key: "validateJSON",
|
|
103
|
+
value: function validateJSON(data) {
|
|
104
|
+
// check to make sure all required properties are present in the JSON string
|
|
105
|
+
var _iterator = _createForOfIteratorHelper(CreateFirewallRulePayload.RequiredProperties),
|
|
106
|
+
_step;
|
|
107
|
+
try {
|
|
108
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
109
|
+
var property = _step.value;
|
|
110
|
+
if (!data.hasOwnProperty(property)) {
|
|
111
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
// ensure the json data is a string
|
|
115
|
+
} catch (err) {
|
|
116
|
+
_iterator.e(err);
|
|
117
|
+
} finally {
|
|
118
|
+
_iterator.f();
|
|
119
|
+
}
|
|
120
|
+
if (data['direction'] && !(typeof data['direction'] === 'string' || data['direction'] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `direction` to be a primitive type in the JSON string but got " + data['direction']);
|
|
122
|
+
}
|
|
123
|
+
// ensure the json data is a string
|
|
124
|
+
if (data['ethertype'] && !(typeof data['ethertype'] === 'string' || data['ethertype'] instanceof String)) {
|
|
125
|
+
throw new Error("Expected the field `ethertype` to be a primitive type in the JSON string but got " + data['ethertype']);
|
|
126
|
+
}
|
|
127
|
+
// ensure the json data is a string
|
|
128
|
+
if (data['protocol'] && !(typeof data['protocol'] === 'string' || data['protocol'] instanceof String)) {
|
|
129
|
+
throw new Error("Expected the field `protocol` to be a primitive type in the JSON string but got " + data['protocol']);
|
|
130
|
+
}
|
|
131
|
+
// ensure the json data is a string
|
|
132
|
+
if (data['remote_ip_prefix'] && !(typeof data['remote_ip_prefix'] === 'string' || data['remote_ip_prefix'] instanceof String)) {
|
|
133
|
+
throw new Error("Expected the field `remote_ip_prefix` to be a primitive type in the JSON string but got " + data['remote_ip_prefix']);
|
|
134
|
+
}
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
}]);
|
|
138
|
+
}();
|
|
139
|
+
CreateFirewallRulePayload.RequiredProperties = ["direction", "ethertype", "protocol", "remote_ip_prefix"];
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The direction of traffic that the firewall rule applies to.
|
|
143
|
+
* @member {String} direction
|
|
144
|
+
*/
|
|
145
|
+
CreateFirewallRulePayload.prototype['direction'] = undefined;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The Ethernet type associated with the rule.
|
|
149
|
+
* @member {String} ethertype
|
|
150
|
+
*/
|
|
151
|
+
CreateFirewallRulePayload.prototype['ethertype'] = undefined;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The maximum port number in the range of ports to be allowed by the firewall rule.
|
|
155
|
+
* @member {Number} port_range_max
|
|
156
|
+
*/
|
|
157
|
+
CreateFirewallRulePayload.prototype['port_range_max'] = undefined;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* The minimum port number in the range of ports to be allowed by the firewall rule.
|
|
161
|
+
* @member {Number} port_range_min
|
|
162
|
+
*/
|
|
163
|
+
CreateFirewallRulePayload.prototype['port_range_min'] = undefined;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The network protocol associated with the rule. Call the [`GET /core/sg-rules-protocols`](https://infrahub-api-doc.nexgencloud.com/#get-/core/sg-rules-protocols) endpoint to retrieve a list of permitted network protocols.
|
|
167
|
+
* @member {module:model/CreateFirewallRulePayload.ProtocolEnum} protocol
|
|
168
|
+
*/
|
|
169
|
+
CreateFirewallRulePayload.prototype['protocol'] = undefined;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The IP address range that is allowed to access the specified port. Use \"0.0.0.0/0\" to allow any IP address.
|
|
173
|
+
* @member {String} remote_ip_prefix
|
|
174
|
+
*/
|
|
175
|
+
CreateFirewallRulePayload.prototype['remote_ip_prefix'] = undefined;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Allowed values for the <code>protocol</code> property.
|
|
179
|
+
* @enum {String}
|
|
180
|
+
* @readonly
|
|
181
|
+
*/
|
|
182
|
+
CreateFirewallRulePayload['ProtocolEnum'] = {
|
|
183
|
+
/**
|
|
184
|
+
* value: "any"
|
|
185
|
+
* @const
|
|
186
|
+
*/
|
|
187
|
+
"any": "any",
|
|
188
|
+
/**
|
|
189
|
+
* value: "ah"
|
|
190
|
+
* @const
|
|
191
|
+
*/
|
|
192
|
+
"ah": "ah",
|
|
193
|
+
/**
|
|
194
|
+
* value: "dccp"
|
|
195
|
+
* @const
|
|
196
|
+
*/
|
|
197
|
+
"dccp": "dccp",
|
|
198
|
+
/**
|
|
199
|
+
* value: "egp"
|
|
200
|
+
* @const
|
|
201
|
+
*/
|
|
202
|
+
"egp": "egp",
|
|
203
|
+
/**
|
|
204
|
+
* value: "esp"
|
|
205
|
+
* @const
|
|
206
|
+
*/
|
|
207
|
+
"esp": "esp",
|
|
208
|
+
/**
|
|
209
|
+
* value: "gre"
|
|
210
|
+
* @const
|
|
211
|
+
*/
|
|
212
|
+
"gre": "gre",
|
|
213
|
+
/**
|
|
214
|
+
* value: "hopopt"
|
|
215
|
+
* @const
|
|
216
|
+
*/
|
|
217
|
+
"hopopt": "hopopt",
|
|
218
|
+
/**
|
|
219
|
+
* value: "icmp"
|
|
220
|
+
* @const
|
|
221
|
+
*/
|
|
222
|
+
"icmp": "icmp",
|
|
223
|
+
/**
|
|
224
|
+
* value: "igmp"
|
|
225
|
+
* @const
|
|
226
|
+
*/
|
|
227
|
+
"igmp": "igmp",
|
|
228
|
+
/**
|
|
229
|
+
* value: "ip"
|
|
230
|
+
* @const
|
|
231
|
+
*/
|
|
232
|
+
"ip": "ip",
|
|
233
|
+
/**
|
|
234
|
+
* value: "ipip"
|
|
235
|
+
* @const
|
|
236
|
+
*/
|
|
237
|
+
"ipip": "ipip",
|
|
238
|
+
/**
|
|
239
|
+
* value: "ipv6-encap"
|
|
240
|
+
* @const
|
|
241
|
+
*/
|
|
242
|
+
"ipv6-encap": "ipv6-encap",
|
|
243
|
+
/**
|
|
244
|
+
* value: "ipv6-frag"
|
|
245
|
+
* @const
|
|
246
|
+
*/
|
|
247
|
+
"ipv6-frag": "ipv6-frag",
|
|
248
|
+
/**
|
|
249
|
+
* value: "ipv6-icmp"
|
|
250
|
+
* @const
|
|
251
|
+
*/
|
|
252
|
+
"ipv6-icmp": "ipv6-icmp",
|
|
253
|
+
/**
|
|
254
|
+
* value: "icmpv6"
|
|
255
|
+
* @const
|
|
256
|
+
*/
|
|
257
|
+
"icmpv6": "icmpv6",
|
|
258
|
+
/**
|
|
259
|
+
* value: "ipv6-nonxt"
|
|
260
|
+
* @const
|
|
261
|
+
*/
|
|
262
|
+
"ipv6-nonxt": "ipv6-nonxt",
|
|
263
|
+
/**
|
|
264
|
+
* value: "ipv6-opts"
|
|
265
|
+
* @const
|
|
266
|
+
*/
|
|
267
|
+
"ipv6-opts": "ipv6-opts",
|
|
268
|
+
/**
|
|
269
|
+
* value: "ipv6-route"
|
|
270
|
+
* @const
|
|
271
|
+
*/
|
|
272
|
+
"ipv6-route": "ipv6-route",
|
|
273
|
+
/**
|
|
274
|
+
* value: "ospf"
|
|
275
|
+
* @const
|
|
276
|
+
*/
|
|
277
|
+
"ospf": "ospf",
|
|
278
|
+
/**
|
|
279
|
+
* value: "pgm"
|
|
280
|
+
* @const
|
|
281
|
+
*/
|
|
282
|
+
"pgm": "pgm",
|
|
283
|
+
/**
|
|
284
|
+
* value: "rsvp"
|
|
285
|
+
* @const
|
|
286
|
+
*/
|
|
287
|
+
"rsvp": "rsvp",
|
|
288
|
+
/**
|
|
289
|
+
* value: "sctp"
|
|
290
|
+
* @const
|
|
291
|
+
*/
|
|
292
|
+
"sctp": "sctp",
|
|
293
|
+
/**
|
|
294
|
+
* value: "tcp"
|
|
295
|
+
* @const
|
|
296
|
+
*/
|
|
297
|
+
"tcp": "tcp",
|
|
298
|
+
/**
|
|
299
|
+
* value: "udp"
|
|
300
|
+
* @const
|
|
301
|
+
*/
|
|
302
|
+
"udp": "udp",
|
|
303
|
+
/**
|
|
304
|
+
* value: "udplite"
|
|
305
|
+
* @const
|
|
306
|
+
*/
|
|
307
|
+
"udplite": "udplite",
|
|
308
|
+
/**
|
|
309
|
+
* value: "vrrp"
|
|
310
|
+
* @const
|
|
311
|
+
*/
|
|
312
|
+
"vrrp": "vrrp"
|
|
313
|
+
};
|
|
314
|
+
var _default = exports["default"] = CreateFirewallRulePayload;
|