Skip to content

Latest commit

 

History

History
956 lines (625 loc) · 31.3 KB

ProductTierApiAPI.md

File metadata and controls

956 lines (625 loc) · 31.3 KB

\ProductTierApiAPI

All URIs are relative to https://api.omnistrate.cloud

Method HTTP request Description
ProductTierApiCopyProductTier Post /2022-09-01-00/service/{serviceId}/product-tier/copy/{sourceId} CopyProductTier product-tier-api
ProductTierApiCreateProductTier Post /2022-09-01-00/service/{serviceId}/product-tier CreateProductTier product-tier-api
ProductTierApiCreateProductTierBillingPlan Post /2022-09-01-00/service/{serviceId}/product-tier/{id}/billing-plan CreateProductTierBillingPlan product-tier-api
ProductTierApiDeleteProductTier Delete /2022-09-01-00/service/{serviceId}/product-tier/{id} DeleteProductTier product-tier-api
ProductTierApiDeleteProductTierBillingPlan Delete /2022-09-01-00/service/{serviceId}/product-tier/{productTierId}/billing-plan/{id} DeleteProductTierBillingPlan product-tier-api
ProductTierApiDescribeProductTier Get /2022-09-01-00/service/{serviceId}/product-tier/{id} DescribeProductTier product-tier-api
ProductTierApiDescribeProductTierBillingPlan Get /2022-09-01-00/service/{serviceId}/product-tier/{productTierId}/billing-plan/{id} DescribeProductTierBillingPlan product-tier-api
ProductTierApiDisableProductTierFeature Delete /2022-09-01-00/service/{serviceId}/product-tier/{id}/feature DisableProductTierFeature product-tier-api
ProductTierApiEnableProductTierFeature Put /2022-09-01-00/service/{serviceId}/product-tier/{id}/feature EnableProductTierFeature product-tier-api
ProductTierApiListProductTier Get /2022-09-01-00/service/{serviceId}/model/{serviceModelId}/product-tier ListProductTier product-tier-api
ProductTierApiListProductTierBillingPlan Get /2022-09-01-00/service/{serviceId}/product-tier/{id}/billing-plan ListProductTierBillingPlan product-tier-api
ProductTierApiUpdateProductTier Patch /2022-09-01-00/service/{serviceId}/product-tier/{id} UpdateProductTier product-tier-api
ProductTierApiUpdateProductTierBillingPlan Patch /2022-09-01-00/service/{serviceId}/product-tier/{productTierId}/billing-plan/{id} UpdateProductTierBillingPlan product-tier-api

ProductTierApiCopyProductTier

string ProductTierApiCopyProductTier(ctx, serviceId, sourceId).CopyProductTierRequest2(copyProductTierRequest2).Execute()

CopyProductTier product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	sourceId := "pt-12345678" // string | The source product tier ID
	copyProductTierRequest2 := *openapiclient.NewCopyProductTierRequest2("A premium product tier", "Premium", "sm-12345678") // CopyProductTierRequest2 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProductTierApiAPI.ProductTierApiCopyProductTier(context.Background(), serviceId, sourceId).CopyProductTierRequest2(copyProductTierRequest2).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiCopyProductTier``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ProductTierApiCopyProductTier`: string
	fmt.Fprintf(os.Stdout, "Response from `ProductTierApiAPI.ProductTierApiCopyProductTier`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
sourceId string The source product tier ID

Other Parameters

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

Name Type Description Notes

copyProductTierRequest2 | CopyProductTierRequest2 | |

Return type

string

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiCreateProductTier

string ProductTierApiCreateProductTier(ctx, serviceId).CreateProductTierRequest2(createProductTierRequest2).Execute()

CreateProductTier product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	createProductTierRequest2 := *openapiclient.NewCreateProductTierRequest2("A premium product tier", "Premium", "A premium plan", "sm-12345678", "OMNISTRATE_DEDICATED_TENANCY") // CreateProductTierRequest2 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProductTierApiAPI.ProductTierApiCreateProductTier(context.Background(), serviceId).CreateProductTierRequest2(createProductTierRequest2).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiCreateProductTier``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ProductTierApiCreateProductTier`: string
	fmt.Fprintf(os.Stdout, "Response from `ProductTierApiAPI.ProductTierApiCreateProductTier`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID

Other Parameters

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

Name Type Description Notes

createProductTierRequest2 | CreateProductTierRequest2 | |

Return type

string

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiCreateProductTierBillingPlan

BillingPlan ProductTierApiCreateProductTierBillingPlan(ctx, serviceId, id).CreateProductTierBillingPlanRequest2(createProductTierBillingPlanRequest2).Execute()

CreateProductTierBillingPlan product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	id := "pt-12345678" // string | Product tier ID
	createProductTierBillingPlanRequest2 := *openapiclient.NewCreateProductTierBillingPlanRequest2(true, int64(5), "STARTER", interface{}({"cpuCoreHours":"0.001","memoryGiBHours":"0.0001","storageGiBHours":"0.0001"})) // CreateProductTierBillingPlanRequest2 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProductTierApiAPI.ProductTierApiCreateProductTierBillingPlan(context.Background(), serviceId, id).CreateProductTierBillingPlanRequest2(createProductTierBillingPlanRequest2).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiCreateProductTierBillingPlan``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ProductTierApiCreateProductTierBillingPlan`: BillingPlan
	fmt.Fprintf(os.Stdout, "Response from `ProductTierApiAPI.ProductTierApiCreateProductTierBillingPlan`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
id string Product tier ID

Other Parameters

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

Name Type Description Notes

createProductTierBillingPlanRequest2 | CreateProductTierBillingPlanRequest2 | |

Return type

BillingPlan

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiDeleteProductTier

ProductTierApiDeleteProductTier(ctx, serviceId, id).Execute()

DeleteProductTier product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	id := "pt-12345678" // string | Product tier ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProductTierApiAPI.ProductTierApiDeleteProductTier(context.Background(), serviceId, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiDeleteProductTier``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
id string Product tier ID

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiDeleteProductTierBillingPlan

ProductTierApiDeleteProductTierBillingPlan(ctx, serviceId, productTierId, id).Execute()

DeleteProductTierBillingPlan product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	productTierId := "pt-12345678" // string | Product tier ID
	id := "bp-12345678" // string | Product tier billing plan ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProductTierApiAPI.ProductTierApiDeleteProductTierBillingPlan(context.Background(), serviceId, productTierId, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiDeleteProductTierBillingPlan``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
productTierId string Product tier ID
id string Product tier billing plan ID

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiDescribeProductTier

DescribeProductTierResult ProductTierApiDescribeProductTier(ctx, serviceId, id).Version(version).Execute()

DescribeProductTier product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	id := "pt-12345678" // string | Product tier ID
	version := "3.0" // string | The version number for the specific version set (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProductTierApiAPI.ProductTierApiDescribeProductTier(context.Background(), serviceId, id).Version(version).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiDescribeProductTier``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ProductTierApiDescribeProductTier`: DescribeProductTierResult
	fmt.Fprintf(os.Stdout, "Response from `ProductTierApiAPI.ProductTierApiDescribeProductTier`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
id string Product tier ID

Other Parameters

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

Name Type Description Notes

version | string | The version number for the specific version set |

Return type

DescribeProductTierResult

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiDescribeProductTierBillingPlan

BillingPlan ProductTierApiDescribeProductTierBillingPlan(ctx, serviceId, productTierId, id).Execute()

DescribeProductTierBillingPlan product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	productTierId := "pt-12345678" // string | Product tier ID
	id := "bp-12345678" // string | Product tier billing plan ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProductTierApiAPI.ProductTierApiDescribeProductTierBillingPlan(context.Background(), serviceId, productTierId, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiDescribeProductTierBillingPlan``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ProductTierApiDescribeProductTierBillingPlan`: BillingPlan
	fmt.Fprintf(os.Stdout, "Response from `ProductTierApiAPI.ProductTierApiDescribeProductTierBillingPlan`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
productTierId string Product tier ID
id string Product tier billing plan ID

Other Parameters

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

Name Type Description Notes

Return type

BillingPlan

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiDisableProductTierFeature

ProductTierApiDisableProductTierFeature(ctx, serviceId, id).DisableProductTierFeatureRequest2(disableProductTierFeatureRequest2).Execute()

DisableProductTierFeature product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	id := "pt-12345678" // string | Product tier ID
	disableProductTierFeatureRequest2 := *openapiclient.NewDisableProductTierFeatureRequest2("BILLING") // DisableProductTierFeatureRequest2 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProductTierApiAPI.ProductTierApiDisableProductTierFeature(context.Background(), serviceId, id).DisableProductTierFeatureRequest2(disableProductTierFeatureRequest2).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiDisableProductTierFeature``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
id string Product tier ID

Other Parameters

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

Name Type Description Notes

disableProductTierFeatureRequest2 | DisableProductTierFeatureRequest2 | |

Return type

(empty response body)

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: application/json
  • Accept: application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiEnableProductTierFeature

ProductTierApiEnableProductTierFeature(ctx, serviceId, id).EnableProductTierFeatureRequest2(enableProductTierFeatureRequest2).Execute()

EnableProductTierFeature product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	id := "pt-12345678" // string | Product tier ID
	enableProductTierFeatureRequest2 := *openapiclient.NewEnableProductTierFeatureRequest2("BILLING") // EnableProductTierFeatureRequest2 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProductTierApiAPI.ProductTierApiEnableProductTierFeature(context.Background(), serviceId, id).EnableProductTierFeatureRequest2(enableProductTierFeatureRequest2).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiEnableProductTierFeature``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
id string Product tier ID

Other Parameters

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

Name Type Description Notes

enableProductTierFeatureRequest2 | EnableProductTierFeatureRequest2 | |

Return type

(empty response body)

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: application/json
  • Accept: application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiListProductTier

ListProductTiersResult ProductTierApiListProductTier(ctx, serviceId, serviceModelId).Execute()

ListProductTier product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	serviceModelId := "sm-12345678" // string | Service model ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProductTierApiAPI.ProductTierApiListProductTier(context.Background(), serviceId, serviceModelId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiListProductTier``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ProductTierApiListProductTier`: ListProductTiersResult
	fmt.Fprintf(os.Stdout, "Response from `ProductTierApiAPI.ProductTierApiListProductTier`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
serviceModelId string Service model ID

Other Parameters

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

Name Type Description Notes

Return type

ListProductTiersResult

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiListProductTierBillingPlan

ListProductTierBillingPlanResult ProductTierApiListProductTierBillingPlan(ctx, serviceId, id).Execute()

ListProductTierBillingPlan product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	id := "pt-12345678" // string | Product tier ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProductTierApiAPI.ProductTierApiListProductTierBillingPlan(context.Background(), serviceId, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiListProductTierBillingPlan``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ProductTierApiListProductTierBillingPlan`: ListProductTierBillingPlanResult
	fmt.Fprintf(os.Stdout, "Response from `ProductTierApiAPI.ProductTierApiListProductTierBillingPlan`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
id string Product tier ID

Other Parameters

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

Name Type Description Notes

Return type

ListProductTierBillingPlanResult

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiUpdateProductTier

ProductTierApiUpdateProductTier(ctx, serviceId, id).UpdateProductTierRequest2(updateProductTierRequest2).Execute()

UpdateProductTier product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	id := "pt-12345678" // string | Product tier ID
	updateProductTierRequest2 := *openapiclient.NewUpdateProductTierRequest2() // UpdateProductTierRequest2 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.ProductTierApiAPI.ProductTierApiUpdateProductTier(context.Background(), serviceId, id).UpdateProductTierRequest2(updateProductTierRequest2).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiUpdateProductTier``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
id string Product tier ID

Other Parameters

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

Name Type Description Notes

updateProductTierRequest2 | UpdateProductTierRequest2 | |

Return type

(empty response body)

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: application/json
  • Accept: application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ProductTierApiUpdateProductTierBillingPlan

BillingPlan ProductTierApiUpdateProductTierBillingPlan(ctx, serviceId, productTierId, id).UpdateProductTierBillingPlanRequest2(updateProductTierBillingPlanRequest2).Execute()

UpdateProductTierBillingPlan product-tier-api

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/omnistrate-oss/omnistrate-sdk-go/v1"
)

func main() {
	serviceId := "s-12345678" // string | Service ID
	productTierId := "pt-12345678" // string | Product tier ID
	id := "bp-12345678" // string | Product tier billing plan ID
	updateProductTierBillingPlanRequest2 := *openapiclient.NewUpdateProductTierBillingPlanRequest2() // UpdateProductTierBillingPlanRequest2 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProductTierApiAPI.ProductTierApiUpdateProductTierBillingPlan(context.Background(), serviceId, productTierId, id).UpdateProductTierBillingPlanRequest2(updateProductTierBillingPlanRequest2).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductTierApiAPI.ProductTierApiUpdateProductTierBillingPlan``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ProductTierApiUpdateProductTierBillingPlan`: BillingPlan
	fmt.Fprintf(os.Stdout, "Response from `ProductTierApiAPI.ProductTierApiUpdateProductTierBillingPlan`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string Service ID
productTierId string Product tier ID
id string Product tier billing plan ID

Other Parameters

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

Name Type Description Notes

updateProductTierBillingPlanRequest2 | UpdateProductTierBillingPlanRequest2 | |

Return type

BillingPlan

Authorization

api_key_header_Authorization

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, application/vnd.goa.error

[Back to top] [Back to API list] [Back to Model list] [Back to README]