Class: Ansible::Ruby::Modules::Gcp_compute_network
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Gcp_compute_network
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_network.rb
Overview
Represents a Network resource. Your Cloud Platform Console project can contain multiple networks, and each network can have multiple instances attached to it. A network allows you to define a gateway IP and the network range for the instances attached to that network. Every project is provided with a default network with preset configurations and firewall rules. You can choose to customize the default network by adding or removing rules, or you can create new networks in that project. Generally, most users only need one network, although you can have up to five networks per project by default. A network belongs to only one project, and each instance can only belong to one network. All Compute Engine networks use the IPv4 protocol. Compute Engine currently does not support IPv6. However, Google is a major advocate of IPv6 and it is an important future direction.
Instance Method Summary collapse
-
#auto_create_subnetworks ⇒ Symbol?
When set to true, the network is created in “auto subnet mode”.
-
#description ⇒ Object?
An optional description of this resource.
-
#gateway_ipv4 ⇒ Object?
A gateway address for default routing to other networks.
-
#ipv4_range ⇒ Object?
The range of internal addresses that are legal on this network.
-
#name ⇒ String?
Name of the resource.
-
#state ⇒ :present, ...
Whether the given object should exist in GCP.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#auto_create_subnetworks ⇒ Symbol?
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_network.rb', line 31 attribute :auto_create_subnetworks |
#description ⇒ Object?
18 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_network.rb', line 18 attribute :description |
#gateway_ipv4 ⇒ Object?
21 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_network.rb', line 21 attribute :gateway_ipv4 |
#ipv4_range ⇒ Object?
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_network.rb', line 24 attribute :ipv4_range |
#name ⇒ String?
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_network.rb', line 27 attribute :name |
#state ⇒ :present, ...
14 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_network.rb', line 14 attribute :state |