Skip to content

Commit

Permalink
feat(Resource Controller): deprecate alias, bindings APIs, and relate…
Browse files Browse the repository at this point in the history
…d schema items (#256)

Signed-off-by: arshabbir <[email protected]>
  • Loading branch information
arshabbir authored Sep 5, 2024
1 parent eb6b754 commit 5baf49d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 3.91.0-d9755c53-20240605-153412
* IBM OpenAPI SDK Code Generator Version: 3.94.1-71478489-20240820-161623
*/

package com.ibm.cloud.platform_services.resource_controller.v2;
Expand Down Expand Up @@ -67,6 +67,7 @@
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.logging.Logger;

/**
* Manage lifecycle of your Cloud resources using Resource Controller APIs. Resources are provisioned globally in an
Expand All @@ -76,6 +77,7 @@
* API Version: 2.0
*/
public class ResourceController extends BaseService {
private static final Logger LOGGER = Logger.getLogger(ResourceController.class.getName());

/**
* Default service name used when configuring the `ResourceController` client.
Expand Down Expand Up @@ -333,8 +335,11 @@ public ServiceCall<ResourceInstance> updateResourceInstance(UpdateResourceInstan
*
* @param listResourceAliasesForInstanceOptions the {@link ListResourceAliasesForInstanceOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link ResourceAliasesList}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceAliasesList> listResourceAliasesForInstance(ListResourceAliasesForInstanceOptions listResourceAliasesForInstanceOptions) {
LOGGER.warning("A deprecated operation has been invoked: listResourceAliasesForInstance");
com.ibm.cloud.sdk.core.util.Validator.notNull(listResourceAliasesForInstanceOptions,
"listResourceAliasesForInstanceOptions cannot be null");
Map<String, String> pathParamsMap = new HashMap<String, String>();
Expand Down Expand Up @@ -632,8 +637,11 @@ public ServiceCall<ResourceKey> updateResourceKey(UpdateResourceKeyOptions updat
*
* @param listResourceBindingsOptions the {@link ListResourceBindingsOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link ResourceBindingsList}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceBindingsList> listResourceBindings(ListResourceBindingsOptions listResourceBindingsOptions) {
LOGGER.warning("A deprecated operation has been invoked: listResourceBindings");
if (listResourceBindingsOptions == null) {
listResourceBindingsOptions = new ListResourceBindingsOptions.Builder().build();
}
Expand Down Expand Up @@ -681,7 +689,9 @@ public ServiceCall<ResourceBindingsList> listResourceBindings(ListResourceBindin
* View all of the resource bindings that exist for all of your resource aliases.
*
* @return a {@link ServiceCall} with a result of type {@link ResourceBindingsList}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceBindingsList> listResourceBindings() {
return listResourceBindings(null);
}
Expand All @@ -693,8 +703,11 @@ public ServiceCall<ResourceBindingsList> listResourceBindings() {
*
* @param createResourceBindingOptions the {@link CreateResourceBindingOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link ResourceBinding}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceBinding> createResourceBinding(CreateResourceBindingOptions createResourceBindingOptions) {
LOGGER.warning("A deprecated operation has been invoked: createResourceBinding");
com.ibm.cloud.sdk.core.util.Validator.notNull(createResourceBindingOptions,
"createResourceBindingOptions cannot be null");
RequestBuilder builder = RequestBuilder.post(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v2/resource_bindings"));
Expand Down Expand Up @@ -729,8 +742,11 @@ public ServiceCall<ResourceBinding> createResourceBinding(CreateResourceBindingO
*
* @param getResourceBindingOptions the {@link GetResourceBindingOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link ResourceBinding}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceBinding> getResourceBinding(GetResourceBindingOptions getResourceBindingOptions) {
LOGGER.warning("A deprecated operation has been invoked: getResourceBinding");
com.ibm.cloud.sdk.core.util.Validator.notNull(getResourceBindingOptions,
"getResourceBindingOptions cannot be null");
Map<String, String> pathParamsMap = new HashMap<String, String>();
Expand All @@ -753,8 +769,11 @@ public ServiceCall<ResourceBinding> getResourceBinding(GetResourceBindingOptions
*
* @param deleteResourceBindingOptions the {@link DeleteResourceBindingOptions} containing the options for the call
* @return a {@link ServiceCall} with a void result
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<Void> deleteResourceBinding(DeleteResourceBindingOptions deleteResourceBindingOptions) {
LOGGER.warning("A deprecated operation has been invoked: deleteResourceBinding");
com.ibm.cloud.sdk.core.util.Validator.notNull(deleteResourceBindingOptions,
"deleteResourceBindingOptions cannot be null");
Map<String, String> pathParamsMap = new HashMap<String, String>();
Expand All @@ -775,8 +794,11 @@ public ServiceCall<Void> deleteResourceBinding(DeleteResourceBindingOptions dele
*
* @param updateResourceBindingOptions the {@link UpdateResourceBindingOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link ResourceBinding}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceBinding> updateResourceBinding(UpdateResourceBindingOptions updateResourceBindingOptions) {
LOGGER.warning("A deprecated operation has been invoked: updateResourceBinding");
com.ibm.cloud.sdk.core.util.Validator.notNull(updateResourceBindingOptions,
"updateResourceBindingOptions cannot be null");
Map<String, String> pathParamsMap = new HashMap<String, String>();
Expand All @@ -802,8 +824,11 @@ public ServiceCall<ResourceBinding> updateResourceBinding(UpdateResourceBindingO
*
* @param listResourceAliasesOptions the {@link ListResourceAliasesOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link ResourceAliasesList}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceAliasesList> listResourceAliases(ListResourceAliasesOptions listResourceAliasesOptions) {
LOGGER.warning("A deprecated operation has been invoked: listResourceAliases");
if (listResourceAliasesOptions == null) {
listResourceAliasesOptions = new ListResourceAliasesOptions.Builder().build();
}
Expand Down Expand Up @@ -854,7 +879,9 @@ public ServiceCall<ResourceAliasesList> listResourceAliases(ListResourceAliasesO
* View all of the resource aliases that exist for every resource instance.
*
* @return a {@link ServiceCall} with a result of type {@link ResourceAliasesList}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceAliasesList> listResourceAliases() {
return listResourceAliases(null);
}
Expand All @@ -866,8 +893,11 @@ public ServiceCall<ResourceAliasesList> listResourceAliases() {
*
* @param createResourceAliasOptions the {@link CreateResourceAliasOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link ResourceAlias}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceAlias> createResourceAlias(CreateResourceAliasOptions createResourceAliasOptions) {
LOGGER.warning("A deprecated operation has been invoked: createResourceAlias");
com.ibm.cloud.sdk.core.util.Validator.notNull(createResourceAliasOptions,
"createResourceAliasOptions cannot be null");
RequestBuilder builder = RequestBuilder.post(RequestBuilder.resolveRequestUrl(getServiceUrl(), "/v2/resource_aliases"));
Expand All @@ -894,8 +924,11 @@ public ServiceCall<ResourceAlias> createResourceAlias(CreateResourceAliasOptions
*
* @param getResourceAliasOptions the {@link GetResourceAliasOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link ResourceAlias}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceAlias> getResourceAlias(GetResourceAliasOptions getResourceAliasOptions) {
LOGGER.warning("A deprecated operation has been invoked: getResourceAlias");
com.ibm.cloud.sdk.core.util.Validator.notNull(getResourceAliasOptions,
"getResourceAliasOptions cannot be null");
Map<String, String> pathParamsMap = new HashMap<String, String>();
Expand All @@ -919,8 +952,11 @@ public ServiceCall<ResourceAlias> getResourceAlias(GetResourceAliasOptions getRe
*
* @param deleteResourceAliasOptions the {@link DeleteResourceAliasOptions} containing the options for the call
* @return a {@link ServiceCall} with a void result
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<Void> deleteResourceAlias(DeleteResourceAliasOptions deleteResourceAliasOptions) {
LOGGER.warning("A deprecated operation has been invoked: deleteResourceAlias");
com.ibm.cloud.sdk.core.util.Validator.notNull(deleteResourceAliasOptions,
"deleteResourceAliasOptions cannot be null");
Map<String, String> pathParamsMap = new HashMap<String, String>();
Expand All @@ -944,8 +980,11 @@ public ServiceCall<Void> deleteResourceAlias(DeleteResourceAliasOptions deleteRe
*
* @param updateResourceAliasOptions the {@link UpdateResourceAliasOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link ResourceAlias}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceAlias> updateResourceAlias(UpdateResourceAliasOptions updateResourceAliasOptions) {
LOGGER.warning("A deprecated operation has been invoked: updateResourceAlias");
com.ibm.cloud.sdk.core.util.Validator.notNull(updateResourceAliasOptions,
"updateResourceAliasOptions cannot be null");
Map<String, String> pathParamsMap = new HashMap<String, String>();
Expand All @@ -971,8 +1010,11 @@ public ServiceCall<ResourceAlias> updateResourceAlias(UpdateResourceAliasOptions
*
* @param listResourceBindingsForAliasOptions the {@link ListResourceBindingsForAliasOptions} containing the options for the call
* @return a {@link ServiceCall} with a result of type {@link ResourceBindingsList}
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public ServiceCall<ResourceBindingsList> listResourceBindingsForAlias(ListResourceBindingsForAliasOptions listResourceBindingsForAliasOptions) {
LOGGER.warning("A deprecated operation has been invoked: listResourceBindingsForAlias");
com.ibm.cloud.sdk.core.util.Validator.notNull(listResourceBindingsForAliasOptions,
"listResourceBindingsForAliasOptions cannot be null");
Map<String, String> pathParamsMap = new HashMap<String, String>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,9 @@ public ResourceInstanceLastOperation getLastOperation() {
* The relative path to the resource aliases for the instance.
*
* @return the resourceAliasesUrl
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public String getResourceAliasesUrl() {
return resourceAliasesUrl;
}
Expand All @@ -479,7 +481,9 @@ public String getResourceAliasesUrl() {
* The relative path to the resource bindings for the instance.
*
* @return the resourceBindingsUrl
* @deprecated this method is deprecated and may be removed in a future release
*/
@Deprecated
public String getResourceBindingsUrl() {
return resourceBindingsUrl;
}
Expand Down

0 comments on commit 5baf49d

Please sign in to comment.