Class: Ansible::Ruby::Modules::Gcp_url_map

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

Overview

Create, Update or Destory a Url_Map. See U(cloud.google.com/compute/docs/load-balancing/http/url-map) for an overview. More details on the Url_Map API can be found at U(cloud.google.com/compute/docs/reference/latest/urlMaps#resource).

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

#default_serviceString

Returns Default Backend Service if no host rules match.

Returns:

  • (String)

    Default Backend Service if no host rules match.



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

attribute :default_service

#host_rulesArray<Hash>, ...

Returns The list of HostRules to use against the URL. Contains a list of hosts and an associated path_matcher.,The ‘hosts’ parameter is a list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..,The ‘path_matcher’ parameter is name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.

Returns:

  • (Array<Hash>, Hash, nil)

    The list of HostRules to use against the URL. Contains a list of hosts and an associated path_matcher.,The ‘hosts’ parameter is a list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..,The ‘path_matcher’ parameter is name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.



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

attribute :host_rules

#path_matchersArray<Hash>, ...

Returns The list of named PathMatchers to use against the URL. Contains path_rules, which is a list of paths and an associated service. A default_service can also be specified for each path_matcher.,The ‘name’ parameter to which this path_matcher is referred by the host_rule.,The ‘default_service’ parameter is the name of the BackendService resource. This will be used if none of the path_rules defined by this path_matcher is matched by the URL’s path portion.,The ‘path_rules’ parameter is a list of dictionaries containing a list of paths and a service to direct traffic to. Each path item must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or.

Returns:

  • (Array<Hash>, Hash, nil)

    The list of named PathMatchers to use against the URL. Contains path_rules, which is a list of paths and an associated service. A default_service can also be specified for each path_matcher.,The ‘name’ parameter to which this path_matcher is referred by the host_rule.,The ‘default_service’ parameter is the name of the BackendService resource. This will be used if none of the path_rules defined by this path_matcher is matched by the URL’s path portion.,The ‘path_rules’ parameter is a list of dictionaries containing a list of paths and a service to direct traffic to. Each path item must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or



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

attribute :path_matchers

#url_map_nameString

Returns Name of the Url_Map.

Returns:

  • (String)

    Name of the Url_Map.



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

attribute :url_map_name