Skip to content

Commit

Permalink
fix(SDK): regeneration after content review
Browse files Browse the repository at this point in the history
  • Loading branch information
gary1998 committed Jun 24, 2021
1 parent 6b36602 commit 55d4dde
Show file tree
Hide file tree
Showing 23 changed files with 250 additions and 230 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* Response including listed providers.
* A list of providers is returned.
*/
public class ApiListProvidersResponse extends GenericModel {

Expand All @@ -42,7 +42,7 @@ public List<ApiProvider> getProviders() {
/**
* Gets the limit.
*
* The number of elements returned in the current instance. Default is 200.
* The number of elements returned in the current instance. The default is 200.
*
* @return the limit
*/
Expand All @@ -53,7 +53,7 @@ public Long getLimit() {
/**
* Gets the skip.
*
* The offset is the index of the item from which you want to start returning data from. Default is 0.
* The offset is the index of the item from which you want to start returning data from. The default is 0.
*
* @return the skip
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* Provides a detailed description of a `Note`.
* Provides a detailed description of a note.
*/
public class ApiNote extends GenericModel {

/**
* This must be 1&amp;#58;1 with members of our oneofs, it can be used for filtering Note and Occurrence on their
* kind.
* The type of note. Use this field to filter notes and occurences by kind.
* - FINDING&amp;#58; The note and occurrence represent a finding.
* - KPI&amp;#58; The note and occurrence represent a KPI value.
* - CARD&amp;#58; The note represents a card showing findings and related metric values.
Expand Down Expand Up @@ -319,7 +318,7 @@ public Builder newBuilder() {
/**
* Gets the shortDescription.
*
* A one sentence description of this `Note`.
* A one sentence description of your note.
*
* @return the shortDescription
*/
Expand All @@ -330,7 +329,7 @@ public String shortDescription() {
/**
* Gets the longDescription.
*
* A detailed description of this `Note`.
* A more detailed description of your note.
*
* @return the longDescription
*/
Expand All @@ -341,8 +340,7 @@ public String longDescription() {
/**
* Gets the kind.
*
* This must be 1&amp;#58;1 with members of our oneofs, it can be used for filtering Note and Occurrence on their
* kind.
* The type of note. Use this field to filter notes and occurences by kind.
* - FINDING&amp;#58; The note and occurrence represent a finding.
* - KPI&amp;#58; The note and occurrence represent a KPI value.
* - CARD&amp;#58; The note represents a card showing findings and related metric values.
Expand All @@ -358,8 +356,6 @@ public String kind() {
/**
* Gets the relatedUrl.
*
* URLs associated with this note.
*
* @return the relatedUrl
*/
public List<ApiNoteRelatedUrl> relatedUrl() {
Expand Down Expand Up @@ -402,7 +398,7 @@ public Date updateTime() {
/**
* Gets the id.
*
* The id of the note.
* The ID of the note.
*
* @return the id
*/
Expand All @@ -413,7 +409,7 @@ public String id() {
/**
* Gets the shared.
*
* True if this `Note` can be shared by multiple accounts.
* True if this note can be shared by multiple accounts.
*
* @return the shared
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public String label() {
/**
* Gets the url.
*
* Specific URL to associate with the note.
* The URL that you want to associate with the note.
*
* @return the url
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
public class ApiOccurrence extends GenericModel {

/**
* This must be 1&amp;#58;1 with members of our oneofs, it can be used for filtering Note and Occurrence on their
* kind.
* The type of note. Use this field to filter notes and occurences by kind.
* - FINDING&amp;#58; The note and occurrence represent a finding.
* - KPI&amp;#58; The note and occurrence represent a KPI value.
* - CARD&amp;#58; The note represents a card showing findings and related metric values.
Expand Down Expand Up @@ -270,8 +269,7 @@ public String noteName() {
/**
* Gets the kind.
*
* This must be 1&amp;#58;1 with members of our oneofs, it can be used for filtering Note and Occurrence on their
* kind.
* The type of note. Use this field to filter notes and occurences by kind.
* - FINDING&amp;#58; The note and occurrence represent a finding.
* - KPI&amp;#58; The note and occurrence represent a KPI value.
* - CARD&amp;#58; The note represents a card showing findings and related metric values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* Provides a detailed description of a `Provider`.
* Provides a detailed description of a provider.
*/
public class ApiProvider extends GenericModel {

Expand All @@ -25,7 +25,7 @@ public class ApiProvider extends GenericModel {
/**
* Gets the name.
*
* The name of the provider in the form "{account_id}/providers/{provider_id}".
* The name of the provider in the form '{account_id}/providers/{provider_id}'.
*
* @return the name
*/
Expand All @@ -36,7 +36,7 @@ public String getName() {
/**
* Gets the id.
*
* The id of the provider.
* The ID of the provider.
*
* @return the id
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
public class CreateNoteOptions extends GenericModel {

/**
* This must be 1&amp;#58;1 with members of our oneofs, it can be used for filtering Note and Occurrence on their
* kind.
* The type of note. Use this field to filter notes and occurences by kind.
* - FINDING&amp;#58; The note and occurrence represent a finding.
* - KPI&amp;#58; The note and occurrence represent a KPI value.
* - CARD&amp;#58; The note represents a card showing findings and related metric values.
Expand Down Expand Up @@ -365,7 +364,7 @@ public Builder newBuilder() {
/**
* Gets the providerId.
*
* Part of `parent`. This field contains the provider_id for example: providers/{provider_id}.
* Part of the parent. This field contains the provider ID. For example: providers/{provider_id}.
*
* @return the providerId
*/
Expand All @@ -376,7 +375,7 @@ public String providerId() {
/**
* Gets the shortDescription.
*
* A one sentence description of this `Note`.
* A one sentence description of your note.
*
* @return the shortDescription
*/
Expand All @@ -387,7 +386,7 @@ public String shortDescription() {
/**
* Gets the longDescription.
*
* A detailed description of this `Note`.
* A more detailed description of your note.
*
* @return the longDescription
*/
Expand All @@ -398,8 +397,7 @@ public String longDescription() {
/**
* Gets the kind.
*
* This must be 1&amp;#58;1 with members of our oneofs, it can be used for filtering Note and Occurrence on their
* kind.
* The type of note. Use this field to filter notes and occurences by kind.
* - FINDING&amp;#58; The note and occurrence represent a finding.
* - KPI&amp;#58; The note and occurrence represent a KPI value.
* - CARD&amp;#58; The note represents a card showing findings and related metric values.
Expand All @@ -415,7 +413,7 @@ public String kind() {
/**
* Gets the id.
*
* The id of the note.
* The ID of the note.
*
* @return the id
*/
Expand All @@ -437,8 +435,6 @@ public Reporter reportedBy() {
/**
* Gets the relatedUrl.
*
* URLs associated with this note.
*
* @return the relatedUrl
*/
public List<ApiNoteRelatedUrl> relatedUrl() {
Expand All @@ -459,7 +455,7 @@ public Date expirationTime() {
/**
* Gets the shared.
*
* True if this `Note` can be shared by multiple accounts.
* True if this note can be shared by multiple accounts.
*
* @return the shared
*/
Expand Down Expand Up @@ -514,7 +510,7 @@ public Section section() {
/**
* Gets the transactionId.
*
* The transaction id for the request in uuid v4 format.
* The transaction ID for the request in UUID v4 format.
*
* @return the transactionId
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
public class CreateOccurrenceOptions extends GenericModel {

/**
* This must be 1&amp;#58;1 with members of our oneofs, it can be used for filtering Note and Occurrence on their
* kind.
* The type of note. Use this field to filter notes and occurences by kind.
* - FINDING&amp;#58; The note and occurrence represent a finding.
* - KPI&amp;#58; The note and occurrence represent a KPI value.
* - CARD&amp;#58; The note represents a card showing findings and related metric values.
Expand Down Expand Up @@ -53,8 +52,8 @@ public interface Kind {
protected Finding finding;
protected Kpi kpi;
protected Map<String, Object> referenceData;
protected Boolean replaceIfExists;
protected String transactionId;
protected Boolean replaceIfExists;

/**
* Builder.
Expand All @@ -70,8 +69,8 @@ public static class Builder {
private Finding finding;
private Kpi kpi;
private Map<String, Object> referenceData;
private Boolean replaceIfExists;
private String transactionId;
private Boolean replaceIfExists;

private Builder(CreateOccurrenceOptions createOccurrenceOptions) {
this.providerId = createOccurrenceOptions.providerId;
Expand All @@ -84,8 +83,8 @@ private Builder(CreateOccurrenceOptions createOccurrenceOptions) {
this.finding = createOccurrenceOptions.finding;
this.kpi = createOccurrenceOptions.kpi;
this.referenceData = createOccurrenceOptions.referenceData;
this.replaceIfExists = createOccurrenceOptions.replaceIfExists;
this.transactionId = createOccurrenceOptions.transactionId;
this.replaceIfExists = createOccurrenceOptions.replaceIfExists;
}

/**
Expand Down Expand Up @@ -229,24 +228,24 @@ public Builder referenceData(Map<String, Object> referenceData) {
}

/**
* Set the replaceIfExists.
* Set the transactionId.
*
* @param replaceIfExists the replaceIfExists
* @param transactionId the transactionId
* @return the CreateOccurrenceOptions builder
*/
public Builder replaceIfExists(Boolean replaceIfExists) {
this.replaceIfExists = replaceIfExists;
public Builder transactionId(String transactionId) {
this.transactionId = transactionId;
return this;
}

/**
* Set the transactionId.
* Set the replaceIfExists.
*
* @param transactionId the transactionId
* @param replaceIfExists the replaceIfExists
* @return the CreateOccurrenceOptions builder
*/
public Builder transactionId(String transactionId) {
this.transactionId = transactionId;
public Builder replaceIfExists(Boolean replaceIfExists) {
this.replaceIfExists = replaceIfExists;
return this;
}

Expand Down Expand Up @@ -289,8 +288,8 @@ protected CreateOccurrenceOptions(Builder builder) {
finding = builder.finding;
kpi = builder.kpi;
referenceData = builder.referenceData;
replaceIfExists = builder.replaceIfExists;
transactionId = builder.transactionId;
replaceIfExists = builder.replaceIfExists;
}

/**
Expand All @@ -305,7 +304,7 @@ public Builder newBuilder() {
/**
* Gets the providerId.
*
* Part of `parent`. This contains the provider_id for example: providers/{provider_id}.
* Part of the parent. This field contains the provider ID. For example: providers/{provider_id}.
*
* @return the providerId
*/
Expand All @@ -328,8 +327,7 @@ public String noteName() {
/**
* Gets the kind.
*
* This must be 1&amp;#58;1 with members of our oneofs, it can be used for filtering Note and Occurrence on their
* kind.
* The type of note. Use this field to filter notes and occurences by kind.
* - FINDING&amp;#58; The note and occurrence represent a finding.
* - KPI&amp;#58; The note and occurrence represent a KPI value.
* - CARD&amp;#58; The note represents a card showing findings and related metric values.
Expand Down Expand Up @@ -419,25 +417,25 @@ public Map<String, Object> referenceData() {
}

/**
* Gets the replaceIfExists.
* Gets the transactionId.
*
* It allows replacing an existing occurrence when set to true.
* The transaction ID for the request in UUID v4 format.
*
* @return the replaceIfExists
* @return the transactionId
*/
public Boolean replaceIfExists() {
return replaceIfExists;
public String transactionId() {
return transactionId;
}

/**
* Gets the transactionId.
* Gets the replaceIfExists.
*
* The transaction id for the request in uuid v4 format.
* When set to true, an existing occurrence is replaced rather than duplicated.
*
* @return the transactionId
* @return the replaceIfExists
*/
public String transactionId() {
return transactionId;
public Boolean replaceIfExists() {
return replaceIfExists;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public Builder newBuilder() {
/**
* Gets the providerId.
*
* First part of note `name`: providers/{provider_id}/notes/{note_id}.
* Part of the parent. This field contains the provider ID. For example: providers/{provider_id}.
*
* @return the providerId
*/
Expand All @@ -141,7 +141,7 @@ public String noteId() {
/**
* Gets the transactionId.
*
* The transaction id for the request in uuid v4 format.
* The transaction ID for the request in UUID v4 format.
*
* @return the transactionId
*/
Expand Down
Loading

0 comments on commit 55d4dde

Please sign in to comment.