forked from IBM-Cloud/terraform-provider-ibm
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added in preliminary changes for v2 atracker (IBM-Cloud#3724)
* added in preliminary changes for v2 atracker * allow redacted key saves * formatted * fixes acceptance tests * removed debugging log * allow secret * another fake secret * added review corrections * removed required flag * fixes routes not being returned during migration * additional fixes for routes usage in v1 * added example for logdna target * fix for settings acting like put instead of patch * fixes crn constantly showing up as a change as well as region * fix for route always showing recieve global event change * fix route flag being used * added review comments * Only add region if provided * Documentation update * take it from the response instead; Gave better error when ENV are missing * adjusted setting region * defaults empty strings in arrays * env update here as well * fixed comment changes as well as route workflow * Fix route apply * clean up * force new instead of applyonce * forces new target on region change * doc update and update fix for routes * Final clean up additions from acceptance tests * prevent null api numver Co-authored-by: Van Chau Bui <van.bui@ibm.com>
- Loading branch information
1 parent
572ff98
commit f3b76e1
Showing
26 changed files
with
1,597 additions
and
375 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package atracker | ||
|
||
import ( | ||
"github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" | ||
"github.com/IBM/platform-services-go-sdk/atrackerv1" | ||
"github.com/IBM/platform-services-go-sdk/atrackerv2" | ||
) | ||
|
||
const ( | ||
REDACTED_TEXT = "REDACTED" | ||
) | ||
|
||
func getAtrackerClients(meta interface{}) ( | ||
atrackerClientv1 *atrackerv1.AtrackerV1, atrackerClientv2 *atrackerv2.AtrackerV2, err error) { | ||
atrackerClientv1, err = meta.(conns.ClientSession).AtrackerV1() | ||
if err != nil { | ||
return | ||
} | ||
atrackerClientv2, err = meta.(conns.ClientSession).AtrackerV2() | ||
if err != nil { | ||
return | ||
} | ||
|
||
_, err = meta.(conns.ClientSession).BluemixSession() | ||
if err != nil { | ||
return | ||
} | ||
|
||
return atrackerClientv1, atrackerClientv2, nil | ||
} |
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.