Skip to content

Commit

Permalink
Revert "Add reservedInternalRange fields to the google_compute_subnet…
Browse files Browse the repository at this point in the history
…work resource" (#10697)
  • Loading branch information
trodge committed May 14, 2024
1 parent 38504fb commit 0a207d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 52 deletions.
29 changes: 2 additions & 27 deletions mmv1/products/compute/Subnetwork.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,6 @@ examples:
vars:
subnetwork_name: 'subnet-cidr-overlap'
network_name: 'net-cidr-overlap'
- !ruby/object:Provider::Terraform::Examples
name: 'subnetwork_reserved_internal_range'
min_version: beta
primary_resource_id: 'subnetwork-reserved-internal-range'
vars:
subnetwork_name: 'subnetwork-reserved-internal-range'
network_name: 'network-reserved-internal-range'
properties:
- !ruby/object:Api::Type::Time
name: 'creationTimestamp'
Expand All @@ -149,25 +142,16 @@ properties:
output: true
- !ruby/object:Api::Type::String
name: 'ipCidrRange'
default_from_api: true
description: |
The range of internal addresses that are owned by this subnetwork.
Provide this property when you create the subnetwork. For example,
10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and
non-overlapping within a network. Only IPv4 is supported.
Field is optional when `reserved_internal_range` is defined, otherwise required.
required: false
required: true
update_verb: :POST
update_url: 'projects/{{project}}/regions/{{region}}/subnetworks/{{name}}/expandIpCidrRange'
validation: !ruby/object:Provider::Terraform::Validation
function: 'verify.ValidateIpCidrRange'
- !ruby/object:Api::Type::ResourceRef
name: 'reservedInternalRange'
description: |
The ID of the reserved internal range. Must be prefixed with `networkconnectivity.googleapis.com`
E.g. `networkconnectivity.googleapis.com/projects/{project}/locations/global/internalRanges/{rangeId}`
resource: 'InternalRange'
imports: 'selfLink'
- !ruby/object:Api::Type::String
name: 'name'
description: |
Expand Down Expand Up @@ -254,23 +238,14 @@ properties:
must be unique within the subnetwork.
- !ruby/object:Api::Type::String
name: 'ipCidrRange'
required: false
default_from_api: true
required: true
validation: !ruby/object:Provider::Terraform::Validation
function: 'verify.ValidateIpCidrRange'
description: |
The range of IP addresses belonging to this subnetwork secondary
range. Provide this property when you create the subnetwork.
Ranges must be unique and non-overlapping with all primary and
secondary IP ranges within a network. Only IPv4 is supported.
Field is optional when `reserved_internal_range` is defined, otherwise required.
- !ruby/object:Api::Type::ResourceRef
name: 'reservedInternalRange'
description: |
The ID of the reserved internal range. Must be prefixed with `networkconnectivity.googleapis.com`
E.g. `networkconnectivity.googleapis.com/projects/{project}/locations/global/internalRanges/{rangeId}`
resource: 'InternalRange'
imports: 'selfLink'
- !ruby/object:Api::Type::Boolean
name: 'privateIpGoogleAccess'
description: |
Expand Down

This file was deleted.

0 comments on commit 0a207d1

Please sign in to comment.