Skip to content

Commit

Permalink
resource for service groups
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimutant committed Mar 5, 2024
1 parent 76a4b1d commit 1887a43
Show file tree
Hide file tree
Showing 4 changed files with 363 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ func DatasourceNutanixServiceGroupV4() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"start_port": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
"end_port": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
},
Expand All @@ -69,11 +69,11 @@ func DatasourceNutanixServiceGroupV4() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"start_port": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
"end_port": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ func DatasourceNutanixServiceGroupsV4() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"start_port": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
"end_port": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
},
Expand All @@ -95,11 +95,11 @@ func DatasourceNutanixServiceGroupsV4() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"start_port": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
"end_port": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func ResourceNutanixFloatingIPv4Create(ctx context.Context, d *schema.ResourceDa
// calling group API to poll for completion of task

taskconn := meta.(*conns.Client).PrismAPI
// Wait for the FileServer to be available
// Wait for the FLoating IP to be available
stateConf := &resource.StateChangeConf{
Pending: []string{"PENDING", "RUNNING"},
Target: []string{"kSucceeded"},
Expand Down Expand Up @@ -329,7 +329,7 @@ func ResourceNutanixFloatingIPv4Update(ctx context.Context, d *schema.ResourceDa
// calling group API to poll for completion of task

taskconn := meta.(*conns.Client).PrismAPI
// Wait for the FileServer to be available
// Wait for the Floating IP to be available
stateConf := &resource.StateChangeConf{
Pending: []string{"PENDING", "RUNNING"},
Target: []string{"kSucceeded"},
Expand Down Expand Up @@ -364,7 +364,7 @@ func ResourceNutanixFloatingIPv4Delete(ctx context.Context, d *schema.ResourceDa
// calling group API to poll for completion of task

taskconn := meta.(*conns.Client).PrismAPI
// Wait for the FileServer to be available
// Wait for the Floating IP to be available
stateConf := &resource.StateChangeConf{
Pending: []string{"PENDING", "RUNNING"},
Target: []string{"kSucceeded"},
Expand Down
Loading

0 comments on commit 1887a43

Please sign in to comment.