docs/ClustersApi.md in pnap_rancher_api-1.0.6 vs docs/ClustersApi.md in pnap_rancher_api-2.0.0
- old
+ new
@@ -214,11 +214,11 @@
- **Accept**: application/json
## clusters_post
-> <Cluster> clusters_post(opts)
+> <Cluster> clusters_post(cluster)
Create a Rancher Server Deployment.
Create a Rancher Server Deployment as described in <a href='https://rancher.com/docs/rancher/v2.5/en/overview/architecture/#rancher-server-architecture' target='_blank'>Rancher Docs Architecture</a>. Rancher Server allows the creation, import and management of multiple Downstream User Kubernetes Clusters. <b>This is not a Downstream User Cluster</b>. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/bmc-rancher-workload-cluster#ftoc-heading-5' target='_blank'>here</a>.
@@ -232,33 +232,31 @@
# Configure OAuth2 access token for authorization: OAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = RancherApi::ClustersApi.new
-opts = {
- cluster: RancherApi::Cluster.new({location: 'PHX'}) # Cluster |
-}
+cluster = RancherApi::Cluster.new({location: 'PHX'}) # Cluster |
begin
# Create a Rancher Server Deployment.
- result = api_instance.clusters_post(opts)
+ result = api_instance.clusters_post(cluster)
p result
rescue RancherApi::ApiError => e
puts "Error when calling ClustersApi->clusters_post: #{e}"
end
```
#### Using the clusters_post_with_http_info variant
This returns an Array which contains the response data, status code and headers.
-> <Array(<Cluster>, Integer, Hash)> clusters_post_with_http_info(opts)
+> <Array(<Cluster>, Integer, Hash)> clusters_post_with_http_info(cluster)
```ruby
begin
# Create a Rancher Server Deployment.
- data, status_code, headers = api_instance.clusters_post_with_http_info(opts)
+ data, status_code, headers = api_instance.clusters_post_with_http_info(cluster)
p status_code # => 2xx
p headers # => { ... }
p data # => <Cluster>
rescue RancherApi::ApiError => e
puts "Error when calling ClustersApi->clusters_post_with_http_info: #{e}"
@@ -267,10 +265,10 @@
### Parameters
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
-| **cluster** | [**Cluster**](Cluster.md) | | [optional] |
+| **cluster** | [**Cluster**](Cluster.md) | | |
### Return type
[**Cluster**](Cluster.md)