Skip to content

Commit

Permalink
fix(Global Catalog): regen service and add examples (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
padamstx authored Feb 18, 2021
1 parent 336200c commit ef3eecc
Show file tree
Hide file tree
Showing 110 changed files with 758 additions and 154 deletions.
26 changes: 26 additions & 0 deletions modules/examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
<artifactId>enterprise-usage-reports</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>global-catalog</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>global-search</artifactId>
Expand Down Expand Up @@ -82,6 +87,27 @@
<artifactId>slf4j-jdk14</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<minimizeJar>true</minimizeJar>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<developers>
<developer>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand All @@ -12,7 +12,7 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-629bbb97-20201207-171303
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-4c92c221-20210211-060810
*/

package com.ibm.cloud.platform_services.global_catalog.v1;
Expand Down Expand Up @@ -140,9 +140,18 @@ public ServiceCall<EntrySearchResult> listCatalogEntries(ListCatalogEntriesOptio
if (listCatalogEntriesOptions.languages() != null) {
builder.query("languages", String.valueOf(listCatalogEntriesOptions.languages()));
}
if (listCatalogEntriesOptions.catalog() != null) {
builder.query("catalog", String.valueOf(listCatalogEntriesOptions.catalog()));
}
if (listCatalogEntriesOptions.complete() != null) {
builder.query("complete", String.valueOf(listCatalogEntriesOptions.complete()));
}
if (listCatalogEntriesOptions.offset() != null) {
builder.query("_offset", String.valueOf(listCatalogEntriesOptions.offset()));
}
if (listCatalogEntriesOptions.limit() != null) {
builder.query("_limit", String.valueOf(listCatalogEntriesOptions.limit()));
}
ResponseConverter<EntrySearchResult> responseConverter =
ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken<EntrySearchResult>() { }.getType());
return createServiceCall(builder.build(), responseConverter);
Expand Down Expand Up @@ -373,6 +382,12 @@ public ServiceCall<EntrySearchResult> getChildObjects(GetChildObjectsOptions get
if (getChildObjectsOptions.complete() != null) {
builder.query("complete", String.valueOf(getChildObjectsOptions.complete()));
}
if (getChildObjectsOptions.offset() != null) {
builder.query("_offset", String.valueOf(getChildObjectsOptions.offset()));
}
if (getChildObjectsOptions.limit() != null) {
builder.query("_limit", String.valueOf(getChildObjectsOptions.limit()));
}
ResponseConverter<EntrySearchResult> responseConverter =
ResponseConverterUtils.getValue(new com.google.gson.reflect.TypeToken<EntrySearchResult>() { }.getType());
return createServiceCall(builder.build(), responseConverter);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand All @@ -23,7 +23,7 @@ public class GetCatalogEntryOptions extends GenericModel {
protected String account;
protected String include;
protected String languages;
protected String complete;
protected Boolean complete;
protected Long depth;

/**
Expand All @@ -34,7 +34,7 @@ public static class Builder {
private String account;
private String include;
private String languages;
private String complete;
private Boolean complete;
private Long depth;

private Builder(GetCatalogEntryOptions getCatalogEntryOptions) {
Expand Down Expand Up @@ -120,7 +120,7 @@ public Builder languages(String languages) {
* @param complete the complete
* @return the GetCatalogEntryOptions builder
*/
public Builder complete(String complete) {
public Builder complete(Boolean complete) {
this.complete = complete;
return this;
}
Expand Down Expand Up @@ -215,7 +215,7 @@ public String languages() {
*
* @return the complete
*/
public String complete() {
public Boolean complete() {
return complete;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down Expand Up @@ -27,7 +27,9 @@ public class GetChildObjectsOptions extends GenericModel {
protected String sortBy;
protected String descending;
protected String languages;
protected String complete;
protected Boolean complete;
protected Long offset;
protected Long limit;

/**
* Builder.
Expand All @@ -41,7 +43,9 @@ public static class Builder {
private String sortBy;
private String descending;
private String languages;
private String complete;
private Boolean complete;
private Long offset;
private Long limit;

private Builder(GetChildObjectsOptions getChildObjectsOptions) {
this.id = getChildObjectsOptions.id;
Expand All @@ -53,6 +57,8 @@ private Builder(GetChildObjectsOptions getChildObjectsOptions) {
this.descending = getChildObjectsOptions.descending;
this.languages = getChildObjectsOptions.languages;
this.complete = getChildObjectsOptions.complete;
this.offset = getChildObjectsOptions.offset;
this.limit = getChildObjectsOptions.limit;
}

/**
Expand Down Expand Up @@ -175,10 +181,32 @@ public Builder languages(String languages) {
* @param complete the complete
* @return the GetChildObjectsOptions builder
*/
public Builder complete(String complete) {
public Builder complete(Boolean complete) {
this.complete = complete;
return this;
}

/**
* Set the offset.
*
* @param offset the offset
* @return the GetChildObjectsOptions builder
*/
public Builder offset(long offset) {
this.offset = offset;
return this;
}

/**
* Set the limit.
*
* @param limit the limit
* @return the GetChildObjectsOptions builder
*/
public Builder limit(long limit) {
this.limit = limit;
return this;
}
}

protected GetChildObjectsOptions(Builder builder) {
Expand All @@ -195,6 +223,8 @@ protected GetChildObjectsOptions(Builder builder) {
descending = builder.descending;
languages = builder.languages;
complete = builder.complete;
offset = builder.offset;
limit = builder.limit;
}

/**
Expand Down Expand Up @@ -309,8 +339,30 @@ public String languages() {
*
* @return the complete
*/
public String complete() {
public Boolean complete() {
return complete;
}

/**
* Gets the offset.
*
* Useful for pagination, specifies index (origin 0) of first item to return in response.
*
* @return the offset
*/
public Long offset() {
return offset;
}

/**
* Gets the limit.
*
* Useful for pagination, specifies the maximum number of items to return in the response.
*
* @return the limit
*/
public Long limit() {
return limit;
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2020.
* (C) Copyright IBM Corp. 2021.
*
* 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
Expand Down
Loading

0 comments on commit ef3eecc

Please sign in to comment.