Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate tenant_id of networking resources #952

Merged
merged 1 commit into from
Mar 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions docs/data-sources/networking_network_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ data "huaweicloud_networking_network_v2" "network" {

* `matching_subnet_cidr` - (Optional, String) The CIDR of a subnet within the network.

* `tenant_id` - (Optional, String) The owner of the network.


## Attributes Reference

In addition to all arguments above, the following attributes are exported:
Expand Down
2 changes: 0 additions & 2 deletions docs/data-sources/networking_secgroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ data "huaweicloud_networking_secgroup" "secgroup" {

* `name` - (Optional, String) The name of the security group.

* `tenant_id` - (Optional, String) The owner of the security group.

## Attributes Reference

In addition to all arguments above, the following attributes are exported:
Expand Down
2 changes: 0 additions & 2 deletions docs/data-sources/networking_subnet_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ data "huaweicloud_networking_subnet_v2" "subnet_1" {

* `network_id` - (Optional, String) The ID of the network the subnet belongs to.

* `tenant_id` - (Optional, String) The owner of the subnet.

## Attributes Reference

In addition to all arguments above, the following attributes are exported:
Expand Down
5 changes: 0 additions & 5 deletions docs/resources/networking_floatingip_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ The following arguments are supported:
* `port_id` - (Optional, String) ID of an existing port with at least one IP address to
associate with this floating IP.

* `tenant_id` - (Optional, String, ForceNew) The target tenant ID in which to allocate the floating
IP, if you specify this together with a port_id, make sure the target port
belongs to the same tenant. Changing this creates a new floating IP (which
may or may not have a different address)

* `fixed_ip` - (Optional, String) Fixed IP of the port to associate with this floating IP. Required if
the port has multiple fixed IPs.

Expand Down
3 changes: 0 additions & 3 deletions docs/resources/networking_network_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ The following arguments are supported:
by any tenant or not. Changing this updates the sharing capabalities of the
existing network.

* `tenant_id` - (Optional, String, ForceNew) The owner of the network. Required if admin wants to
create a network for another tenant. Changing this creates a new network.

* `admin_state_up` - (Optional, String) The administrative state of the network.
Acceptable values are "true" and "false". Changing this value updates the
state of the existing network.
Expand Down
3 changes: 0 additions & 3 deletions docs/resources/networking_port_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ The following arguments are supported:
* `mac_address` - (Optional, String, ForceNew) Specify a specific MAC address for the port. Changing
this creates a new port.

* `tenant_id` - (Optional, String, ForceNew) The owner of the Port. Required if admin wants
to create a port for another tenant. Changing this creates a new port.

* `device_owner` - (Optional, String, ForceNew) The device owner of the Port. Changing this creates
a new port.

Expand Down
3 changes: 0 additions & 3 deletions docs/resources/networking_router_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ The following arguments are supported:
has to be set in order to set this property. Changing this updates the
external fixed IPs of the router.

* `tenant_id` - (Optional, String, ForceNew) The owner of the floating IP. Required if admin wants
to create a router for another tenant. Changing this creates a new router.

* `value_specs` - (Optional, Map, ForceNew) Map of additional driver-specific options.

The `external_fixed_ip` block supports:
Expand Down
4 changes: 0 additions & 4 deletions docs/resources/networking_secgroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ The following arguments are supported:

* `description` - (Optional, String) Description for the security group.

* `tenant_id` - (Optional, String, ForceNew) The owner of the security group. Required if admin
wants to create a port for another tenant. Changing this creates a new
security group.

* `delete_default_rules` - (Optional, Bool, ForceNew) Whether or not to delete the default
egress security rules. This is `false` by default. See the below note
for more information.
Expand Down
5 changes: 0 additions & 5 deletions docs/resources/networking_secgroup_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ The following arguments are supported:
of a security group in the same tenant.
Changing this creates a new security group rule.

* `tenant_id` - (Optional, String, ForceNew) Specifies the owner of the
security group. Required if admin wants to create a port for another
tenant.
Changing this creates a new security group rule.

## Attributes Reference

In addition to all arguments above, the following attributes are exported:
Expand Down
3 changes: 0 additions & 3 deletions docs/resources/networking_subnet_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ The following arguments are supported:
* `name` - (Optional, String) The name of the subnet. Changing this updates the name of
the existing subnet.

* `tenant_id` - (Optional, String, ForceNew) The owner of the subnet. Required if admin wants to
create a subnet for another tenant. Changing this creates a new subnet.

* `allocation_pools` - (Optional, List) An array of sub-ranges of CIDR available for
dynamic allocation to ports. The allocation_pool object structure is
documented below. Changing this creates a new subnet.
Expand Down
9 changes: 5 additions & 4 deletions huaweicloud/resource_huaweicloud_networking_floatingip_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ func resourceNetworkingFloatingIPV2() *schema.Resource {
Computed: true,
},
"tenant_id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Deprecated: "tenant_id is deprecated",
},
"fixed_ip": {
Type: schema.TypeString,
Expand Down
9 changes: 5 additions & 4 deletions huaweicloud/resource_huaweicloud_networking_network_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ func resourceNetworkingNetworkV2() *schema.Resource {
Computed: true,
},
"tenant_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Deprecated: "tenant_id is deprecated",
},
"segments": {
Type: schema.TypeList,
Expand Down
9 changes: 5 additions & 4 deletions huaweicloud/resource_huaweicloud_networking_port_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ func ResourceNetworkingPortV2() *schema.Resource {
Computed: true,
},
"tenant_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Deprecated: "tenant_id is deprecated",
},
"device_owner": {
Type: schema.TypeString,
Expand Down
9 changes: 5 additions & 4 deletions huaweicloud/resource_huaweicloud_networking_router_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ func resourceNetworkingRouterV2() *schema.Resource {
},
},
"tenant_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Deprecated: "tenant_id is deprecated",
},
"value_specs": {
Type: schema.TypeMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ func ResourceNetworkingSecGroupRuleV2() *schema.Resource {
ForceNew: true,
},
"tenant_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Deprecated: "tenant_id is deprecated",
},
},
}
Expand Down
9 changes: 5 additions & 4 deletions huaweicloud/resource_huaweicloud_networking_secgroup_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ func ResourceNetworkingSecGroupV2() *schema.Resource {
Computed: true,
},
"tenant_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Deprecated: "tenant_id is deprecated",
},
"delete_default_rules": {
Type: schema.TypeBool,
Expand Down
9 changes: 5 additions & 4 deletions huaweicloud/resource_huaweicloud_networking_subnet_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ func resourceNetworkingSubnetV2() *schema.Resource {
Optional: true,
},
"tenant_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: true,
Deprecated: "tenant_id is deprecated",
},
"allocation_pools": {
Type: schema.TypeList,
Expand Down