Class: Ansible::Ruby::Modules::Gcp_compute_subnetwork
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Gcp_compute_subnetwork
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_subnetwork.rb
Overview
A VPC network is a virtual version of the traditional physical networks that exist within and between physical data centers. A VPC network provides connectivity for your Compute Engine virtual machine (VM) instances, Container Engine containers, App Engine Flex services, and other network-related resources. Each GCP project contains one or more VPC networks. Each VPC network is a global entity spanning all GCP regions. This global VPC network allows VM instances and other resources to communicate with each other via internal, private IP addresses. Each VPC network is subdivided into subnets, and each subnet is contained within a single region. You can have more than one subnet in a region for a given VPC network. Each subnet has a contiguous private RFC1918 IP space. You create instances, containers, and the like in these subnets. When you create an instance, you must create it in a subnet, and the instance draws its internal IP address from that subnet. Virtual machine (VM) instances in a VPC network can communicate with instances in all other subnets of the same VPC network, regardless of region, using their RFC1918 private IP addresses. You can isolate portions of the network, even entire subnets, using firewall rules.
Instance Method Summary collapse
-
#description ⇒ Object?
An optional description of this resource.
-
#ip_cidr_range ⇒ String
The range of internal addresses that are owned by this subnetwork.,Provide this property when you create the subnetwork.
-
#name ⇒ String
The name of the resource, provided by the client when initially creating the resource.
-
#network ⇒ String
The network this subnet belongs to.,Only networks that are in the distributed mode can have subnetworks.
-
#private_ip_google_access ⇒ Symbol?
Whether the VMs in this subnet can access Google services without assigned external IP addresses.
-
#region ⇒ String
URL of the GCP region for this subnetwork.
-
#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
#description ⇒ Object?
Returns An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_subnetwork.rb', line 20 attribute :description |
#ip_cidr_range ⇒ String
Returns 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.
23 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_subnetwork.rb', line 23 attribute :ip_cidr_range |
#name ⇒ String
Returns The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ‘[a-z](*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_subnetwork.rb', line 27 attribute :name |
#network ⇒ String
Returns The network this subnet belongs to.,Only networks that are in the distributed mode can have subnetworks.
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_subnetwork.rb', line 31 attribute :network |
#private_ip_google_access ⇒ Symbol?
Returns Whether the VMs in this subnet can access Google services without assigned external IP addresses.
35 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_subnetwork.rb', line 35 attribute :private_ip_google_access |
#region ⇒ String
Returns URL of the GCP region for this subnetwork.
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_subnetwork.rb', line 39 attribute :region |
#state ⇒ :present, ...
Returns Whether the given object should exist in GCP.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_subnetwork.rb', line 16 attribute :state |