Skip to content

Latest commit

 

History

History
95 lines (63 loc) · 5.12 KB

File metadata and controls

95 lines (63 loc) · 5.12 KB

Subscriptions

(Subscriptions)

Overview

REST APIs for managing subscriptions

Available Operations

ActivateSubscriptionNamespace

Activate an ignored namespace for a subscription

Example Usage

using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;

var sdk = new SDK(security: new Security() {
    APIKey = "<YOUR_API_KEY_HERE>",
});

ActivateSubscriptionNamespaceRequest req = new ActivateSubscriptionNamespaceRequest() {
    NamespaceName = "<value>",
    SubscriptionID = "<id>",
};

var res = await sdk.Subscriptions.ActivateSubscriptionNamespaceAsync(req);

// handle response

Parameters

Parameter Type Required Description
request ActivateSubscriptionNamespaceRequest ✔️ The request object to use for the request.

Response

ActivateSubscriptionNamespaceResponse

Errors

Error Type Status Code Content Type
SpeakeasySDK.Models.Errors.Error 4XX application/json
SpeakeasySDK.Models.Errors.SDKException 5XX */*

IgnoreSubscriptionNamespace

Ignored a namespace for a subscription

Example Usage

using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;

var sdk = new SDK(security: new Security() {
    APIKey = "<YOUR_API_KEY_HERE>",
});

IgnoreSubscriptionNamespaceRequest req = new IgnoreSubscriptionNamespaceRequest() {
    NamespaceName = "<value>",
    SubscriptionID = "<id>",
};

var res = await sdk.Subscriptions.IgnoreSubscriptionNamespaceAsync(req);

// handle response

Parameters

Parameter Type Required Description
request IgnoreSubscriptionNamespaceRequest ✔️ The request object to use for the request.

Response

IgnoreSubscriptionNamespaceResponse

Errors

Error Type Status Code Content Type
SpeakeasySDK.Models.Errors.Error 4XX application/json
SpeakeasySDK.Models.Errors.SDKException 5XX */*