Class: Ansible::Ruby::Modules::Gcp_compute_address
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Gcp_compute_address
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_address.rb
Overview
Represents an Address resource. Each virtual machine instance has an ephemeral internal IP address and, optionally, an external IP address. To communicate between instances on the same network, you can use an instance’s internal IP address. To communicate with the Internet and instances outside of the same network, you must specify the instance’s external IP address. Internal IP addresses are ephemeral and only belong to an instance for the lifetime of the instance; if the instance is deleted and recreated, the instance is assigned a new internal IP address, either by Compute Engine or by you. External IP addresses can be either ephemeral or static.
Instance Method Summary collapse
-
#address ⇒ Object?
The static external IP address represented by this resource.
-
#address_type ⇒ :INTERNAL, ...
The type of address to reserve, either INTERNAL or EXTERNAL.,If unspecified, defaults to EXTERNAL.
-
#description ⇒ Object?
An optional description of this resource.
-
#name ⇒ String
Name of the resource.
-
#region ⇒ String
URL of the region where the regional address resides.,This field is not applicable to global addresses.
-
#state ⇒ :present, ...
Whether the given object should exist in GCP.
-
#subnetwork ⇒ Object?
The URL of the subnetwork in which to reserve the address.
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
#address ⇒ Object?
Returns The static external IP address represented by this resource. Only IPv4 is supported. An address may only be specified for INTERNAL address types. The IP address must be inside the specified subnetwork, if any.
18 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_address.rb', line 18 attribute :address |
#address_type ⇒ :INTERNAL, ...
Returns The type of address to reserve, either INTERNAL or EXTERNAL.,If unspecified, defaults to EXTERNAL.
21 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_address.rb', line 21 attribute :address_type |
#description ⇒ Object?
Returns An optional description of this resource.
25 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_address.rb', line 25 attribute :description |
#name ⇒ String
Returns Name of 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.
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_address.rb', line 28 attribute :name |
#region ⇒ String
Returns URL of the region where the regional address resides.,This field is not applicable to global addresses.
35 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_address.rb', line 35 attribute :region |
#state ⇒ :present, ...
Returns Whether the given object should exist in GCP.
14 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_address.rb', line 14 attribute :state |
#subnetwork ⇒ Object?
Returns The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork’s IP range.,This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes.
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_address.rb', line 32 attribute :subnetwork |