(subscriptions())
REST APIs for managing subscriptions
- activateSubscriptionNamespace - Activate an ignored namespace for a subscription
- ignoreSubscriptionNamespace - Ignored a namespace for a subscription
Activate an ignored namespace for a subscription
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
}
}
Parameter | Type | Required | Description |
---|---|---|---|
request |
ActivateSubscriptionNamespaceRequest | ✔️ | The request object to use for the request. |
ActivateSubscriptionNamespaceResponse
Error Type | Status Code | Content Type |
---|---|---|
models/errors/Error | 4XX | application/json |
models/errors/SDKError | 5XX | */* |
Ignored a namespace for a subscription
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
}
}
Parameter | Type | Required | Description |
---|---|---|---|
request |
IgnoreSubscriptionNamespaceRequest | ✔️ | The request object to use for the request. |
IgnoreSubscriptionNamespaceResponse
Error Type | Status Code | Content Type |
---|---|---|
models/errors/Error | 4XX | application/json |
models/errors/SDKError | 5XX | */* |