Class: Ansible::Ruby::Modules::Gcp_compute_address

Inherits:
Base show all
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

Methods inherited from Base

#ansible_name, #to_h

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

#addressObject?

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.

Returns:

  • (Object, nil)

    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.

Returns:

  • (:INTERNAL, :EXTERNAL, nil)

    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

#descriptionObject?

Returns An optional description of this resource.

Returns:

  • (Object, nil)

    An optional description of this resource.



25
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_address.rb', line 25

attribute :description

#nameString

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.

Returns:

  • (String)

    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

#regionString

Returns URL of the region where the regional address resides.,This field is not applicable to global addresses.

Returns:

  • (String)

    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.

Returns:

  • (:present, :absent, nil)

    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

#subnetworkObject?

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.

Returns:

  • (Object, nil)

    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