Class: Ansible::Ruby::Modules::Gcp_forwarding_rule

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/google/gcp_forwarding_rule.rb

Overview

Create, Update or Destroy a Forwarding_Rule. See U(cloud.google.com/compute/docs/load-balancing/http/target-proxies) for an overview. More details on the Global Forwarding_Rule API can be found at U(cloud.google.com/compute/docs/reference/latest/globalForwardingRules) More details on the Forwarding Rules API can be found at U(cloud.google.com/compute/docs/reference/latest/forwardingRules)

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

#addressString?

Returns IPv4 or named IP address. Must be of the same scope (regional, global). Reserved addresses can (and probably should) be used for global forwarding rules. You may reserve IPs from the console or via the gce_eip module.

Returns:

  • (String, nil)

    IPv4 or named IP address. Must be of the same scope (regional, global). Reserved addresses can (and probably should) be used for global forwarding rules. You may reserve IPs from the console or via the gce_eip module.



12
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_forwarding_rule.rb', line 12

attribute :address

#forwarding_rule_nameString

Returns Name of the Forwarding_Rule.

Returns:

  • (String)

    Name of the Forwarding_Rule.



16
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_forwarding_rule.rb', line 16

attribute :forwarding_rule_name

#port_rangeInteger?

Returns For global forwarding rules, must be set to 80 or 8080 for TargetHttpProxy, and 443 for TargetHttpsProxy or TargetSslProxy.

Returns:

  • (Integer, nil)

    For global forwarding rules, must be set to 80 or 8080 for TargetHttpProxy, and 443 for TargetHttpsProxy or TargetSslProxy.



20
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_forwarding_rule.rb', line 20

attribute :port_range

#protocolString?

Returns For global forwarding rules, TCP, UDP, ESP, AH, SCTP or ICMP. Default is TCP.

Returns:

  • (String, nil)

    For global forwarding rules, TCP, UDP, ESP, AH, SCTP or ICMP. Default is TCP.



24
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_forwarding_rule.rb', line 24

attribute :protocol

#regionString?

Returns The region for this forwarding rule. Currently, only ‘global’ is supported.

Returns:

  • (String, nil)

    The region for this forwarding rule. Currently, only ‘global’ is supported.



28
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_forwarding_rule.rb', line 28

attribute :region

#state:present, :absent

Returns The state of the Forwarding Rule. ‘present’ or ‘absent’.

Returns:

  • (:present, :absent)

    The state of the Forwarding Rule. ‘present’ or ‘absent’



32
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_forwarding_rule.rb', line 32

attribute :state

#targetString?

Returns Target resource for forwarding rule. For global proxy, this is a Global TargetProxy resource. Required for external load balancing (including Global load balancing).

Returns:

  • (String, nil)

    Target resource for forwarding rule. For global proxy, this is a Global TargetProxy resource. Required for external load balancing (including Global load balancing)



36
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_forwarding_rule.rb', line 36

attribute :target