Conversation
There was a problem hiding this comment.
There's a folder 'response' under 'model', we can shift it there
There was a problem hiding this comment.
As discussed, will create one generic ontap response class
There was a problem hiding this comment.
This file can be shifted to model/response
There was a problem hiding this comment.
As discussed, will create one generic ontap response class
There was a problem hiding this comment.
Can't we reuse this in VolumeRequestDTO, instead of AggregateDTO?
There was a problem hiding this comment.
As discussed, will remove the request DTOs and use the same ontap model with null annotation
There was a problem hiding this comment.
Can't we reuse this in VolumeRequestDTO, instead of SvmDTO?
|
|
||
| import java.net.URI; | ||
|
|
||
| @Lazy |
There was a problem hiding this comment.
To instantiate only when required, we can use this across all the feign clients?
There was a problem hiding this comment.
some feign client we need upfront like Cluster, SVM for others we will use @lazy
| } | ||
|
|
||
|
|
||
| @Override |
There was a problem hiding this comment.
for response object classes, we need not to have equals, hashcode and testing methods.
There was a problem hiding this comment.
removed all responses and created one generic OnTapResponse for all object which has numRecord or records
| public void setVersion(ClusterVersion version) { | ||
| this.version = version; | ||
| } | ||
| @ApiModelProperty(value = "") |
There was a problem hiding this comment.
these annotations were added due to swagger, and currently we need not to have them, lets remove them
There was a problem hiding this comment.
removed it and also removed from already added files also
| this.disaggregated = disaggregated; | ||
| } | ||
| @Override | ||
| public String toString() { |
There was a problem hiding this comment.
we can add equals and hashcode using only uuid in this class
| return this; | ||
| } | ||
|
|
||
| public SvmResponse addRecordsItem(Svm recordsItem) { |
There was a problem hiding this comment.
removed all responses and created one generic OnTapResponse for all object which has numRecord or records
| @@ -0,0 +1,130 @@ | |||
| /* | |||
| * Licensed to the Apache Software Foundation (ASF) under one | |||
There was a problem hiding this comment.
We can rename this class to Version.java as Version class already follows standard format .
| @@ -0,0 +1,131 @@ | |||
| /* | |||
| * Licensed to the Apache Software Foundation (ASF) under one | |||
There was a problem hiding this comment.
Just a thought, can we have class called response.java which accepts generic and we can remove all AggregateResponse etc response objects.
| public interface AggregateFeignClient { | ||
|
|
||
| @RequestMapping(method=RequestMethod.GET) | ||
| OnTapResponse<Aggregate> getAggregateResponse(URI baseURL, @RequestHeader("Authorization") String header); |
There was a problem hiding this comment.
Add the comment for this method
| public interface SvmFeignClient { | ||
|
|
||
| @RequestMapping(method = RequestMethod.GET) | ||
| OnTapResponse<Svm> getSvmResponse(URI baseURL, @RequestHeader("Authorization") String header); |
| @@ -34,27 +37,20 @@ | |||
| public interface VolumeFeignClient { | |||
|
|
|||
| @DeleteMapping("/storage/volumes/{id}") | |||
| public interface SvmFeignClient { | ||
|
|
||
| //this method to get all svms and also filtered svms based on query params as a part of URL | ||
| @RequestMapping(method = RequestMethod.GET) |
There was a problem hiding this comment.
A general comment which can be taken later. I see somewhere RequestMapping and somewhere GetMapping,PostMapping.We can have same aross all feign client
…ommits. # This is the 1st commit message: CSTACKEX-25: Basic class structure # This is the commit message #2: Add PrimaryStoragePool base code # This is the commit message #3: CSTACKEX-25: Create Volume code basic code added # This is the commit message #4: CSTACKEX-25: additional logic for Primary storage pool creation # This is the commit message #5: CSTACKEX-29 Cluster, SVM and Aggr Feign Client # This is the commit message #6: CSTACKEX-29 Added License Info # This is the commit message #7: CSTACKEX-29 Resolve Review Comments # This is the commit message #8: CSTACKEX-29 Resolve Style check issues � This is the commit message #9: CSTACKEX-29 Resolve Style check issues � This is the commit message #10: CSTACKEX-29 Resolve Precommits Issues # This is the commit message #11: CSTACKEX-29 Resolve Precommits Issues
# This is the 1st commit message: NFS Cloudstack volume and export policy utils # This is the commit message #2: Licencse add in files # This is the commit message #3: accessgroup create recode # This is the commit message #4: creatacessgroup for NFS impl # This is the commit message #5: storage pool mounting on host # This is the commit message #6: storage pool mounting on host 1 # This is the commit message #7: vm restart issue # This is the commit message #8: vm restart issue 1 # This is the commit message #9: vm restart issue 2 # This is the commit message #10: vm instance creation test1 # This is the commit message #11: vm instance creation test4
Description
Added Custer, SVM and Aggr Feign Client interfaces along with respective POJO's
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?