Skip to content

Commit

Permalink
update terraform as per latest eventstreams go sdk release 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sreee9 committed Oct 18, 2023
1 parent 68553f7 commit 4fdb771
Show file tree
Hide file tree
Showing 467 changed files with 7,380 additions and 7,372 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/IBM/container-registry-go-sdk v1.1.0
github.com/IBM/continuous-delivery-go-sdk v1.2.0
github.com/IBM/event-notifications-go-admin-sdk v0.2.4
github.com/IBM/eventstreams-go-sdk v1.2.0
github.com/IBM/eventstreams-go-sdk v1.4.0
github.com/IBM/go-sdk-core/v3 v3.2.4
github.com/IBM/go-sdk-core/v5 v5.14.1
github.com/IBM/ibm-cos-sdk-go v1.10.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ github.com/IBM/event-notifications-go-admin-sdk v0.2.4 h1:WWUxwrKQxvExEK+xaAQOs6
github.com/IBM/event-notifications-go-admin-sdk v0.2.4/go.mod h1:1TlGAFP47DybbovJfHtYYgSI8xpLL8Q0wao6vsAlb6c=
github.com/IBM/eventstreams-go-sdk v1.2.0 h1:eP0afHArMGjwhGqvZAhhu/3EDKRch2JehpveqF1TUjs=
github.com/IBM/eventstreams-go-sdk v1.2.0/go.mod h1:2tuAxaYLctfqfr5jvyqSrxxEQGMwYPm3yJGWSj85YVQ=
github.com/IBM/eventstreams-go-sdk v1.4.0 h1:yS/Ns29sBOe8W2tynQmz9HTKqQZ0ckse4Py5Oy/F2rM=
github.com/IBM/eventstreams-go-sdk v1.4.0/go.mod h1:2tuAxaYLctfqfr5jvyqSrxxEQGMwYPm3yJGWSj85YVQ=
github.com/IBM/go-sdk-core/v3 v3.0.0/go.mod h1:JI5NS2+iCoY/D8Oq3JNEZNA7qO42agu6fnaUmDsRcJA=
github.com/IBM/go-sdk-core/v3 v3.2.4 h1:WKYJYYKlZnw1y/gM+Qbf5EQVAL9xaoD54+ooJZz/iBQ=
github.com/IBM/go-sdk-core/v3 v3.2.4/go.mod h1:lk9eOzNbNltPf3CBpcg1Ewkhw4qC3u2QCCKDRsUA2M0=
Expand Down
6 changes: 3 additions & 3 deletions ibm/flex/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (m Map) Contains(key string) bool {

// Delete deletes a key out of the map with the given prefix.
func (m Map) Delete(prefix string) {
for k, _ := range m {
for k := range m {
match := k == prefix
if !match {
if !strings.HasPrefix(k, prefix) {
Expand All @@ -47,7 +47,7 @@ func (m Map) Delete(prefix string) {
// Keys returns all of the top-level keys in this map
func (m Map) Keys() []string {
ks := make(map[string]struct{})
for k, _ := range m {
for k := range m {
idx := strings.Index(k, ".")
if idx == -1 {
idx = len(k)
Expand All @@ -57,7 +57,7 @@ func (m Map) Keys() []string {
}

result := make([]string, 0, len(ks))
for k, _ := range ks {
for k := range ks {
result = append(result, k)
}

Expand Down
10 changes: 5 additions & 5 deletions ibm/service/atracker/data_source_ibm_atracker_targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,31 +123,31 @@ func DataSourceIBMAtrackerTargets() *schema.Resource {
},
},
},
"eventstreams_endpoint": &schema.Schema{
"eventstreams_endpoint": {
Type: schema.TypeList,
Computed: true,
Description: "Property values for the Event Streams Endpoint in responses.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"target_crn": &schema.Schema{
"target_crn": {
Type: schema.TypeString,
Computed: true,
Description: "The CRN of the Event Streams instance.",
},
"brokers": &schema.Schema{
"brokers": {
Type: schema.TypeList,
Computed: true,
Description: "List of broker endpoints.",
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"topic": &schema.Schema{
"topic": {
Type: schema.TypeString,
Computed: true,
Description: "The messsage hub topic defined in the Event Streams instance.",
},
"api_key": &schema.Schema{ // pragma: allowlist secret
"api_key": { // pragma: allowlist secret
Type: schema.TypeString,
Computed: true,
Sensitive: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestAccIBMAtrackerTargetsDataSourceAllArgs(t *testing.T) {
PreCheck: func() { acc.TestAccPreCheck(t) },
Providers: acc.TestAccProviders,
Steps: []resource.TestStep{
resource.TestStep{
{
Config: testAccCheckIBMAtrackerTargetsDataSourceConfig(targetName, targetTargetType, targetRegion),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("data.ibm_atracker_targets.atracker_targets", "id"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestAccIBMAtrackerSettingsBasic(t *testing.T) {
resource.TestCheckResourceAttr("ibm_atracker_settings.atracker_settings", "private_api_endpoint_only", privateAPIEndpointOnly),
),
},
resource.TestStep{
{
Config: testAccCheckIBMAtrackerSettingsConfigBasic(metadataRegionPrimaryUpdate,
metadataRegionPrimary, privateAPIEndpointOnly),
Check: resource.ComposeAggregateTestCheckFunc(
Expand Down
10 changes: 5 additions & 5 deletions ibm/service/atracker/resource_ibm_atracker_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,30 +102,30 @@ func ResourceIBMAtrackerTarget() *schema.Resource {
},
},
},
"eventstreams_endpoint": &schema.Schema{
"eventstreams_endpoint": {
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Description: "Property values for an Event Streams Endpoint in requests.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"target_crn": &schema.Schema{
"target_crn": {
Type: schema.TypeString,
Required: true,
Description: "The CRN of the Event Streams instance.",
},
"brokers": &schema.Schema{
"brokers": {
Type: schema.TypeList,
Required: true,
Description: "List of broker endpoints.",
Elem: &schema.Schema{Type: schema.TypeString},
},
"topic": &schema.Schema{
"topic": {
Type: schema.TypeString,
Required: true,
Description: "The messsage hub topic defined in the Event Streams instance.",
},
"api_key": &schema.Schema{ // pragma: allowlist secret
"api_key": { // pragma: allowlist secret
Type: schema.TypeString,
Required: true,
Sensitive: true,
Expand Down

0 comments on commit 4fdb771

Please sign in to comment.