@@ -2635,58 +2635,53 @@ objects:
2635
2635
collection_url_response : !ruby/object:Api::Resource::ResponseList
2636
2636
kind : ' compute#networkList'
2637
2637
items : ' items'
2638
- update_verb : :PATCH
2638
+ input : true
2639
2639
has_self_link : true
2640
2640
references : !ruby/object:Api::Resource::ReferenceLinks
2641
2641
guides :
2642
2642
' Official Documentation ' : ' https://cloud.google.com/vpc/docs/vpc'
2643
2643
api : ' https://cloud.google.com/compute/docs/reference/rest/v1/networks'
2644
2644
description : |
2645
- Represents a Network resource.
2646
-
2647
- Your Cloud Platform Console project can contain multiple networks, and
2648
- each network can have multiple instances attached to it. A network allows
2649
- you to define a gateway IP and the network range for the instances
2650
- attached to that network. Every project is provided with a default network
2651
- with preset configurations and firewall rules. You can choose to customize
2652
- the default network by adding or removing rules, or you can create new
2653
- networks in that project. Generally, most users only need one network,
2654
- although you can have up to five networks per project by default.
2655
-
2656
- A network belongs to only one project, and each instance can only belong
2657
- to one network. All Compute Engine networks use the IPv4 protocol. Compute
2658
- Engine currently does not support IPv6. However, Google is a major
2659
- advocate of IPv6 and it is an important future direction.
2645
+ Manages a VPC network or legacy network resource on GCP.
2660
2646
<%= indent(compile_file({}, 'templates/global_async.yaml.erb'), 4) % >
2661
2647
properties :
2662
2648
- !ruby/object:Api::Type::String
2663
2649
name : ' description'
2664
2650
description : |
2665
- An optional description of this resource. Provide this property when
2666
- you create the resource .
2651
+ An optional description of this resource. The resource must be
2652
+ recreated to modify this field .
2667
2653
input : true
2668
2654
- !ruby/object:Api::Type::String
2669
2655
name : ' gateway_ipv4'
2670
- description : |
2671
- A gateway address for default routing to other networks. This value is
2672
- read only and is selected by the Google Compute Engine, typically as
2673
- the first usable address in the IPv4Range.
2656
+ # We override this in api.yaml so that the name is more aesthetic
2674
2657
api_name : ' gatewayIPv4'
2675
2658
output : true
2659
+ description : |
2660
+ The gateway address for default routing out of the network. This value
2661
+ is selected by GCP.
2676
2662
- !ruby/object:Api::Type::Integer
2677
2663
name : ' id'
2678
2664
description : ' The unique identifier for the resource.'
2679
2665
output : true
2680
2666
- !ruby/object:Api::Type::String
2681
2667
name : ' ipv4_range'
2682
- description : |
2683
- The range of internal addresses that are legal on this network. This
2684
- range is a CIDR specification, for example: 192.168.0.0/16. Provided
2685
- by the client when the network is created.
2668
+ # We override this in api.yaml so that the name is more aesthetic
2686
2669
api_name : ' IPv4Range'
2670
+ deprecation_message : >-
2671
+ Legacy Networks are deprecated and you will no longer be able to
2672
+ create them using this field from Feb 1, 2020 onwards.
2687
2673
input : true
2688
2674
conflicts :
2689
2675
- autoCreateSubnetworks
2676
+ description : |
2677
+ If this field is specified, a deprecated legacy network is created.
2678
+ You will no longer be able to create a legacy network on Feb 1, 2020.
2679
+ See the [legacy network docs](https://cloud.google.com/vpc/docs/legacy)
2680
+ for more details.
2681
+
2682
+ The range of internal addresses that are legal on this legacy network.
2683
+ This range is a CIDR specification, for example: `192.168.0.0/16`.
2684
+ The resource must be recreated to modify this field.
2690
2685
- !ruby/object:Api::Type::String
2691
2686
name : ' name'
2692
2687
description : |
@@ -2710,19 +2705,21 @@ objects:
2710
2705
- !ruby/object:Api::Type::Boolean
2711
2706
name : ' autoCreateSubnetworks'
2712
2707
description : |
2713
- When set to true, the network is created in "auto subnet mode". When
2714
- set to false, the network is in "custom subnet mode".
2708
+ When set to `true`, the network is created in "auto subnet mode" and
2709
+ it will create a subnet for each region automatically across the
2710
+ `10.128.0.0/9` address range.
2715
2711
2716
- In "auto subnet mode", a newly created network is assigned the default
2717
- CIDR of 10.128.0.0/9 and it automatically creates one subnetwork per
2718
- region.
2712
+ When set to `false`, the network is created in "custom subnet mode" so
2713
+ the user can explicitly connect subnetwork resources.
2719
2714
input : true
2720
2715
- !ruby/object:Api::Type::Time
2721
2716
name : ' creationTimestamp'
2722
2717
description : ' Creation timestamp in RFC3339 text format.'
2723
2718
output : true
2724
2719
- !ruby/object:Api::Type::NestedObject
2725
2720
name : ' routingConfig'
2721
+ update_verb : :PATCH
2722
+ update_url : projects/{{project}}/global/networks/{{name}}
2726
2723
description : |
2727
2724
The network-level routing configuration for this network. Used by Cloud
2728
2725
Router to determine what type of network-wide routing behavior to
@@ -2732,9 +2729,9 @@ objects:
2732
2729
name : ' routingMode'
2733
2730
required : true
2734
2731
description : |
2735
- The network-wide routing mode to use. If set to REGIONAL, this
2732
+ The network-wide routing mode to use. If set to ` REGIONAL` , this
2736
2733
network's cloud routers will only advertise routes with subnetworks
2737
- of this network in the same region as the router. If set to GLOBAL,
2734
+ of this network in the same region as the router. If set to ` GLOBAL` ,
2738
2735
this network's cloud routers will advertise routes with all
2739
2736
subnetworks of this network, across regions.
2740
2737
values :
0 commit comments