Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Catalog Management): add Catalog Management service to project #27

Merged
merged 6 commits into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ before_install:
&& openssl aes-256-cbc -K $encrypted_66f264007c0d_key -iv $encrypted_66f264007c0d_iv -in iam_access_groups.env.enc -out iam_access_groups.env -d
&& openssl aes-256-cbc -K $encrypted_94fa7fdf4df9_key -iv $encrypted_94fa7fdf4df9_iv -in global_catalog.env.enc -out global_catalog.env -d
&& openssl aes-256-cbc -K $encrypted_a72454cfb42f_key -iv $encrypted_a72454cfb42f_iv -in iam_policy_management.env.enc -out iam_policy_management.env -d
&& openssl aes-256-cbc -K $encrypted_6eaa1fc94541_key -iv $encrypted_6eaa1fc94541_iv -in catalog_mgmt.env.enc -out catalog_mgmt.env -d
|| true

# && openssl aes-256-cbc -K $encrypted_dac53b985913_key -iv $encrypted_dac53b985913_iv -in case_management.env.enc -out case_management.env -d
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ The IBM Cloud Platform Services Java SDK allows developers to programmatically i
Service Name | Artifact Coordinates
--- | ---
[Case Management](https://cloud.ibm.com/apidocs/case-management) | com.ibm.com:case-management:0.7.0
[Catalog Management](https://cloud.ibm.com/apidocs/resource-catalog/private-catalog) | com.ibm.com:catalog-management:0.7.0
[Enterprise Management](https://cloud.ibm.com/apidocs/enterprise-apis/enterprise) | com.ibm.com:enterprise-management:0.7.0
[Global Catalog](https://cloud.ibm.com/apidocs/resource-catalog/global-catalog) | com.ibm.com:global-catalog:0.7.0
[Global Search](https://cloud.ibm.com/apidocs/search) | com.ibm.com:global-search:0.7.0
Expand Down
2 changes: 2 additions & 0 deletions catalog_mgmt.env.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
��ބ��{)�sd��������Ԭ�{&[4���Oo9D�d�M/�(T{�ng���ԇ����n�u��}.�o�ޓ�]�S�������;�\N~��[H�A�GP�A�Q��|�����J�pZ�}˿��\d<��°�sb�{<Mu��uK�6�v�bx72B���Uw��P�v�!�Z��r�Q(�n �({j����{D?mq�� ��oB4�]G�hꀇ�;x3ڜ ������?
��<P�r�m�mЊ.����P�������t/v �
68 changes: 68 additions & 0 deletions modules/catalog-management/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<!-- >>> Replace this with the parent pom's artifactId -->
<artifactId>platform-services</artifactId>
<groupId>com.ibm.cloud</groupId>
<version>99-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>

<!-- >>> Replace this with the service module's artifactId (e.g. "example-service") -->
<artifactId>catalog-management</artifactId>

<!-- >>> Replace this with a text description of this module (e.g. "Example Service") -->
<name>Catalog Management</name>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>com.ibm.cloud</groupId>
<artifactId>sdk-core</artifactId>
</dependency>
<dependency>
<!-- >>> Replace this with the "common" module's artifactId (e.g. my-services-common) -->
<artifactId>platform-services-common</artifactId>
<groupId>com.ibm.cloud</groupId>
</dependency>
<dependency>
<!-- >>> Replace this with the "common" module's artifactId (e.g. my-services-common) -->
<artifactId>platform-services-common</artifactId>
<groupId>${project.groupId}</groupId>
<type>test-jar</type>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito2</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-testng</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<developers>
<developer>
<name>IBM Cloud DevX SDK Development</name>
<email>devxsdk@us.ibm.com</email>
<url>https://www.ibm.com/</url>
</developer>
</developers>

</project>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
/*
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* 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.platform_services.catalog_management.v1.model;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* Account information.
*/
public class Account extends GenericModel {

protected String id;
@SerializedName("account_filters")
protected Filters accountFilters;

/**
* Builder.
*/
public static class Builder {
private String id;
private Filters accountFilters;

private Builder(Account account) {
this.id = account.id;
this.accountFilters = account.accountFilters;
}

/**
* Instantiates a new builder.
*/
public Builder() {
}

/**
* Builds a Account.
*
* @return the new Account instance
*/
public Account build() {
return new Account(this);
}

/**
* Set the id.
*
* @param id the id
* @return the Account builder
*/
public Builder id(String id) {
this.id = id;
return this;
}

/**
* Set the accountFilters.
*
* @param accountFilters the accountFilters
* @return the Account builder
*/
public Builder accountFilters(Filters accountFilters) {
this.accountFilters = accountFilters;
return this;
}
}

protected Account(Builder builder) {
id = builder.id;
accountFilters = builder.accountFilters;
}

/**
* New builder.
*
* @return a Account builder
*/
public Builder newBuilder() {
return new Builder(this);
}

/**
* Gets the id.
*
* Account identification.
*
* @return the id
*/
public String id() {
return id;
}

/**
* Gets the accountFilters.
*
* Filters for account and catalog filters.
*
* @return the accountFilters
*/
public Filters accountFilters() {
return accountFilters;
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
/*
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* 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.platform_services.catalog_management.v1.model;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* Filters for an Account Group.
*/
public class AccountGroup extends GenericModel {

protected String id;
@SerializedName("account_filters")
protected Filters accountFilters;

/**
* Builder.
*/
public static class Builder {
private String id;
private Filters accountFilters;

private Builder(AccountGroup accountGroup) {
this.id = accountGroup.id;
this.accountFilters = accountGroup.accountFilters;
}

/**
* Instantiates a new builder.
*/
public Builder() {
}

/**
* Builds a AccountGroup.
*
* @return the new AccountGroup instance
*/
public AccountGroup build() {
return new AccountGroup(this);
}

/**
* Set the id.
*
* @param id the id
* @return the AccountGroup builder
*/
public Builder id(String id) {
this.id = id;
return this;
}

/**
* Set the accountFilters.
*
* @param accountFilters the accountFilters
* @return the AccountGroup builder
*/
public Builder accountFilters(Filters accountFilters) {
this.accountFilters = accountFilters;
return this;
}
}

protected AccountGroup(Builder builder) {
id = builder.id;
accountFilters = builder.accountFilters;
}

/**
* New builder.
*
* @return a AccountGroup builder
*/
public Builder newBuilder() {
return new Builder(this);
}

/**
* Gets the id.
*
* Account group identification.
*
* @return the id
*/
public String id() {
return id;
}

/**
* Gets the accountFilters.
*
* Filters for account and catalog filters.
*
* @return the accountFilters
*/
public Filters accountFilters() {
return accountFilters;
}
}

Loading