GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(Discovery): Rename method to listGateways · morristech/java-sdk@c48f668

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1
    • Discovery.java
    • model
      • ListGatewaysOptions.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/Discovery.java‎

Copy file name to clipboardExpand all lines: discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/Discovery.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
import com.ibm.watson.developer_cloud.discovery.v1.model.GetDocumentStatusOptions;
5858
import com.ibm.watson.developer_cloud.discovery.v1.model.GetEnvironmentOptions;
5959
import com.ibm.watson.developer_cloud.discovery.v1.model.GetGatewayDetailsOptions;
60-
import com.ibm.watson.developer_cloud.discovery.v1.model.GetGatewayListOptions;
60+
import com.ibm.watson.developer_cloud.discovery.v1.model.ListGatewaysOptions;
6161
import com.ibm.watson.developer_cloud.discovery.v1.model.GetMetricsEventRateOptions;
6262
import com.ibm.watson.developer_cloud.discovery.v1.model.GetMetricsQueryEventOptions;
6363
import com.ibm.watson.developer_cloud.discovery.v1.model.GetMetricsQueryNoResultsOptions;
@@ -2006,13 +2006,13 @@ public ServiceCall<Gateway> getGatewayDetails(GetGatewayDetailsOptions getGatewa
20062006
*
20072007
* List the currently configured gateways.
20082008
*
2009-
* @param getGatewayListOptions the {@link GetGatewayListOptions} containing the options for the call
2009+
* @param listGatewaysOptions the {@link ListGatewaysOptions} containing the options for the call
20102010
* @return a {@link ServiceCall} with a response type of {@link GatewayList}
20112011
*/
2012-
public ServiceCall<GatewayList> getGatewayList(GetGatewayListOptions getGatewayListOptions) {
2013-
Validator.notNull(getGatewayListOptions, "getGatewayListOptions cannot be null");
2012+
public ServiceCall<GatewayList> listGateways(ListGatewaysOptions listGatewaysOptions) {
2013+
Validator.notNull(listGatewaysOptions, "listGatewaysOptions cannot be null");
20142014
String[] pathSegments = { "v1/environments", "gateways" };
2015-
String[] pathParameters = { getGatewayListOptions.environmentId() };
2015+
String[] pathParameters = { listGatewaysOptions.environmentId() };
20162016
RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments,
20172017
pathParameters));
20182018
builder.query(VERSION, versionDate);
Collapse file

‎…very/v1/model/GetGatewayListOptions.java‎ ‎…covery/v1/model/ListGatewaysOptions.java‎discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/model/GetGatewayListOptions.java renamed to discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/model/ListGatewaysOptions.java discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/model/GetGatewayListOptions.java renamed to discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/model/ListGatewaysOptions.java

Copy file name to clipboardExpand all lines: discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/model/ListGatewaysOptions.java
+10-10Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import com.ibm.watson.developer_cloud.util.Validator;
1717

1818
/**
19-
* The getGatewayList options.
19+
* The listGateways options.
2020
*/
21-
public class GetGatewayListOptions extends GenericModel {
21+
public class ListGatewaysOptions extends GenericModel {
2222

2323
private String environmentId;
2424

@@ -28,8 +28,8 @@ public class GetGatewayListOptions extends GenericModel {
2828
public static class Builder {
2929
private String environmentId;
3030

31-
private Builder(GetGatewayListOptions getGatewayListOptions) {
32-
environmentId = getGatewayListOptions.environmentId;
31+
private Builder(ListGatewaysOptions listGatewaysOptions) {
32+
environmentId = listGatewaysOptions.environmentId;
3333
}
3434

3535
/**
@@ -48,35 +48,35 @@ public Builder(String environmentId) {
4848
}
4949

5050
/**
51-
* Builds a GetGatewayListOptions.
51+
* Builds a ListGatewaysOptions.
5252
*
5353
* @return the getGatewayListOptions
5454
*/
55-
public GetGatewayListOptions build() {
56-
return new GetGatewayListOptions(this);
55+
public ListGatewaysOptions build() {
56+
return new ListGatewaysOptions(this);
5757
}
5858

5959
/**
6060
* Set the environmentId.
6161
*
6262
* @param environmentId the environmentId
63-
* @return the GetGatewayListOptions builder
63+
* @return the ListGatewaysOptions builder
6464
*/
6565
public Builder environmentId(String environmentId) {
6666
this.environmentId = environmentId;
6767
return this;
6868
}
6969
}
7070

71-
private GetGatewayListOptions(Builder builder) {
71+
private ListGatewaysOptions(Builder builder) {
7272
Validator.notEmpty(builder.environmentId, "environmentId cannot be empty");
7373
environmentId = builder.environmentId;
7474
}
7575

7676
/**
7777
* New builder.
7878
*
79-
* @return a GetGatewayListOptions builder
79+
* @return a ListGatewaysOptions builder
8080
*/
8181
public Builder newBuilder() {
8282
return new Builder(this);

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.