# \ProductTypeApi

All URIs are relative to *https://api.eu-west-2.outscale.com/api/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**CreateProductType**](ProductTypeApi.md#CreateProductType) | **Post** /CreateProductType | 
[**DeleteProductType**](ProductTypeApi.md#DeleteProductType) | **Post** /DeleteProductType | 
[**ReadProductTypes**](ProductTypeApi.md#ReadProductTypes) | **Post** /ReadProductTypes | 



## CreateProductType

> CreateProductTypeResponse CreateProductType(ctx).CreateProductTypeRequest(createProductTypeRequest).Execute()





### Example

```go
package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    createProductTypeRequest := *openapiclient.NewCreateProductTypeRequest("Description_example") // CreateProductTypeRequest |  (optional)

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.ProductTypeApi.CreateProductType(context.Background()).CreateProductTypeRequest(createProductTypeRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ProductTypeApi.CreateProductType``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `CreateProductType`: CreateProductTypeResponse
    fmt.Fprintf(os.Stdout, "Response from `ProductTypeApi.CreateProductType`: %v\n", resp)
}
```

### Path Parameters



### Other Parameters

Other parameters are passed through a pointer to a apiCreateProductTypeRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **createProductTypeRequest** | [**CreateProductTypeRequest**](CreateProductTypeRequest.md) |  | 

### Return type

[**CreateProductTypeResponse**](CreateProductTypeResponse.md)

### Authorization

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

### HTTP request headers

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

[[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)


## DeleteProductType

> DeleteProductTypeResponse DeleteProductType(ctx).DeleteProductTypeRequest(deleteProductTypeRequest).Execute()





### Example

```go
package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    deleteProductTypeRequest := *openapiclient.NewDeleteProductTypeRequest("ProductTypeId_example") // DeleteProductTypeRequest |  (optional)

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.ProductTypeApi.DeleteProductType(context.Background()).DeleteProductTypeRequest(deleteProductTypeRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ProductTypeApi.DeleteProductType``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `DeleteProductType`: DeleteProductTypeResponse
    fmt.Fprintf(os.Stdout, "Response from `ProductTypeApi.DeleteProductType`: %v\n", resp)
}
```

### Path Parameters



### Other Parameters

Other parameters are passed through a pointer to a apiDeleteProductTypeRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **deleteProductTypeRequest** | [**DeleteProductTypeRequest**](DeleteProductTypeRequest.md) |  | 

### Return type

[**DeleteProductTypeResponse**](DeleteProductTypeResponse.md)

### Authorization

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

### HTTP request headers

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

[[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)


## ReadProductTypes

> ReadProductTypesResponse ReadProductTypes(ctx).ReadProductTypesRequest(readProductTypesRequest).Execute()





### Example

```go
package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    readProductTypesRequest := *openapiclient.NewReadProductTypesRequest() // ReadProductTypesRequest |  (optional)

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.ProductTypeApi.ReadProductTypes(context.Background()).ReadProductTypesRequest(readProductTypesRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ProductTypeApi.ReadProductTypes``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ReadProductTypes`: ReadProductTypesResponse
    fmt.Fprintf(os.Stdout, "Response from `ProductTypeApi.ReadProductTypes`: %v\n", resp)
}
```

### Path Parameters



### Other Parameters

Other parameters are passed through a pointer to a apiReadProductTypesRequest struct via the builder pattern


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **readProductTypesRequest** | [**ReadProductTypesRequest**](ReadProductTypesRequest.md) |  | 

### Return type

[**ReadProductTypesResponse**](ReadProductTypesResponse.md)

### Authorization

No authorization required

### HTTP request headers

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

[[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)

