# duplocloud_sdk.HelmReleasesApi

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**helm_releases_create**](HelmReleasesApi.md#helm_releases_create) | **POST** /v3/admin/k8s/subscriptions/{subscriptionId}/helmRelease | 
[**helm_releases_delete**](HelmReleasesApi.md#helm_releases_delete) | **DELETE** /v3/admin/k8s/subscriptions/{subscriptionId}/helmRelease/{id} | 
[**helm_releases_get**](HelmReleasesApi.md#helm_releases_get) | **GET** /v3/admin/k8s/subscriptions/{subscriptionId}/helmRelease/{id} | 
[**helm_releases_list**](HelmReleasesApi.md#helm_releases_list) | **GET** /v3/admin/k8s/subscriptions/{subscriptionId}/helmRelease | 
[**helm_releases_update**](HelmReleasesApi.md#helm_releases_update) | **PUT** /v3/admin/k8s/subscriptions/{subscriptionId}/helmRelease/{id} | 


# **helm_releases_create**
> FluxcdV1HelmRelease helm_releases_create(subscription_id, fluxcd_v1_helm_release=fluxcd_v1_helm_release)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.fluxcd_v1_helm_release import FluxcdV1HelmRelease
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.HelmReleasesApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    fluxcd_v1_helm_release = duplocloud_sdk.FluxcdV1HelmRelease() # FluxcdV1HelmRelease |  (optional)

    try:
        api_response = api_instance.helm_releases_create(subscription_id, fluxcd_v1_helm_release=fluxcd_v1_helm_release)
        print("The response of HelmReleasesApi->helm_releases_create:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling HelmReleasesApi->helm_releases_create: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **fluxcd_v1_helm_release** | [**FluxcdV1HelmRelease**](FluxcdV1HelmRelease.md)|  | [optional] 

### Return type

[**FluxcdV1HelmRelease**](FluxcdV1HelmRelease.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **helm_releases_delete**
> helm_releases_delete(subscription_id, id)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.HelmReleasesApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    id = 'id_example' # str | 

    try:
        api_instance.helm_releases_delete(subscription_id, id)
    except Exception as e:
        print("Exception when calling HelmReleasesApi->helm_releases_delete: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **id** | **str**|  | 

### Return type

void (empty response body)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **helm_releases_get**
> FluxcdV1HelmRelease helm_releases_get(subscription_id, id)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.fluxcd_v1_helm_release import FluxcdV1HelmRelease
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.HelmReleasesApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    id = 'id_example' # str | 

    try:
        api_response = api_instance.helm_releases_get(subscription_id, id)
        print("The response of HelmReleasesApi->helm_releases_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling HelmReleasesApi->helm_releases_get: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **id** | **str**|  | 

### Return type

[**FluxcdV1HelmRelease**](FluxcdV1HelmRelease.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **helm_releases_list**
> List[FluxcdV1HelmRelease] helm_releases_list(subscription_id)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.fluxcd_v1_helm_release import FluxcdV1HelmRelease
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.HelmReleasesApi(api_client)
    subscription_id = 'subscription_id_example' # str | 

    try:
        api_response = api_instance.helm_releases_list(subscription_id)
        print("The response of HelmReleasesApi->helm_releases_list:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling HelmReleasesApi->helm_releases_list: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 

### Return type

[**List[FluxcdV1HelmRelease]**](FluxcdV1HelmRelease.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **helm_releases_update**
> FluxcdV1HelmRelease helm_releases_update(subscription_id, id, fluxcd_v1_helm_release=fluxcd_v1_helm_release)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.fluxcd_v1_helm_release import FluxcdV1HelmRelease
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.HelmReleasesApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    id = 'id_example' # str | 
    fluxcd_v1_helm_release = duplocloud_sdk.FluxcdV1HelmRelease() # FluxcdV1HelmRelease |  (optional)

    try:
        api_response = api_instance.helm_releases_update(subscription_id, id, fluxcd_v1_helm_release=fluxcd_v1_helm_release)
        print("The response of HelmReleasesApi->helm_releases_update:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling HelmReleasesApi->helm_releases_update: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **id** | **str**|  | 
 **fluxcd_v1_helm_release** | [**FluxcdV1HelmRelease**](FluxcdV1HelmRelease.md)|  | [optional] 

### Return type

[**FluxcdV1HelmRelease**](FluxcdV1HelmRelease.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

