@stack-spot/portal-network 0.64.1 → 0.65.0

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.
@@ -1,34 +1,27 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
2
  import
3
3
  {
4
- createApplication,
5
4
  createCertificate,
6
5
  createCidr,
7
- createDeployment,
6
+ createDnsRecord,
8
7
  createDnsZone,
9
8
  createFolder,
10
9
  createFoundation,
10
+ createNetwork,
11
11
  createProject,
12
+ createSubnet,
12
13
  defaults,
13
- getApplication,
14
- getApplicationHistory,
15
14
  getCertificate,
16
- getDeployment,
17
- getDeploymentHealth,
18
- getDeploymentLogs,
19
- getDeploymentStatus,
20
15
  getFolder,
21
16
  getFoundation,
22
17
  getProject,
23
- getRepositoryImages,
24
- listApplications,
25
18
  listCertificates,
26
19
  listCidr,
27
- listDeployments,
20
+ listDnsRecord,
28
21
  listDnsZone,
29
22
  listFoundations,
30
- listRepositories,
31
- listRuntimes,
23
+ listNetwork,
24
+ listSubnet,
32
25
  providers,
33
26
  } from '../api/cloudPlatform'
34
27
  import apis from '../apis.json'
@@ -46,58 +39,6 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
46
39
  protected buildStackSpotError(error: HttpError): StackspotAPIError {
47
40
  return new DefaultAPIError(error.data, error.status, cntDictionary, error.headers)
48
41
  }
49
- /**
50
- * Get list of applications
51
- */
52
- listApplications = this.query(removeAuthorizationParam(listApplications))
53
- /**
54
- * Get an application by id
55
- */
56
- application = this.query(removeAuthorizationParam(getApplication))
57
- /**
58
- * Get an application history
59
- */
60
- applicationHistory = this.query(removeAuthorizationParam(getApplicationHistory))
61
- /**
62
- * Get list of application deployments
63
- */
64
- listApplicationDeployments = this.query(removeAuthorizationParam(listDeployments))
65
- /**
66
- * Get an application deployment by id
67
- */
68
- applicationDeployment = this.query(removeAuthorizationParam(getDeployment))
69
- /**
70
- * Get an application deployment status
71
- */
72
- applicationDeploymentStatus = this.query(removeAuthorizationParam(getDeploymentStatus))
73
- /**
74
- * Get an application deployment health
75
- */
76
- applicationDeploymentHealth = this.query(removeAuthorizationParam(getDeploymentHealth))
77
- /**
78
- * Get an application deployment logs
79
- */
80
- applicationDeploymentLogs = this.query(removeAuthorizationParam(getDeploymentLogs))
81
- /**
82
- * Get an application runtimes
83
- */
84
- listApplicationRuntimes = this.query(removeAuthorizationParam(listRuntimes))
85
- /**
86
- * Get list of repositories
87
- */
88
- listRepositories = this.query(removeAuthorizationParam(listRepositories))
89
- /**
90
- * Get list of images from a repository
91
- */
92
- listRepositoryImages = this.query(removeAuthorizationParam(getRepositoryImages))
93
- /**
94
- * Create a deploy of the application
95
- */
96
- createDeployment = this.mutation(removeAuthorizationParam(createDeployment))
97
- /**
98
- * Create an application
99
- */
100
- createApplication = this.mutation(removeAuthorizationParam(createApplication))
101
42
  /**
102
43
  * List foundations
103
44
  */
@@ -158,6 +99,30 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
158
99
  * Get a project by id
159
100
  */
160
101
  getProjectById = this.query(removeAuthorizationParam(getProject))
102
+ /**
103
+ * Get a list of dns records
104
+ */
105
+ listDnsRecords= this.query(removeAuthorizationParam(listDnsRecord))
106
+ /**
107
+ * Create a dns record
108
+ */
109
+ createDnsRecord = this.mutation(removeAuthorizationParam(createDnsRecord))
110
+ /**
111
+ * Get a list of networks
112
+ */
113
+ listNetworks= this.query(removeAuthorizationParam(listNetwork))
114
+ /**
115
+ * Create a network
116
+ */
117
+ createNetwork = this.mutation(removeAuthorizationParam(createNetwork))
118
+ /**
119
+ * Get a list of subnets
120
+ */
121
+ listSubnets= this.query(removeAuthorizationParam(listSubnet))
122
+ /**
123
+ * Create a subnet
124
+ */
125
+ createSubnet = this.mutation(removeAuthorizationParam(createSubnet))
161
126
  }
162
127
 
163
128
  export const cloudPlatformClient = new CloudPlatformClient()
@@ -18,7 +18,7 @@ import
18
18
  listDeployments,
19
19
  listRepositories,
20
20
  listRuntimes,
21
- setAutoscalihng,
21
+ setAutoscaling,
22
22
  startApplication,
23
23
  stopApplication,
24
24
  } from '../api/cloudRuntimes'
@@ -112,7 +112,7 @@ class CloudRuntimesClient extends ReactQueryNetworkClient {
112
112
  /**
113
113
  * Edit application instances
114
114
  */
115
- editApplicationInstances = this.mutation(removeAuthorizationParam(setAutoscalihng))
115
+ editApplicationInstances = this.mutation(removeAuthorizationParam(setAutoscaling))
116
116
  }
117
117
 
118
118