Skip to content

Latest commit

 

History

History
125 lines (87 loc) · 6.03 KB

File metadata and controls

125 lines (87 loc) · 6.03 KB

Subscriptions

(subscriptions())

Overview

REST APIs for managing subscriptions

Available Operations

activateSubscriptionNamespace

Activate an ignored namespace for a subscription

Example Usage

package hello.world;

import dev.speakeasyapi.javaclientsdk.RyanTest;
import dev.speakeasyapi.javaclientsdk.models.errors.Error;
import dev.speakeasyapi.javaclientsdk.models.operations.ActivateSubscriptionNamespaceRequest;
import dev.speakeasyapi.javaclientsdk.models.operations.ActivateSubscriptionNamespaceResponse;
import dev.speakeasyapi.javaclientsdk.models.shared.Security;
import java.lang.Exception;

public class Application {

    public static void main(String[] args) throws Error, Exception {

        RyanTest sdk = RyanTest.builder()
                .security(Security.builder()
                    .apiKey("<YOUR_API_KEY_HERE>")
                    .build())
            .build();

        ActivateSubscriptionNamespaceRequest req = ActivateSubscriptionNamespaceRequest.builder()
                .namespaceName("<value>")
                .subscriptionID("<id>")
                .build();

        ActivateSubscriptionNamespaceResponse res = sdk.subscriptions().activateSubscriptionNamespace()
                .request(req)
                .call();

        // 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
models/errors/Error 4XX application/json
models/errors/SDKError 5XX */*

ignoreSubscriptionNamespace

Ignored a namespace for a subscription

Example Usage

package hello.world;

import dev.speakeasyapi.javaclientsdk.RyanTest;
import dev.speakeasyapi.javaclientsdk.models.errors.Error;
import dev.speakeasyapi.javaclientsdk.models.operations.IgnoreSubscriptionNamespaceRequest;
import dev.speakeasyapi.javaclientsdk.models.operations.IgnoreSubscriptionNamespaceResponse;
import dev.speakeasyapi.javaclientsdk.models.shared.Security;
import java.lang.Exception;

public class Application {

    public static void main(String[] args) throws Error, Exception {

        RyanTest sdk = RyanTest.builder()
                .security(Security.builder()
                    .apiKey("<YOUR_API_KEY_HERE>")
                    .build())
            .build();

        IgnoreSubscriptionNamespaceRequest req = IgnoreSubscriptionNamespaceRequest.builder()
                .namespaceName("<value>")
                .subscriptionID("<id>")
                .build();

        IgnoreSubscriptionNamespaceResponse res = sdk.subscriptions().ignoreSubscriptionNamespace()
                .request(req)
                .call();

        // 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
models/errors/Error 4XX application/json
models/errors/SDKError 5XX */*