eryph-compute 0.1.1

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.
Files changed (222) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +47 -0
  3. data/LICENSE +21 -0
  4. data/README.md +144 -0
  5. data/eryph-clientruntime.gemspec +42 -0
  6. data/eryph-compute.gemspec +44 -0
  7. data/lib/eryph/clientruntime/client_credentials_lookup.rb +295 -0
  8. data/lib/eryph/clientruntime/config_store.rb +206 -0
  9. data/lib/eryph/clientruntime/config_stores_reader.rb +211 -0
  10. data/lib/eryph/clientruntime/endpoint_lookup.rb +226 -0
  11. data/lib/eryph/clientruntime/environment.rb +440 -0
  12. data/lib/eryph/clientruntime/local_identity_provider_info.rb +153 -0
  13. data/lib/eryph/clientruntime/token_provider.rb +275 -0
  14. data/lib/eryph/clientruntime/version.rb +6 -0
  15. data/lib/eryph/clientruntime.rb +79 -0
  16. data/lib/eryph/compute/client.rb +442 -0
  17. data/lib/eryph/compute/generated/Gemfile +9 -0
  18. data/lib/eryph/compute/generated/README.md +206 -0
  19. data/lib/eryph/compute/generated/Rakefile +10 -0
  20. data/lib/eryph/compute/generated/compute_client.gemspec +41 -0
  21. data/lib/eryph/compute/generated/docs/ApiVersion.md +20 -0
  22. data/lib/eryph/compute/generated/docs/ApiVersionResponse.md +18 -0
  23. data/lib/eryph/compute/generated/docs/Catlet.md +32 -0
  24. data/lib/eryph/compute/generated/docs/CatletConfigOperationResult.md +18 -0
  25. data/lib/eryph/compute/generated/docs/CatletConfigValidationResult.md +20 -0
  26. data/lib/eryph/compute/generated/docs/CatletConfiguration.md +18 -0
  27. data/lib/eryph/compute/generated/docs/CatletDrive.md +20 -0
  28. data/lib/eryph/compute/generated/docs/CatletDriveType.md +15 -0
  29. data/lib/eryph/compute/generated/docs/CatletList.md +18 -0
  30. data/lib/eryph/compute/generated/docs/CatletNetwork.md +30 -0
  31. data/lib/eryph/compute/generated/docs/CatletNetworkAdapter.md +20 -0
  32. data/lib/eryph/compute/generated/docs/CatletStatus.md +15 -0
  33. data/lib/eryph/compute/generated/docs/CatletStopMode.md +15 -0
  34. data/lib/eryph/compute/generated/docs/CatletsApi.md +863 -0
  35. data/lib/eryph/compute/generated/docs/DiskStatus.md +15 -0
  36. data/lib/eryph/compute/generated/docs/ExpandCatletConfigRequestBody.md +22 -0
  37. data/lib/eryph/compute/generated/docs/ExpandNewCatletConfigRequest.md +22 -0
  38. data/lib/eryph/compute/generated/docs/FloatingNetworkPort.md +26 -0
  39. data/lib/eryph/compute/generated/docs/Gene.md +30 -0
  40. data/lib/eryph/compute/generated/docs/GeneList.md +18 -0
  41. data/lib/eryph/compute/generated/docs/GeneType.md +15 -0
  42. data/lib/eryph/compute/generated/docs/GeneWithUsage.md +34 -0
  43. data/lib/eryph/compute/generated/docs/GenesApi.md +281 -0
  44. data/lib/eryph/compute/generated/docs/NewCatletRequest.md +20 -0
  45. data/lib/eryph/compute/generated/docs/NewProjectMemberBody.md +22 -0
  46. data/lib/eryph/compute/generated/docs/NewProjectRequest.md +20 -0
  47. data/lib/eryph/compute/generated/docs/NewVirtualDiskRequest.md +30 -0
  48. data/lib/eryph/compute/generated/docs/Operation.md +32 -0
  49. data/lib/eryph/compute/generated/docs/OperationList.md +18 -0
  50. data/lib/eryph/compute/generated/docs/OperationLogEntry.md +24 -0
  51. data/lib/eryph/compute/generated/docs/OperationResource.md +22 -0
  52. data/lib/eryph/compute/generated/docs/OperationResult.md +18 -0
  53. data/lib/eryph/compute/generated/docs/OperationStatus.md +15 -0
  54. data/lib/eryph/compute/generated/docs/OperationTask.md +30 -0
  55. data/lib/eryph/compute/generated/docs/OperationTaskReference.md +22 -0
  56. data/lib/eryph/compute/generated/docs/OperationTaskStatus.md +15 -0
  57. data/lib/eryph/compute/generated/docs/OperationsApi.md +157 -0
  58. data/lib/eryph/compute/generated/docs/PopulateCatletConfigVariablesRequest.md +20 -0
  59. data/lib/eryph/compute/generated/docs/ProblemDetails.md +26 -0
  60. data/lib/eryph/compute/generated/docs/Project.md +22 -0
  61. data/lib/eryph/compute/generated/docs/ProjectList.md +18 -0
  62. data/lib/eryph/compute/generated/docs/ProjectMemberRole.md +26 -0
  63. data/lib/eryph/compute/generated/docs/ProjectMemberRoleList.md +18 -0
  64. data/lib/eryph/compute/generated/docs/ProjectMembersApi.md +293 -0
  65. data/lib/eryph/compute/generated/docs/ProjectsApi.md +286 -0
  66. data/lib/eryph/compute/generated/docs/ResourceType.md +15 -0
  67. data/lib/eryph/compute/generated/docs/StopCatletRequestBody.md +18 -0
  68. data/lib/eryph/compute/generated/docs/TaskReferenceType.md +15 -0
  69. data/lib/eryph/compute/generated/docs/UpdateCatletRequestBody.md +20 -0
  70. data/lib/eryph/compute/generated/docs/UpdateProjectNetworksRequestBody.md +20 -0
  71. data/lib/eryph/compute/generated/docs/ValidateConfigRequest.md +18 -0
  72. data/lib/eryph/compute/generated/docs/ValidationIssue.md +20 -0
  73. data/lib/eryph/compute/generated/docs/VersionApi.md +69 -0
  74. data/lib/eryph/compute/generated/docs/VirtualDisk.md +42 -0
  75. data/lib/eryph/compute/generated/docs/VirtualDiskAttachedCatlet.md +20 -0
  76. data/lib/eryph/compute/generated/docs/VirtualDiskGeneInfo.md +22 -0
  77. data/lib/eryph/compute/generated/docs/VirtualDiskList.md +18 -0
  78. data/lib/eryph/compute/generated/docs/VirtualDisksApi.md +291 -0
  79. data/lib/eryph/compute/generated/docs/VirtualNetwork.md +28 -0
  80. data/lib/eryph/compute/generated/docs/VirtualNetworkConfiguration.md +18 -0
  81. data/lib/eryph/compute/generated/docs/VirtualNetworkList.md +18 -0
  82. data/lib/eryph/compute/generated/docs/VirtualNetworksApi.md +291 -0
  83. data/lib/eryph/compute/generated/git_push.sh +57 -0
  84. data/lib/eryph/compute/generated/lib/compute_client/api/catlets_api.rb +812 -0
  85. data/lib/eryph/compute/generated/lib/compute_client/api/genes_api.rb +262 -0
  86. data/lib/eryph/compute/generated/lib/compute_client/api/operations_api.rb +154 -0
  87. data/lib/eryph/compute/generated/lib/compute_client/api/project_members_api.rb +297 -0
  88. data/lib/eryph/compute/generated/lib/compute_client/api/projects_api.rb +269 -0
  89. data/lib/eryph/compute/generated/lib/compute_client/api/version_api.rb +79 -0
  90. data/lib/eryph/compute/generated/lib/compute_client/api/virtual_disks_api.rb +272 -0
  91. data/lib/eryph/compute/generated/lib/compute_client/api/virtual_networks_api.rb +282 -0
  92. data/lib/eryph/compute/generated/lib/compute_client/api_client.rb +437 -0
  93. data/lib/eryph/compute/generated/lib/compute_client/api_error.rb +58 -0
  94. data/lib/eryph/compute/generated/lib/compute_client/configuration.rb +392 -0
  95. data/lib/eryph/compute/generated/lib/compute_client/models/api_version.rb +263 -0
  96. data/lib/eryph/compute/generated/lib/compute_client/models/api_version_response.rb +237 -0
  97. data/lib/eryph/compute/generated/lib/compute_client/models/catlet.rb +400 -0
  98. data/lib/eryph/compute/generated/lib/compute_client/models/catlet_config_operation_result.rb +234 -0
  99. data/lib/eryph/compute/generated/lib/compute_client/models/catlet_config_validation_result.rb +251 -0
  100. data/lib/eryph/compute/generated/lib/compute_client/models/catlet_configuration.rb +223 -0
  101. data/lib/eryph/compute/generated/lib/compute_client/models/catlet_drive.rb +270 -0
  102. data/lib/eryph/compute/generated/lib/compute_client/models/catlet_drive_type.rb +43 -0
  103. data/lib/eryph/compute/generated/lib/compute_client/models/catlet_list.rb +239 -0
  104. data/lib/eryph/compute/generated/lib/compute_client/models/catlet_network.rb +318 -0
  105. data/lib/eryph/compute/generated/lib/compute_client/models/catlet_network_adapter.rb +247 -0
  106. data/lib/eryph/compute/generated/lib/compute_client/models/catlet_status.rb +43 -0
  107. data/lib/eryph/compute/generated/lib/compute_client/models/catlet_stop_mode.rb +41 -0
  108. data/lib/eryph/compute/generated/lib/compute_client/models/disk_status.rb +40 -0
  109. data/lib/eryph/compute/generated/lib/compute_client/models/expand_catlet_config_request_body.rb +243 -0
  110. data/lib/eryph/compute/generated/lib/compute_client/models/expand_new_catlet_config_request.rb +243 -0
  111. data/lib/eryph/compute/generated/lib/compute_client/models/floating_network_port.rb +313 -0
  112. data/lib/eryph/compute/generated/lib/compute_client/models/gene.rb +415 -0
  113. data/lib/eryph/compute/generated/lib/compute_client/models/gene_list.rb +239 -0
  114. data/lib/eryph/compute/generated/lib/compute_client/models/gene_type.rb +41 -0
  115. data/lib/eryph/compute/generated/lib/compute_client/models/gene_with_usage.rb +439 -0
  116. data/lib/eryph/compute/generated/lib/compute_client/models/new_catlet_request.rb +233 -0
  117. data/lib/eryph/compute/generated/lib/compute_client/models/new_project_member_body.rb +273 -0
  118. data/lib/eryph/compute/generated/lib/compute_client/models/new_project_request.rb +247 -0
  119. data/lib/eryph/compute/generated/lib/compute_client/models/new_virtual_disk_request.rb +345 -0
  120. data/lib/eryph/compute/generated/lib/compute_client/models/operation.rb +352 -0
  121. data/lib/eryph/compute/generated/lib/compute_client/models/operation_list.rb +239 -0
  122. data/lib/eryph/compute/generated/lib/compute_client/models/operation_log_entry.rb +299 -0
  123. data/lib/eryph/compute/generated/lib/compute_client/models/operation_resource.rb +311 -0
  124. data/lib/eryph/compute/generated/lib/compute_client/models/operation_result.rb +242 -0
  125. data/lib/eryph/compute/generated/lib/compute_client/models/operation_status.rb +42 -0
  126. data/lib/eryph/compute/generated/lib/compute_client/models/operation_task.rb +366 -0
  127. data/lib/eryph/compute/generated/lib/compute_client/models/operation_task_reference.rb +311 -0
  128. data/lib/eryph/compute/generated/lib/compute_client/models/operation_task_status.rb +42 -0
  129. data/lib/eryph/compute/generated/lib/compute_client/models/populate_catlet_config_variables_request.rb +233 -0
  130. data/lib/eryph/compute/generated/lib/compute_client/models/problem_details.rb +261 -0
  131. data/lib/eryph/compute/generated/lib/compute_client/models/project.rb +289 -0
  132. data/lib/eryph/compute/generated/lib/compute_client/models/project_list.rb +239 -0
  133. data/lib/eryph/compute/generated/lib/compute_client/models/project_member_role.rb +341 -0
  134. data/lib/eryph/compute/generated/lib/compute_client/models/project_member_role_list.rb +239 -0
  135. data/lib/eryph/compute/generated/lib/compute_client/models/resource_type.rb +42 -0
  136. data/lib/eryph/compute/generated/lib/compute_client/models/stop_catlet_request_body.rb +259 -0
  137. data/lib/eryph/compute/generated/lib/compute_client/models/task_reference_type.rb +40 -0
  138. data/lib/eryph/compute/generated/lib/compute_client/models/update_catlet_request_body.rb +233 -0
  139. data/lib/eryph/compute/generated/lib/compute_client/models/update_project_networks_request_body.rb +233 -0
  140. data/lib/eryph/compute/generated/lib/compute_client/models/validate_config_request.rb +223 -0
  141. data/lib/eryph/compute/generated/lib/compute_client/models/validation_issue.rb +249 -0
  142. data/lib/eryph/compute/generated/lib/compute_client/models/virtual_disk.rb +479 -0
  143. data/lib/eryph/compute/generated/lib/compute_client/models/virtual_disk_attached_catlet.rb +285 -0
  144. data/lib/eryph/compute/generated/lib/compute_client/models/virtual_disk_gene_info.rb +289 -0
  145. data/lib/eryph/compute/generated/lib/compute_client/models/virtual_disk_list.rb +239 -0
  146. data/lib/eryph/compute/generated/lib/compute_client/models/virtual_network.rb +351 -0
  147. data/lib/eryph/compute/generated/lib/compute_client/models/virtual_network_configuration.rb +223 -0
  148. data/lib/eryph/compute/generated/lib/compute_client/models/virtual_network_list.rb +239 -0
  149. data/lib/eryph/compute/generated/lib/compute_client/version.rb +15 -0
  150. data/lib/eryph/compute/generated/lib/compute_client.rb +101 -0
  151. data/lib/eryph/compute/generated/spec/api/catlets_api_spec.rb +182 -0
  152. data/lib/eryph/compute/generated/spec/api/genes_api_spec.rb +81 -0
  153. data/lib/eryph/compute/generated/spec/api/operations_api_spec.rb +62 -0
  154. data/lib/eryph/compute/generated/spec/api/project_members_api_spec.rb +86 -0
  155. data/lib/eryph/compute/generated/spec/api/projects_api_spec.rb +82 -0
  156. data/lib/eryph/compute/generated/spec/api/version_api_spec.rb +46 -0
  157. data/lib/eryph/compute/generated/spec/api/virtual_disks_api_spec.rb +83 -0
  158. data/lib/eryph/compute/generated/spec/api/virtual_networks_api_spec.rb +84 -0
  159. data/lib/eryph/compute/generated/spec/models/api_version_response_spec.rb +36 -0
  160. data/lib/eryph/compute/generated/spec/models/api_version_spec.rb +42 -0
  161. data/lib/eryph/compute/generated/spec/models/catlet_config_operation_result_spec.rb +36 -0
  162. data/lib/eryph/compute/generated/spec/models/catlet_config_validation_result_spec.rb +42 -0
  163. data/lib/eryph/compute/generated/spec/models/catlet_configuration_spec.rb +36 -0
  164. data/lib/eryph/compute/generated/spec/models/catlet_drive_spec.rb +42 -0
  165. data/lib/eryph/compute/generated/spec/models/catlet_drive_type_spec.rb +30 -0
  166. data/lib/eryph/compute/generated/spec/models/catlet_list_spec.rb +36 -0
  167. data/lib/eryph/compute/generated/spec/models/catlet_network_adapter_spec.rb +42 -0
  168. data/lib/eryph/compute/generated/spec/models/catlet_network_spec.rb +72 -0
  169. data/lib/eryph/compute/generated/spec/models/catlet_spec.rb +78 -0
  170. data/lib/eryph/compute/generated/spec/models/catlet_status_spec.rb +30 -0
  171. data/lib/eryph/compute/generated/spec/models/catlet_stop_mode_spec.rb +30 -0
  172. data/lib/eryph/compute/generated/spec/models/disk_status_spec.rb +30 -0
  173. data/lib/eryph/compute/generated/spec/models/expand_catlet_config_request_body_spec.rb +48 -0
  174. data/lib/eryph/compute/generated/spec/models/expand_new_catlet_config_request_spec.rb +48 -0
  175. data/lib/eryph/compute/generated/spec/models/floating_network_port_spec.rb +60 -0
  176. data/lib/eryph/compute/generated/spec/models/gene_list_spec.rb +36 -0
  177. data/lib/eryph/compute/generated/spec/models/gene_spec.rb +72 -0
  178. data/lib/eryph/compute/generated/spec/models/gene_type_spec.rb +30 -0
  179. data/lib/eryph/compute/generated/spec/models/gene_with_usage_spec.rb +84 -0
  180. data/lib/eryph/compute/generated/spec/models/new_catlet_request_spec.rb +42 -0
  181. data/lib/eryph/compute/generated/spec/models/new_project_member_body_spec.rb +48 -0
  182. data/lib/eryph/compute/generated/spec/models/new_project_request_spec.rb +42 -0
  183. data/lib/eryph/compute/generated/spec/models/new_virtual_disk_request_spec.rb +72 -0
  184. data/lib/eryph/compute/generated/spec/models/operation_list_spec.rb +36 -0
  185. data/lib/eryph/compute/generated/spec/models/operation_log_entry_spec.rb +54 -0
  186. data/lib/eryph/compute/generated/spec/models/operation_resource_spec.rb +48 -0
  187. data/lib/eryph/compute/generated/spec/models/operation_result_spec.rb +36 -0
  188. data/lib/eryph/compute/generated/spec/models/operation_spec.rb +78 -0
  189. data/lib/eryph/compute/generated/spec/models/operation_status_spec.rb +30 -0
  190. data/lib/eryph/compute/generated/spec/models/operation_task_reference_spec.rb +48 -0
  191. data/lib/eryph/compute/generated/spec/models/operation_task_spec.rb +72 -0
  192. data/lib/eryph/compute/generated/spec/models/operation_task_status_spec.rb +30 -0
  193. data/lib/eryph/compute/generated/spec/models/populate_catlet_config_variables_request_spec.rb +42 -0
  194. data/lib/eryph/compute/generated/spec/models/problem_details_spec.rb +60 -0
  195. data/lib/eryph/compute/generated/spec/models/project_list_spec.rb +36 -0
  196. data/lib/eryph/compute/generated/spec/models/project_member_role_list_spec.rb +36 -0
  197. data/lib/eryph/compute/generated/spec/models/project_member_role_spec.rb +60 -0
  198. data/lib/eryph/compute/generated/spec/models/project_spec.rb +48 -0
  199. data/lib/eryph/compute/generated/spec/models/resource_type_spec.rb +30 -0
  200. data/lib/eryph/compute/generated/spec/models/stop_catlet_request_body_spec.rb +36 -0
  201. data/lib/eryph/compute/generated/spec/models/task_reference_type_spec.rb +30 -0
  202. data/lib/eryph/compute/generated/spec/models/update_catlet_request_body_spec.rb +42 -0
  203. data/lib/eryph/compute/generated/spec/models/update_project_networks_request_body_spec.rb +42 -0
  204. data/lib/eryph/compute/generated/spec/models/validate_config_request_spec.rb +36 -0
  205. data/lib/eryph/compute/generated/spec/models/validation_issue_spec.rb +42 -0
  206. data/lib/eryph/compute/generated/spec/models/virtual_disk_attached_catlet_spec.rb +42 -0
  207. data/lib/eryph/compute/generated/spec/models/virtual_disk_gene_info_spec.rb +48 -0
  208. data/lib/eryph/compute/generated/spec/models/virtual_disk_list_spec.rb +36 -0
  209. data/lib/eryph/compute/generated/spec/models/virtual_disk_spec.rb +108 -0
  210. data/lib/eryph/compute/generated/spec/models/virtual_network_configuration_spec.rb +36 -0
  211. data/lib/eryph/compute/generated/spec/models/virtual_network_list_spec.rb +36 -0
  212. data/lib/eryph/compute/generated/spec/models/virtual_network_spec.rb +66 -0
  213. data/lib/eryph/compute/generated/spec/spec_helper.rb +111 -0
  214. data/lib/eryph/compute/generated.rb +137 -0
  215. data/lib/eryph/compute/operation_result.rb +255 -0
  216. data/lib/eryph/compute/operation_tracker.rb +247 -0
  217. data/lib/eryph/compute/problem_details_error.rb +139 -0
  218. data/lib/eryph/compute/version.rb +6 -0
  219. data/lib/eryph/compute.rb +40 -0
  220. data/lib/eryph/version.rb +4 -0
  221. data/lib/eryph.rb +68 -0
  222. metadata +329 -0
@@ -0,0 +1,291 @@
1
+ # ComputeClient::VirtualDisksApi
2
+
3
+ All URIs are relative to *https://localhost:8000/compute*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**virtual_disks_create**](VirtualDisksApi.md#virtual_disks_create) | **POST** /v1/virtualdisks | Create a virtual disk |
8
+ | [**virtual_disks_delete**](VirtualDisksApi.md#virtual_disks_delete) | **DELETE** /v1/virtualdisks/{id} | Delete a virtual disk |
9
+ | [**virtual_disks_get**](VirtualDisksApi.md#virtual_disks_get) | **GET** /v1/virtualdisks/{id} | Get a virtual disk |
10
+ | [**virtual_disks_list**](VirtualDisksApi.md#virtual_disks_list) | **GET** /v1/virtualdisks | List all virtual disks |
11
+
12
+
13
+ ## virtual_disks_create
14
+
15
+ > <Operation> virtual_disks_create(opts)
16
+
17
+ Create a virtual disk
18
+
19
+ Create a virtual disk
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'compute_client'
26
+ # setup authorization
27
+ ComputeClient.configure do |config|
28
+ # Configure OAuth2 access token for authorization: oauth2
29
+ config.access_token = 'YOUR ACCESS TOKEN'
30
+ end
31
+
32
+ api_instance = ComputeClient::VirtualDisksApi.new
33
+ opts = {
34
+ new_virtual_disk_request: ComputeClient::NewVirtualDiskRequest.new({project_id: 'project_id_example', name: 'name_example', location: 'location_example', size: 37}) # NewVirtualDiskRequest |
35
+ }
36
+
37
+ begin
38
+ # Create a virtual disk
39
+ result = api_instance.virtual_disks_create(opts)
40
+ p result
41
+ rescue ComputeClient::ApiError => e
42
+ puts "Error when calling VirtualDisksApi->virtual_disks_create: #{e}"
43
+ end
44
+ ```
45
+
46
+ #### Using the virtual_disks_create_with_http_info variant
47
+
48
+ This returns an Array which contains the response data, status code and headers.
49
+
50
+ > <Array(<Operation>, Integer, Hash)> virtual_disks_create_with_http_info(opts)
51
+
52
+ ```ruby
53
+ begin
54
+ # Create a virtual disk
55
+ data, status_code, headers = api_instance.virtual_disks_create_with_http_info(opts)
56
+ p status_code # => 2xx
57
+ p headers # => { ... }
58
+ p data # => <Operation>
59
+ rescue ComputeClient::ApiError => e
60
+ puts "Error when calling VirtualDisksApi->virtual_disks_create_with_http_info: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ | Name | Type | Description | Notes |
67
+ | ---- | ---- | ----------- | ----- |
68
+ | **new_virtual_disk_request** | [**NewVirtualDiskRequest**](NewVirtualDiskRequest.md) | | [optional] |
69
+
70
+ ### Return type
71
+
72
+ [**Operation**](Operation.md)
73
+
74
+ ### Authorization
75
+
76
+ [oauth2](../README.md#oauth2)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: application/json
81
+ - **Accept**: application/json, application/problem+json
82
+
83
+
84
+ ## virtual_disks_delete
85
+
86
+ > <Operation> virtual_disks_delete(id)
87
+
88
+ Delete a virtual disk
89
+
90
+ Delete a virtual disk
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'compute_client'
97
+ # setup authorization
98
+ ComputeClient.configure do |config|
99
+ # Configure OAuth2 access token for authorization: oauth2
100
+ config.access_token = 'YOUR ACCESS TOKEN'
101
+ end
102
+
103
+ api_instance = ComputeClient::VirtualDisksApi.new
104
+ id = 'id_example' # String |
105
+
106
+ begin
107
+ # Delete a virtual disk
108
+ result = api_instance.virtual_disks_delete(id)
109
+ p result
110
+ rescue ComputeClient::ApiError => e
111
+ puts "Error when calling VirtualDisksApi->virtual_disks_delete: #{e}"
112
+ end
113
+ ```
114
+
115
+ #### Using the virtual_disks_delete_with_http_info variant
116
+
117
+ This returns an Array which contains the response data, status code and headers.
118
+
119
+ > <Array(<Operation>, Integer, Hash)> virtual_disks_delete_with_http_info(id)
120
+
121
+ ```ruby
122
+ begin
123
+ # Delete a virtual disk
124
+ data, status_code, headers = api_instance.virtual_disks_delete_with_http_info(id)
125
+ p status_code # => 2xx
126
+ p headers # => { ... }
127
+ p data # => <Operation>
128
+ rescue ComputeClient::ApiError => e
129
+ puts "Error when calling VirtualDisksApi->virtual_disks_delete_with_http_info: #{e}"
130
+ end
131
+ ```
132
+
133
+ ### Parameters
134
+
135
+ | Name | Type | Description | Notes |
136
+ | ---- | ---- | ----------- | ----- |
137
+ | **id** | **String** | | |
138
+
139
+ ### Return type
140
+
141
+ [**Operation**](Operation.md)
142
+
143
+ ### Authorization
144
+
145
+ [oauth2](../README.md#oauth2)
146
+
147
+ ### HTTP request headers
148
+
149
+ - **Content-Type**: Not defined
150
+ - **Accept**: application/json, application/problem+json
151
+
152
+
153
+ ## virtual_disks_get
154
+
155
+ > <VirtualDisk> virtual_disks_get(id)
156
+
157
+ Get a virtual disk
158
+
159
+ Get a virtual disk
160
+
161
+ ### Examples
162
+
163
+ ```ruby
164
+ require 'time'
165
+ require 'compute_client'
166
+ # setup authorization
167
+ ComputeClient.configure do |config|
168
+ # Configure OAuth2 access token for authorization: oauth2
169
+ config.access_token = 'YOUR ACCESS TOKEN'
170
+ end
171
+
172
+ api_instance = ComputeClient::VirtualDisksApi.new
173
+ id = 'id_example' # String |
174
+
175
+ begin
176
+ # Get a virtual disk
177
+ result = api_instance.virtual_disks_get(id)
178
+ p result
179
+ rescue ComputeClient::ApiError => e
180
+ puts "Error when calling VirtualDisksApi->virtual_disks_get: #{e}"
181
+ end
182
+ ```
183
+
184
+ #### Using the virtual_disks_get_with_http_info variant
185
+
186
+ This returns an Array which contains the response data, status code and headers.
187
+
188
+ > <Array(<VirtualDisk>, Integer, Hash)> virtual_disks_get_with_http_info(id)
189
+
190
+ ```ruby
191
+ begin
192
+ # Get a virtual disk
193
+ data, status_code, headers = api_instance.virtual_disks_get_with_http_info(id)
194
+ p status_code # => 2xx
195
+ p headers # => { ... }
196
+ p data # => <VirtualDisk>
197
+ rescue ComputeClient::ApiError => e
198
+ puts "Error when calling VirtualDisksApi->virtual_disks_get_with_http_info: #{e}"
199
+ end
200
+ ```
201
+
202
+ ### Parameters
203
+
204
+ | Name | Type | Description | Notes |
205
+ | ---- | ---- | ----------- | ----- |
206
+ | **id** | **String** | | |
207
+
208
+ ### Return type
209
+
210
+ [**VirtualDisk**](VirtualDisk.md)
211
+
212
+ ### Authorization
213
+
214
+ [oauth2](../README.md#oauth2)
215
+
216
+ ### HTTP request headers
217
+
218
+ - **Content-Type**: Not defined
219
+ - **Accept**: application/json, application/problem+json
220
+
221
+
222
+ ## virtual_disks_list
223
+
224
+ > <VirtualDiskList> virtual_disks_list(opts)
225
+
226
+ List all virtual disks
227
+
228
+ List all virtual disks
229
+
230
+ ### Examples
231
+
232
+ ```ruby
233
+ require 'time'
234
+ require 'compute_client'
235
+ # setup authorization
236
+ ComputeClient.configure do |config|
237
+ # Configure OAuth2 access token for authorization: oauth2
238
+ config.access_token = 'YOUR ACCESS TOKEN'
239
+ end
240
+
241
+ api_instance = ComputeClient::VirtualDisksApi.new
242
+ opts = {
243
+ project_id: 'project_id_example' # String |
244
+ }
245
+
246
+ begin
247
+ # List all virtual disks
248
+ result = api_instance.virtual_disks_list(opts)
249
+ p result
250
+ rescue ComputeClient::ApiError => e
251
+ puts "Error when calling VirtualDisksApi->virtual_disks_list: #{e}"
252
+ end
253
+ ```
254
+
255
+ #### Using the virtual_disks_list_with_http_info variant
256
+
257
+ This returns an Array which contains the response data, status code and headers.
258
+
259
+ > <Array(<VirtualDiskList>, Integer, Hash)> virtual_disks_list_with_http_info(opts)
260
+
261
+ ```ruby
262
+ begin
263
+ # List all virtual disks
264
+ data, status_code, headers = api_instance.virtual_disks_list_with_http_info(opts)
265
+ p status_code # => 2xx
266
+ p headers # => { ... }
267
+ p data # => <VirtualDiskList>
268
+ rescue ComputeClient::ApiError => e
269
+ puts "Error when calling VirtualDisksApi->virtual_disks_list_with_http_info: #{e}"
270
+ end
271
+ ```
272
+
273
+ ### Parameters
274
+
275
+ | Name | Type | Description | Notes |
276
+ | ---- | ---- | ----------- | ----- |
277
+ | **project_id** | **String** | | [optional] |
278
+
279
+ ### Return type
280
+
281
+ [**VirtualDiskList**](VirtualDiskList.md)
282
+
283
+ ### Authorization
284
+
285
+ [oauth2](../README.md#oauth2)
286
+
287
+ ### HTTP request headers
288
+
289
+ - **Content-Type**: Not defined
290
+ - **Accept**: application/json, application/problem+json
291
+
@@ -0,0 +1,28 @@
1
+ # ComputeClient::VirtualNetwork
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **name** | **String** | | |
9
+ | **project** | [**Project**](Project.md) | | |
10
+ | **environment** | **String** | | |
11
+ | **provider_name** | **String** | | |
12
+ | **ip_network** | **String** | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'compute_client'
18
+
19
+ instance = ComputeClient::VirtualNetwork.new(
20
+ id: null,
21
+ name: null,
22
+ project: null,
23
+ environment: null,
24
+ provider_name: null,
25
+ ip_network: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,18 @@
1
+ # ComputeClient::VirtualNetworkConfiguration
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **configuration** | **Object** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'compute_client'
13
+
14
+ instance = ComputeClient::VirtualNetworkConfiguration.new(
15
+ configuration: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # ComputeClient::VirtualNetworkList
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | [**Array&lt;VirtualNetwork&gt;**](VirtualNetwork.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'compute_client'
13
+
14
+ instance = ComputeClient::VirtualNetworkList.new(
15
+ value: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,291 @@
1
+ # ComputeClient::VirtualNetworksApi
2
+
3
+ All URIs are relative to *https://localhost:8000/compute*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**virtual_networks_get**](VirtualNetworksApi.md#virtual_networks_get) | **GET** /v1/virtualnetworks/{id} | Get a virtual network |
8
+ | [**virtual_networks_get_config**](VirtualNetworksApi.md#virtual_networks_get_config) | **GET** /v1/projects/{project_id}/virtualnetworks/config | Get the virtual network configuration of a project |
9
+ | [**virtual_networks_list**](VirtualNetworksApi.md#virtual_networks_list) | **GET** /v1/virtualnetworks | List all virtual networks |
10
+ | [**virtual_networks_update_config**](VirtualNetworksApi.md#virtual_networks_update_config) | **PUT** /v1/projects/{project_id}/virtualnetworks/config | Update the virtual network configuration of a project |
11
+
12
+
13
+ ## virtual_networks_get
14
+
15
+ > <VirtualNetwork> virtual_networks_get(id)
16
+
17
+ Get a virtual network
18
+
19
+ Get a virtual network
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'compute_client'
26
+ # setup authorization
27
+ ComputeClient.configure do |config|
28
+ # Configure OAuth2 access token for authorization: oauth2
29
+ config.access_token = 'YOUR ACCESS TOKEN'
30
+ end
31
+
32
+ api_instance = ComputeClient::VirtualNetworksApi.new
33
+ id = 'id_example' # String |
34
+
35
+ begin
36
+ # Get a virtual network
37
+ result = api_instance.virtual_networks_get(id)
38
+ p result
39
+ rescue ComputeClient::ApiError => e
40
+ puts "Error when calling VirtualNetworksApi->virtual_networks_get: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the virtual_networks_get_with_http_info variant
45
+
46
+ This returns an Array which contains the response data, status code and headers.
47
+
48
+ > <Array(<VirtualNetwork>, Integer, Hash)> virtual_networks_get_with_http_info(id)
49
+
50
+ ```ruby
51
+ begin
52
+ # Get a virtual network
53
+ data, status_code, headers = api_instance.virtual_networks_get_with_http_info(id)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <VirtualNetwork>
57
+ rescue ComputeClient::ApiError => e
58
+ puts "Error when calling VirtualNetworksApi->virtual_networks_get_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **id** | **String** | | |
67
+
68
+ ### Return type
69
+
70
+ [**VirtualNetwork**](VirtualNetwork.md)
71
+
72
+ ### Authorization
73
+
74
+ [oauth2](../README.md#oauth2)
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: Not defined
79
+ - **Accept**: application/json, application/problem+json
80
+
81
+
82
+ ## virtual_networks_get_config
83
+
84
+ > <VirtualNetworkConfiguration> virtual_networks_get_config(project_id)
85
+
86
+ Get the virtual network configuration of a project
87
+
88
+ Get the virtual network configuration of a project
89
+
90
+ ### Examples
91
+
92
+ ```ruby
93
+ require 'time'
94
+ require 'compute_client'
95
+ # setup authorization
96
+ ComputeClient.configure do |config|
97
+ # Configure OAuth2 access token for authorization: oauth2
98
+ config.access_token = 'YOUR ACCESS TOKEN'
99
+ end
100
+
101
+ api_instance = ComputeClient::VirtualNetworksApi.new
102
+ project_id = 'project_id_example' # String |
103
+
104
+ begin
105
+ # Get the virtual network configuration of a project
106
+ result = api_instance.virtual_networks_get_config(project_id)
107
+ p result
108
+ rescue ComputeClient::ApiError => e
109
+ puts "Error when calling VirtualNetworksApi->virtual_networks_get_config: #{e}"
110
+ end
111
+ ```
112
+
113
+ #### Using the virtual_networks_get_config_with_http_info variant
114
+
115
+ This returns an Array which contains the response data, status code and headers.
116
+
117
+ > <Array(<VirtualNetworkConfiguration>, Integer, Hash)> virtual_networks_get_config_with_http_info(project_id)
118
+
119
+ ```ruby
120
+ begin
121
+ # Get the virtual network configuration of a project
122
+ data, status_code, headers = api_instance.virtual_networks_get_config_with_http_info(project_id)
123
+ p status_code # => 2xx
124
+ p headers # => { ... }
125
+ p data # => <VirtualNetworkConfiguration>
126
+ rescue ComputeClient::ApiError => e
127
+ puts "Error when calling VirtualNetworksApi->virtual_networks_get_config_with_http_info: #{e}"
128
+ end
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+ | Name | Type | Description | Notes |
134
+ | ---- | ---- | ----------- | ----- |
135
+ | **project_id** | **String** | | |
136
+
137
+ ### Return type
138
+
139
+ [**VirtualNetworkConfiguration**](VirtualNetworkConfiguration.md)
140
+
141
+ ### Authorization
142
+
143
+ [oauth2](../README.md#oauth2)
144
+
145
+ ### HTTP request headers
146
+
147
+ - **Content-Type**: Not defined
148
+ - **Accept**: application/json, application/problem+json
149
+
150
+
151
+ ## virtual_networks_list
152
+
153
+ > <VirtualNetworkList> virtual_networks_list(opts)
154
+
155
+ List all virtual networks
156
+
157
+ List all virtual networks
158
+
159
+ ### Examples
160
+
161
+ ```ruby
162
+ require 'time'
163
+ require 'compute_client'
164
+ # setup authorization
165
+ ComputeClient.configure do |config|
166
+ # Configure OAuth2 access token for authorization: oauth2
167
+ config.access_token = 'YOUR ACCESS TOKEN'
168
+ end
169
+
170
+ api_instance = ComputeClient::VirtualNetworksApi.new
171
+ opts = {
172
+ project_id: 'project_id_example' # String |
173
+ }
174
+
175
+ begin
176
+ # List all virtual networks
177
+ result = api_instance.virtual_networks_list(opts)
178
+ p result
179
+ rescue ComputeClient::ApiError => e
180
+ puts "Error when calling VirtualNetworksApi->virtual_networks_list: #{e}"
181
+ end
182
+ ```
183
+
184
+ #### Using the virtual_networks_list_with_http_info variant
185
+
186
+ This returns an Array which contains the response data, status code and headers.
187
+
188
+ > <Array(<VirtualNetworkList>, Integer, Hash)> virtual_networks_list_with_http_info(opts)
189
+
190
+ ```ruby
191
+ begin
192
+ # List all virtual networks
193
+ data, status_code, headers = api_instance.virtual_networks_list_with_http_info(opts)
194
+ p status_code # => 2xx
195
+ p headers # => { ... }
196
+ p data # => <VirtualNetworkList>
197
+ rescue ComputeClient::ApiError => e
198
+ puts "Error when calling VirtualNetworksApi->virtual_networks_list_with_http_info: #{e}"
199
+ end
200
+ ```
201
+
202
+ ### Parameters
203
+
204
+ | Name | Type | Description | Notes |
205
+ | ---- | ---- | ----------- | ----- |
206
+ | **project_id** | **String** | | [optional] |
207
+
208
+ ### Return type
209
+
210
+ [**VirtualNetworkList**](VirtualNetworkList.md)
211
+
212
+ ### Authorization
213
+
214
+ [oauth2](../README.md#oauth2)
215
+
216
+ ### HTTP request headers
217
+
218
+ - **Content-Type**: Not defined
219
+ - **Accept**: application/json, application/problem+json
220
+
221
+
222
+ ## virtual_networks_update_config
223
+
224
+ > <Operation> virtual_networks_update_config(project_id, update_project_networks_request_body)
225
+
226
+ Update the virtual network configuration of a project
227
+
228
+ Update the virtual network configuration of a project
229
+
230
+ ### Examples
231
+
232
+ ```ruby
233
+ require 'time'
234
+ require 'compute_client'
235
+ # setup authorization
236
+ ComputeClient.configure do |config|
237
+ # Configure OAuth2 access token for authorization: oauth2
238
+ config.access_token = 'YOUR ACCESS TOKEN'
239
+ end
240
+
241
+ api_instance = ComputeClient::VirtualNetworksApi.new
242
+ project_id = 'project_id_example' # String |
243
+ update_project_networks_request_body = ComputeClient::UpdateProjectNetworksRequestBody.new({configuration: 3.56}) # UpdateProjectNetworksRequestBody |
244
+
245
+ begin
246
+ # Update the virtual network configuration of a project
247
+ result = api_instance.virtual_networks_update_config(project_id, update_project_networks_request_body)
248
+ p result
249
+ rescue ComputeClient::ApiError => e
250
+ puts "Error when calling VirtualNetworksApi->virtual_networks_update_config: #{e}"
251
+ end
252
+ ```
253
+
254
+ #### Using the virtual_networks_update_config_with_http_info variant
255
+
256
+ This returns an Array which contains the response data, status code and headers.
257
+
258
+ > <Array(<Operation>, Integer, Hash)> virtual_networks_update_config_with_http_info(project_id, update_project_networks_request_body)
259
+
260
+ ```ruby
261
+ begin
262
+ # Update the virtual network configuration of a project
263
+ data, status_code, headers = api_instance.virtual_networks_update_config_with_http_info(project_id, update_project_networks_request_body)
264
+ p status_code # => 2xx
265
+ p headers # => { ... }
266
+ p data # => <Operation>
267
+ rescue ComputeClient::ApiError => e
268
+ puts "Error when calling VirtualNetworksApi->virtual_networks_update_config_with_http_info: #{e}"
269
+ end
270
+ ```
271
+
272
+ ### Parameters
273
+
274
+ | Name | Type | Description | Notes |
275
+ | ---- | ---- | ----------- | ----- |
276
+ | **project_id** | **String** | | |
277
+ | **update_project_networks_request_body** | [**UpdateProjectNetworksRequestBody**](UpdateProjectNetworksRequestBody.md) | | |
278
+
279
+ ### Return type
280
+
281
+ [**Operation**](Operation.md)
282
+
283
+ ### Authorization
284
+
285
+ [oauth2](../README.md#oauth2)
286
+
287
+ ### HTTP request headers
288
+
289
+ - **Content-Type**: application/json
290
+ - **Accept**: application/json, application/problem+json
291
+
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'