Class: Glb::Lb::ForwardingRuleHttps

Inherits:
ForwardingRule show all
Defined in:
lib/glb/lb/forwarding_rule_https.rb

Instance Attribute Summary

Attributes inherited from CLI::Base

#options

Instance Method Summary collapse

Methods inherited from ForwardingRule

#show_ip

Methods inherited from Resource

#action, #args, #config, #down, #down_command, #empty_update?, #exist?, #format_option, #gcloud_compute_command, #installed?, #invalid?, #invalid_command?, #region_option, #show, #up, #up_command, #valid?

Methods included from Names

#backend_service_name, #build_name, #firewall_rule_name, #forwarding_rule_https_name, #forwarding_rule_name, #health_check_name, #network, #target_http_proxy_name, #target_https_proxy_name, #url_map_name

Methods included from Util::Sure

#sure?

Methods inherited from CLI::Base

#initialize, #region

Methods included from Util::Sh

#capture, #sh

Constructor Details

This class inherits a constructor from Glb::CLI::Base

Instance Method Details

#default_optionsObject



18
19
20
21
22
# File 'lib/glb/lb/forwarding_rule_https.rb', line 18

def default_options
  {
    target_https_proxy: target_https_proxy_name,
  }
end

#resource_configObject

override so resource_config and region_option are correct



14
15
16
# File 'lib/glb/lb/forwarding_rule_https.rb', line 14

def resource_config
  config.forwarding_rule_https
end

#resource_nameObject

override so resource_name is correct



9
10
11
# File 'lib/glb/lb/forwarding_rule_https.rb', line 9

def resource_name
  forwarding_rule_https_name
end

#resource_typeObject

override so resource_name is correct



4
5
6
# File 'lib/glb/lb/forwarding_rule_https.rb', line 4

def resource_type
  "forwarding_rule"
end