-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add query method with all params for BucketsApi, OrganizationAp…
…i and TasksApi (#278)
- Loading branch information
1 parent
59b0d63
commit 7e4b969
Showing
10 changed files
with
453 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
134 changes: 134 additions & 0 deletions
134
client/src/main/java/com/influxdb/client/BucketsQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
/* | ||
* The MIT License | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
package com.influxdb.client; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
public class BucketsQuery { | ||
|
||
/** | ||
* Offset. (optional) | ||
*/ | ||
@Nullable | ||
private Integer offset; | ||
|
||
/** | ||
* Limit. (optional, default to 20) | ||
*/ | ||
@Nullable | ||
private Integer limit; | ||
|
||
/** | ||
* The last resource ID from which to seek from (but not including). | ||
* This is to be used instead of `offset`. (optional) | ||
*/ | ||
@Nullable | ||
private String after; | ||
|
||
/** | ||
* The name of the organization. (optional) | ||
*/ | ||
@Nullable | ||
private String org; | ||
|
||
/** | ||
* The organization ID. (optional) | ||
*/ | ||
@Nullable | ||
private String orgID; | ||
|
||
/** | ||
* Only returns buckets with a specific name. (optional) | ||
*/ | ||
@Nullable | ||
private String name; | ||
|
||
/** | ||
* Only returns buckets with a specific ID. (optional) | ||
*/ | ||
@Nullable | ||
private String id; | ||
|
||
@Nullable | ||
public Integer getOffset() { | ||
return offset; | ||
} | ||
|
||
public void setOffset(@Nullable final Integer offset) { | ||
this.offset = offset; | ||
} | ||
|
||
@Nullable | ||
public Integer getLimit() { | ||
return limit; | ||
} | ||
|
||
public void setLimit(@Nullable final Integer limit) { | ||
this.limit = limit; | ||
} | ||
|
||
@Nullable | ||
public String getAfter() { | ||
return after; | ||
} | ||
|
||
public void setAfter(@Nullable final String after) { | ||
this.after = after; | ||
} | ||
|
||
@Nullable | ||
public String getOrg() { | ||
return org; | ||
} | ||
|
||
public void setOrg(@Nullable final String org) { | ||
this.org = org; | ||
} | ||
|
||
@Nullable | ||
public String getOrgID() { | ||
return orgID; | ||
} | ||
|
||
public void setOrgID(@Nullable final String orgID) { | ||
this.orgID = orgID; | ||
} | ||
|
||
@Nullable | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(@Nullable final String name) { | ||
this.name = name; | ||
} | ||
|
||
@Nullable | ||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(@Nullable final String id) { | ||
this.id = id; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 117 additions & 0 deletions
117
client/src/main/java/com/influxdb/client/OrganizationsQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
/* | ||
* The MIT License | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
package com.influxdb.client; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
public class OrganizationsQuery { | ||
|
||
/** | ||
* Offset. (optional) | ||
*/ | ||
@Nullable | ||
private Integer offset; | ||
|
||
/** | ||
* Limit. (optional, default to 20) | ||
*/ | ||
@Nullable | ||
private Integer limit; | ||
|
||
/** | ||
* Descending. (optional, default to false) | ||
*/ | ||
@Nullable | ||
private Boolean descending; | ||
|
||
/** | ||
* Filter organizations to a specific organization name. (optional) | ||
*/ | ||
@Nullable | ||
private String org; | ||
/** | ||
* Filter organizations to a specific organization ID. (optional) | ||
*/ | ||
@Nullable | ||
private String orgID; | ||
|
||
/** | ||
* Filter organizations to a specific user ID. (optional) | ||
*/ | ||
@Nullable | ||
private String userID; | ||
|
||
@Nullable | ||
public Integer getOffset() { | ||
return offset; | ||
} | ||
|
||
public void setOffset(@Nullable final Integer offset) { | ||
this.offset = offset; | ||
} | ||
|
||
@Nullable | ||
public Integer getLimit() { | ||
return limit; | ||
} | ||
|
||
public void setLimit(@Nullable final Integer limit) { | ||
this.limit = limit; | ||
} | ||
|
||
@Nullable | ||
public Boolean getDescending() { | ||
return descending; | ||
} | ||
|
||
public void setDescending(@Nullable final Boolean descending) { | ||
this.descending = descending; | ||
} | ||
|
||
@Nullable | ||
public String getOrg() { | ||
return org; | ||
} | ||
|
||
public void setOrg(@Nullable final String org) { | ||
this.org = org; | ||
} | ||
|
||
@Nullable | ||
public String getOrgID() { | ||
return orgID; | ||
} | ||
|
||
public void setOrgID(@Nullable final String orgID) { | ||
this.orgID = orgID; | ||
} | ||
|
||
@Nullable | ||
public String getUserID() { | ||
return userID; | ||
} | ||
|
||
public void setUserID(@Nullable final String userID) { | ||
this.userID = userID; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.