Skip to content

Commit

Permalink
Merge pull request #16 from IBM/update
Browse files Browse the repository at this point in the history
Update SDK with latest APIs
  • Loading branch information
IdanAdar authored Mar 7, 2021
2 parents 8e34d21 + c60b643 commit 02701f5
Show file tree
Hide file tree
Showing 97 changed files with 425 additions and 388 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-and-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: v0.0.${{ github.run_number }}
release_name: Release v0.0.${{ github.run_number }}
tag_name: v0.1.${{ github.run_number }}
release_name: Release v0.1.${{ github.run_number }}
body: |
${{ steps.Changelog.outputs.changelog }}
draft: false
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:

Service name | Imported class name
--- | ---
[Secrets Manager](https://cloud.ibm.com/apidocs/secrets-manager) | IbmCloudSecretsManagerApi
[Secrets Manager](https://cloud.ibm.com/apidocs/secrets-manager) | SecretsManager

## Prerequisites

Expand All @@ -44,14 +44,14 @@ Service name | Imported class name
<dependency>
<groupId>com.ibm.cloud</groupId>
<artifactId>secrets-manager</artifactId>
<version>0.0.3</version>
<version>0.1.0</version>
</dependency>
```

##### Gradle

```gradle
'com.ibm.cloud:secrets-manager:0.0.3'
'com.ibm.cloud:secrets-manager:0.1.0'
```

## Authentication
Expand Down Expand Up @@ -95,23 +95,23 @@ Construct a service client and use it to create and retrieve a secret from your
Here's an example `main.java` class file:

```java
import com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.IbmCloudSecretsManagerApi;
import com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model.*;
import com.ibm.cloud.secrets_manager.v1.SecretsManager;
import com.ibm.cloud.secrets_manager.v1.model.*;
import com.ibm.cloud.sdk.core.http.Response;
import com.ibm.cloud.sdk.core.security.IamAuthenticator;

import java.util.Collections;

public class main {

protected static IbmCloudSecretsManagerApi sm;
protected static SecretsManager sm;
protected static IamAuthenticator iamAuthenticator;

public static void main(String[] args) {
iamAuthenticator = new IamAuthenticator.Builder()
.apikey("IBM_CLOUD_API_KEY")
.build();
sm = new IbmCloudSecretsManagerApi("My Secrets-Manager service", iamAuthenticator);
sm = new SecretsManager("My Secrets-Manager service", iamAuthenticator);
sm.setServiceUrl("SERVICE_URL");

// create arbitrary secret
Expand Down
2 changes: 1 addition & 1 deletion modules/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>secrets-manager-sdk</artifactId>
<groupId>com.ibm.cloud</groupId>
<version>0.0.4</version>
<version>0.1.0</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/coverage-reports/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>secrets-manager-sdk</artifactId>
<groupId>com.ibm.cloud</groupId>
<version>0.0.4</version>
<version>0.1.0</version>
<relativePath>../..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>secrets-manager-sdk</artifactId>
<groupId>com.ibm.cloud</groupId>
<version>0.0.4</version>
<version>0.1.0</version>
<relativePath>../..</relativePath>
</parent>

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

/**
* Configuration that is used to generate IAM credentials.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

/**
* The base schema for retrieving a policy that is associated with a secret.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import java.util.Date;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import java.util.Date;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand All @@ -20,7 +20,7 @@
public class ListAllSecretsOptions extends GenericModel {

/**
* Sorts a list of secrets by the field that you specify.
* Sort a list of secrets by the specified field.
* <p>
* **Usage:** To sort a list of secrets by their creation date, use
* `../secrets/{secret-type}?sort_by=creation_date`.
Expand Down Expand Up @@ -178,8 +178,8 @@ public Long offset() {
/**
* Gets the search.
* <p>
* Filters for secrets that contain the string that you specify. The fields that are searched include: id, name,
* description, labels, secret_type.
* Filter secrets that contain the specified string. The fields that are searched include: id, name, description,
* labels, secret_type.
* <p>
* **Usage:** If you want to list only the secrets that contain the string "text", use
* `../secrets/{secret-type}?search=text`.
Expand All @@ -193,7 +193,7 @@ public String search() {
/**
* Gets the sortBy.
* <p>
* Sorts a list of secrets by the field that you specify.
* Sort a list of secrets by the specified field.
* <p>
* **Usage:** To sort a list of secrets by their creation date, use
* `../secrets/{secret-type}?sort_by=creation_date`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand Down Expand Up @@ -124,6 +124,8 @@ public String secretType() {

/**
* Gets the engineConfigOneOf.
* <p>
* The base request for setting secret engine configuration.
*
* @return the engineConfigOneOf
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

/**
* Delete the credentials that are associated with an `iam_credentials` secret.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

/**
* The request body of a `rotate` action.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

/**
* The request body of a `rotate` action.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.cloud.ibm_cloud_secrets_manager_api.v1.model;
package com.ibm.cloud.secrets_manager.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

Expand Down
Loading

0 comments on commit 02701f5

Please sign in to comment.