Skip to content

Commit

Permalink
chore: issued go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Sep 12, 2024
1 parent 8a68ed5 commit 8025435
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions spectrocloud/resource_pcg_ippool.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func resourcePrivateCloudGatewayIpPool() *schema.Resource {
ReadContext: resourceIpPoolRead,
UpdateContext: resourceIpPoolUpdate,
DeleteContext: resourceIpPoolDelete,
Description: "A Resource to manage IP pools for Private Cloud Gateway.",
Description: "A Resource to manage IP pools for Private Cloud Gateway.",

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(10 * time.Minute),
Expand All @@ -29,15 +29,15 @@ func resourcePrivateCloudGatewayIpPool() *schema.Resource {
SchemaVersion: 2,
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "The name of the IP pool.",
},
"private_cloud_gateway_id": {
Type: schema.TypeString,
ForceNew: true,
Required: true,
Type: schema.TypeString,
ForceNew: true,
Required: true,
Description: "The ID of the Private Cloud Gateway.",
},
"network_type": {
Expand All @@ -47,28 +47,28 @@ func resourcePrivateCloudGatewayIpPool() *schema.Resource {
Description: "The type of network for the IP pool. Allowed values are: `range` and `subnet`.",
},
"ip_start_range": {
Type: schema.TypeString,
Optional: true,
Type: schema.TypeString,
Optional: true,
Description: "The start IP address of the IP pool. Required if `network_type` is `range`.",
},
"ip_end_range": {
Type: schema.TypeString,
Optional: true,
Type: schema.TypeString,
Optional: true,
Description: "The end IP address of the IP pool. Required if `network_type` is `range`.",
},
"subnet_cidr": {
Type: schema.TypeString,
Optional: true,
Type: schema.TypeString,
Optional: true,
Description: "The subnet CIDR of the IP pool. Required if `network_type` is `subnet`.",
},
"prefix": {
Type: schema.TypeInt,
Required: true,
Type: schema.TypeInt,
Required: true,
Description: "The prefix of the IP pool provided network range or subnet. For example `24` for a `/24` subnet or a range that falls inside a `24` subnet.",
},
"gateway": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
Description: "The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.",
},
"nameserver_addresses": {
Expand All @@ -90,9 +90,9 @@ func resourcePrivateCloudGatewayIpPool() *schema.Resource {
Description: "The list of nameserver search suffixes for the IP pool. For example, `example.org`.",
},
"restrict_to_single_cluster": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Restrict the IP pool to a single cluster. If set to `true`, the IP pool is restricted to a single cluster. We recommend setting this to `true` for production environments and creating separate IP pools for each cluster.",
},
},
Expand Down

0 comments on commit 8025435

Please sign in to comment.