Skip to content

Commit

Permalink
bump sdks to 3.2.2
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 3771699d896f551be4c6b9e50bb61fc566d2c257
  • Loading branch information
kungfukennyg authored and SupportSDM committed Sep 7, 2022
1 parent 6122895 commit 225d126
Show file tree
Hide file tree
Showing 10 changed files with 5,163 additions and 5,127 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ In addition to provided arguments above, the following attributes are returned b
* `enable_env_variables` -
* `id` - Unique identifier of the Resource.
* `name` - Unique human-readable name of the Resource.
* `port` -
* `port_override` -
* `region` -
* `remote_identity_group_id` -
Expand Down
9 changes: 5 additions & 4 deletions docs/resources/resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The following arguments are supported by the Resource resource:
* `port` - (Required)
* `port_override` - (Optional)
* `remote_identity_group_id` - (Optional)
* `remote_identity_healthcheck_username` - (Optional)
* `remote_identity_healthcheck_username` - (Required)
* `secret_store_id` - (Optional) ID of the secret store containing credentials for this resource, if any.
* `tags` - (Optional) Tags is a map of key, value pairs.
* `token` - (Required if storing credentials directly strongDM)
Expand Down Expand Up @@ -142,7 +142,7 @@ The following arguments are supported by the Resource resource:
* `name` - (Required) Unique human-readable name of the Resource.
* `region` - (Required)
* `remote_identity_group_id` - (Optional)
* `remote_identity_healthcheck_username` - (Optional)
* `remote_identity_healthcheck_username` - (Required)
* `role_arn` - (Optional)
* `secret_store_role_arn_path` - (Optional)
* `secret_store_role_arn_key` - (Optional)
Expand Down Expand Up @@ -294,6 +294,7 @@ The following arguments are supported by the Resource resource:
* `egress_filter` - (Optional) A filter applied to the routing logic to pin datasource to nodes.
* `enable_env_variables` - (Optional)
* `name` - (Required) Unique human-readable name of the Resource.
* `port` - (Optional)
* `port_override` - (Optional)
* `region` - (Required)
* `remote_identity_group_id` - (Optional)
Expand Down Expand Up @@ -352,8 +353,8 @@ The following arguments are supported by the Resource resource:
* `secret_store_app_id_path` - (Required if using credentials stored in a secret store)
* `secret_store_app_id_key` - (Optional)
* `bind_interface` - (Optional) Bind interface
* `client_certificate` - (Optional)
* `secret_store_client_certificate_path` - (Optional)
* `client_certificate` - (Required if storing credentials directly strongDM)
* `secret_store_client_certificate_path` - (Required if using credentials stored in a secret store)
* `secret_store_client_certificate_key` - (Optional)
* `egress_filter` - (Optional) A filter applied to the routing logic to pin datasource to nodes.
* `name` - (Required) Unique human-readable name of the Resource.
Expand Down
6 changes: 6 additions & 0 deletions sdm/data_source_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,11 @@ func dataSourceResource() *schema.Resource {
Optional: true,
Description: "Unique human-readable name of the Resource.",
},
"port": {
Type: schema.TypeInt,
Optional: true,
Description: "",
},
"port_override": {
Type: schema.TypeInt,
Optional: true,
Expand Down Expand Up @@ -5697,6 +5702,7 @@ func dataSourceResourceList(ctx context.Context, d *schema.ResourceData, cc *sdm
"enable_env_variables": (v.EnableEnvVariables),
"id": (v.ID),
"name": (v.Name),
"port": (v.Port),
"port_override": (v.PortOverride),
"region": (v.Region),
"remote_identity_group_id": (v.RemoteIdentityGroupID),
Expand Down
2 changes: 1 addition & 1 deletion sdm/internal/sdk/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (
const (
defaultAPIHost = "api.strongdm.com:443"
apiVersion = "2021-08-23"
defaultUserAgent = "strongdm-sdk-go/3.2.1"
defaultUserAgent = "strongdm-sdk-go/3.2.2"
)

var _ = metadata.Pairs
Expand Down
10,251 changes: 5,133 additions & 5,118 deletions sdm/internal/sdk/internal/v1/drivers.pb.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions sdm/internal/sdk/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ type AWSConsole struct {
// Unique human-readable name of the Resource.
Name string `json:"name"`

Port int32 `json:"port"`

PortOverride int32 `json:"portOverride"`

Region string `json:"region"`
Expand Down
2 changes: 2 additions & 0 deletions sdm/internal/sdk/plumbing.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ func convertAWSConsoleToPorcelain(plumbing *proto.AWSConsole) (*AWSConsole, erro
porcelain.Healthy = plumbing.Healthy
porcelain.ID = plumbing.Id
porcelain.Name = plumbing.Name
porcelain.Port = plumbing.Port
porcelain.PortOverride = plumbing.PortOverride
porcelain.Region = plumbing.Region
porcelain.RemoteIdentityGroupID = plumbing.RemoteIdentityGroupId
Expand Down Expand Up @@ -539,6 +540,7 @@ func convertAWSConsoleToPlumbing(porcelain *AWSConsole) *proto.AWSConsole {
plumbing.Healthy = (porcelain.Healthy)
plumbing.Id = (porcelain.ID)
plumbing.Name = (porcelain.Name)
plumbing.Port = (porcelain.Port)
plumbing.PortOverride = (porcelain.PortOverride)
plumbing.Region = (porcelain.Region)
plumbing.RemoteIdentityGroupId = (porcelain.RemoteIdentityGroupID)
Expand Down
2 changes: 1 addition & 1 deletion sdm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
sdm "github.com/strongdm/terraform-provider-sdm/sdm/internal/sdk"
)

const userAgent = "terraform-provider-sdm/3.2.1"
const userAgent = "terraform-provider-sdm/3.2.2"

// Provider returns a terraform.ResourceProvider.
func Provider() *schema.Provider {
Expand Down
3 changes: 2 additions & 1 deletion sdm/resource_all_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ func TestAccSDMResource_UpdateAllTypes(t *testing.T) {
{"egress_filter", `"name:value"`},
{"enable_env_variables", `true`},
{"name", `"name"`},
{"port", `443`},
{"region", `"region"`},
{"remote_identity_healthcheck_username", `"remote_identity_healthcheck_username"`},
{"role_arn", `"role_arn"`},
Expand Down Expand Up @@ -1243,6 +1244,7 @@ func TestAccSDMResource_UpdateAllTypes_SecretStores(t *testing.T) {
{"egress_filter", `"name:value"`},
{"enable_env_variables", `true`},
{"name", `"secret_name"`},
{"port", `443`},
{"region", `"region"`},
{"remote_identity_healthcheck_username", `"remote_identity_healthcheck_username"`},
{"secret_store_role_arn_path", `"path"`},
Expand Down Expand Up @@ -2155,7 +2157,6 @@ func TestAccSDMResource_UpdateAllTypes_SecretStores(t *testing.T) {
})
}
}

func TestAccSDMSecretStore_UpdateAllTypes(t *testing.T) {
type testCase struct {
resource string
Expand Down
12 changes: 10 additions & 2 deletions sdm/resource_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func resourceResource() *schema.Resource {
},
"remote_identity_healthcheck_username": {
Type: schema.TypeString,
Optional: true,
Required: true,
Description: "",
},
"secret_store_id": {
Expand Down Expand Up @@ -549,7 +549,7 @@ func resourceResource() *schema.Resource {
},
"remote_identity_healthcheck_username": {
Type: schema.TypeString,
Optional: true,
Required: true,
Description: "",
},
"role_arn": {
Expand Down Expand Up @@ -1325,6 +1325,11 @@ func resourceResource() *schema.Resource {
Required: true,
Description: "Unique human-readable name of the Resource.",
},
"port": {
Type: schema.TypeInt,
Optional: true,
Description: "",
},
"port_override": {
Type: schema.TypeInt,
Optional: true,
Expand Down Expand Up @@ -9769,6 +9774,7 @@ func convertResourceToPlumbing(d *schema.ResourceData) sdm.Resource {
EgressFilter: convertStringToPlumbing(raw["egress_filter"]),
EnableEnvVariables: convertBoolToPlumbing(raw["enable_env_variables"]),
Name: convertStringToPlumbing(raw["name"]),
Port: convertInt32ToPlumbing(raw["port"]),
PortOverride: convertInt32ToPlumbing(raw["port_override"]),
Region: convertStringToPlumbing(raw["region"]),
RemoteIdentityGroupID: convertStringToPlumbing(raw["remote_identity_group_id"]),
Expand Down Expand Up @@ -12000,6 +12006,7 @@ func resourceResourceCreate(ctx context.Context, d *schema.ResourceData, cc *sdm
"egress_filter": (v.EgressFilter),
"enable_env_variables": (v.EnableEnvVariables),
"name": (v.Name),
"port": (v.Port),
"port_override": (v.PortOverride),
"region": (v.Region),
"remote_identity_group_id": (v.RemoteIdentityGroupID),
Expand Down Expand Up @@ -13723,6 +13730,7 @@ func resourceResourceRead(ctx context.Context, d *schema.ResourceData, cc *sdm.C
"egress_filter": (v.EgressFilter),
"enable_env_variables": (v.EnableEnvVariables),
"name": (v.Name),
"port": (v.Port),
"port_override": (v.PortOverride),
"region": (v.Region),
"remote_identity_group_id": (v.RemoteIdentityGroupID),
Expand Down

0 comments on commit 225d126

Please sign in to comment.