Skip to content

Commit fb6c853

Browse files
MDarmawanwilliam8siewstephaniegalang-ibm
authored
fix(build): Add CRK ID Filter to List KMIP Adapters (#127)
* rename keyring path for conflicts Signed-off-by: Michael Darmawan <[email protected]> * initial implementation of adapters and certs Signed-off-by: Michael Darmawan <[email protected]> * add kmip objects, fix some stuff Signed-off-by: Michael Darmawan <[email protected]> * fix structs Signed-off-by: Michael Darmawan <[email protected]> * unit tests, and some fixes Signed-off-by: Michael Darmawan <[email protected]> * remove import cycle Signed-off-by: Michael Darmawan <[email protected]> * redo mocks Signed-off-by: Michael Darmawan <[email protected]> * add mockauth Signed-off-by: Michael Darmawan <[email protected]> * fix mobk paths Signed-off-by: Michael Darmawan <[email protected]> * fix marshalling Signed-off-by: Michael Darmawan <[email protected]> * fix delete tests Signed-off-by: Michael Darmawan <[email protected]> * remove old kmip profile data Signed-off-by: Michael Darmawan <[email protected]> * address PR comments Signed-off-by: Michael Darmawan <[email protected]> * finish address comments Signed-off-by: Michael Darmawan <[email protected]> * hardcode mock responses, refactor kmip collection metadata Signed-off-by: Michael Darmawan <[email protected]> * fix tests? Signed-off-by: Michael Darmawan <[email protected]> * fix typo Signed-off-by: Michael Darmawan <[email protected]> * add object filter, overhaul list options Signed-off-by: Michael Darmawan <[email protected]> * enhance tests Signed-off-by: Michael Darmawan <[email protected]> * unexport path variables, add comments Signed-off-by: Michael Darmawan <[email protected]> * sdk fixes Signed-off-by: Michael Darmawan <[email protected]> * remove crk from adapter list Signed-off-by: Michael Darmawan <[email protected]> * add crkID filter Signed-off-by: Michael Darmawan <[email protected]> * feat(build): Update travis distribution in CI file (#123) * change travis dist Signed-off-by: Michael Darmawan <[email protected]> * add npm install check to travis Signed-off-by: Michael Darmawan <[email protected]> * real fix Signed-off-by: Michael Darmawan <[email protected]> * change python version Signed-off-by: Michael Darmawan <[email protected]> * remove pyenv, let it use default python version of 3.10 Signed-off-by: Michael Darmawan <[email protected]> --------- Signed-off-by: Michael Darmawan <[email protected]> * add info to contributing about the semantic release (#124) Signed-off-by: Michael Darmawan <[email protected]> * instpol attrib enabled only (#125) Signed-off-by: stephaniegalang <[email protected]> Co-authored-by: stephaniegalang <[email protected]> Signed-off-by: Michael Darmawan <[email protected]> * Allow instance policy attributes to be optionally specified (#126) * allow attributes to be specified optionally Signed-off-by: stephaniegalang <[email protected]> * propogate attributes, ignoring disable Signed-off-by: stephaniegalang <[email protected]> --------- Signed-off-by: stephaniegalang <[email protected]> Co-authored-by: stephaniegalang <[email protected]> Signed-off-by: Michael Darmawan <[email protected]> * fix missed merge artifacts Signed-off-by: Michael Darmawan <[email protected]> --------- Signed-off-by: Michael Darmawan <[email protected]> Signed-off-by: stephaniegalang <[email protected]> Co-authored-by: William Siew <[email protected]> Co-authored-by: stephaniegalang <[email protected]>
1 parent 55b541c commit fb6c853

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kmip_mgmt_adapters.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ type ListKmipAdaptersOptions struct {
8282
Limit *uint32
8383
Offset *uint32
8484
TotalCount *bool
85+
CrkID *string
8586
}
8687

8788
// GetKMIPAdapters method lists KMIP Adapters associated with a specific KP instance.
@@ -103,6 +104,9 @@ func (c *Client) GetKMIPAdapters(ctx context.Context, listOpts *ListKmipAdapters
103104
if listOpts.TotalCount != nil {
104105
values.Set("totalCount", fmt.Sprint(*listOpts.TotalCount))
105106
}
107+
if listOpts.CrkID != nil {
108+
values.Set("crk_id", *listOpts.CrkID)
109+
}
106110
req.URL.RawQuery = values.Encode()
107111
}
108112

0 commit comments

Comments
 (0)