Class: Fog::Compute::Google::Mock
- Inherits:
-
Object
- Object
- Fog::Compute::Google::Mock
- Includes:
- Google::Shared
- Defined in:
- lib/fog/compute/google/mock.rb,
lib/fog/compute/google/requests/get_disk.rb,
lib/fog/compute/google/requests/get_zone.rb,
lib/fog/compute/google/requests/get_image.rb,
lib/fog/compute/google/requests/get_route.rb,
lib/fog/compute/google/requests/get_region.rb,
lib/fog/compute/google/requests/get_server.rb,
lib/fog/compute/google/requests/list_disks.rb,
lib/fog/compute/google/requests/list_zones.rb,
lib/fog/compute/google/requests/attach_disk.rb,
lib/fog/compute/google/requests/delete_disk.rb,
lib/fog/compute/google/requests/detach_disk.rb,
lib/fog/compute/google/requests/get_address.rb,
lib/fog/compute/google/requests/get_network.rb,
lib/fog/compute/google/requests/get_project.rb,
lib/fog/compute/google/requests/get_url_map.rb,
lib/fog/compute/google/requests/insert_disk.rb,
lib/fog/compute/google/requests/list_images.rb,
lib/fog/compute/google/requests/list_routes.rb,
lib/fog/compute/google/requests/stop_server.rb,
lib/fog/compute/google/requests/delete_image.rb,
lib/fog/compute/google/requests/delete_route.rb,
lib/fog/compute/google/requests/get_firewall.rb,
lib/fog/compute/google/requests/get_snapshot.rb,
lib/fog/compute/google/requests/insert_image.rb,
lib/fog/compute/google/requests/insert_route.rb,
lib/fog/compute/google/requests/list_regions.rb,
lib/fog/compute/google/requests/list_servers.rb,
lib/fog/compute/google/requests/reset_server.rb,
lib/fog/compute/google/requests/start_server.rb,
lib/fog/compute/google/requests/delete_server.rb,
lib/fog/compute/google/requests/get_disk_type.rb,
lib/fog/compute/google/requests/insert_server.rb,
lib/fog/compute/google/requests/list_networks.rb,
lib/fog/compute/google/requests/list_url_maps.rb,
lib/fog/compute/google/requests/patch_url_map.rb,
lib/fog/compute/google/requests/delete_address.rb,
lib/fog/compute/google/requests/delete_network.rb,
lib/fog/compute/google/requests/delete_url_map.rb,
lib/fog/compute/google/requests/get_subnetwork.rb,
lib/fog/compute/google/requests/insert_address.rb,
lib/fog/compute/google/requests/insert_network.rb,
lib/fog/compute/google/requests/insert_url_map.rb,
lib/fog/compute/google/requests/list_addresses.rb,
lib/fog/compute/google/requests/list_firewalls.rb,
lib/fog/compute/google/requests/list_snapshots.rb,
lib/fog/compute/google/requests/patch_firewall.rb,
lib/fog/compute/google/requests/update_url_map.rb,
lib/fog/compute/google/requests/delete_firewall.rb,
lib/fog/compute/google/requests/delete_snapshot.rb,
lib/fog/compute/google/requests/deprecate_image.rb,
lib/fog/compute/google/requests/get_target_pool.rb,
lib/fog/compute/google/requests/insert_firewall.rb,
lib/fog/compute/google/requests/list_disk_types.rb,
lib/fog/compute/google/requests/set_server_tags.rb,
lib/fog/compute/google/requests/update_firewall.rb,
lib/fog/compute/google/requests/get_machine_type.rb,
lib/fog/compute/google/requests/list_subnetworks.rb,
lib/fog/compute/google/requests/validate_url_map.rb,
lib/fog/compute/google/requests/abandon_instances.rb,
lib/fog/compute/google/requests/delete_subnetwork.rb,
lib/fog/compute/google/requests/insert_subnetwork.rb,
lib/fog/compute/google/requests/list_target_pools.rb,
lib/fog/compute/google/requests/delete_target_pool.rb,
lib/fog/compute/google/requests/get_global_address.rb,
lib/fog/compute/google/requests/get_instance_group.rb,
lib/fog/compute/google/requests/get_zone_operation.rb,
lib/fog/compute/google/requests/insert_target_pool.rb,
lib/fog/compute/google/requests/list_machine_types.rb,
lib/fog/compute/google/requests/recreate_instances.rb,
lib/fog/compute/google/requests/get_backend_service.rb,
lib/fog/compute/google/requests/get_forwarding_rule.rb,
lib/fog/compute/google/requests/get_ssl_certificate.rb,
lib/fog/compute/google/requests/get_target_instance.rb,
lib/fog/compute/google/requests/set_server_metadata.rb,
lib/fog/compute/google/requests/set_snapshot_labels.rb,
lib/fog/compute/google/requests/create_disk_snapshot.rb,
lib/fog/compute/google/requests/get_global_operation.rb,
lib/fog/compute/google/requests/get_region_operation.rb,
lib/fog/compute/google/requests/list_instance_groups.rb,
lib/fog/compute/google/requests/list_zone_operations.rb,
lib/fog/compute/google/requests/delete_global_address.rb,
lib/fog/compute/google/requests/delete_instance_group.rb,
lib/fog/compute/google/requests/delete_zone_operation.rb,
lib/fog/compute/google/requests/get_http_health_check.rb,
lib/fog/compute/google/requests/get_image_from_family.rb,
lib/fog/compute/google/requests/get_instance_template.rb,
lib/fog/compute/google/requests/get_target_http_proxy.rb,
lib/fog/compute/google/requests/insert_global_address.rb,
lib/fog/compute/google/requests/insert_instance_group.rb,
lib/fog/compute/google/requests/list_aggregated_disks.rb,
lib/fog/compute/google/requests/list_backend_services.rb,
lib/fog/compute/google/requests/list_forwarding_rules.rb,
lib/fog/compute/google/requests/list_global_addresses.rb,
lib/fog/compute/google/requests/list_ssl_certificates.rb,
lib/fog/compute/google/requests/list_target_instances.rb,
lib/fog/compute/google/requests/set_instance_template.rb,
lib/fog/compute/google/requests/set_server_scheduling.rb,
lib/fog/compute/google/requests/delete_backend_service.rb,
lib/fog/compute/google/requests/delete_forwarding_rule.rb,
lib/fog/compute/google/requests/delete_ssl_certificate.rb,
lib/fog/compute/google/requests/delete_target_instance.rb,
lib/fog/compute/google/requests/get_target_https_proxy.rb,
lib/fog/compute/google/requests/get_target_pool_health.rb,
lib/fog/compute/google/requests/insert_backend_service.rb,
lib/fog/compute/google/requests/insert_forwarding_rule.rb,
lib/fog/compute/google/requests/insert_ssl_certificate.rb,
lib/fog/compute/google/requests/insert_target_instance.rb,
lib/fog/compute/google/requests/list_global_operations.rb,
lib/fog/compute/google/requests/list_region_operations.rb,
lib/fog/compute/google/requests/reset_windows_password.rb,
lib/fog/compute/google/requests/set_target_pool_backup.rb,
lib/fog/compute/google/requests/delete_global_operation.rb,
lib/fog/compute/google/requests/delete_region_operation.rb,
lib/fog/compute/google/requests/list_aggregated_servers.rb,
lib/fog/compute/google/requests/list_http_health_checks.rb,
lib/fog/compute/google/requests/list_instance_templates.rb,
lib/fog/compute/google/requests/set_server_machine_type.rb,
lib/fog/compute/google/requests/add_server_access_config.rb,
lib/fog/compute/google/requests/delete_http_health_check.rb,
lib/fog/compute/google/requests/delete_instance_template.rb,
lib/fog/compute/google/requests/delete_target_http_proxy.rb,
lib/fog/compute/google/requests/insert_http_health_check.rb,
lib/fog/compute/google/requests/insert_instance_template.rb,
lib/fog/compute/google/requests/insert_target_http_proxy.rb,
lib/fog/compute/google/requests/invalidate_url_map_cache.rb,
lib/fog/compute/google/requests/list_target_http_proxies.rb,
lib/fog/compute/google/requests/update_http_health_check.rb,
lib/fog/compute/google/requests/add_target_pool_instances.rb,
lib/fog/compute/google/requests/delete_target_https_proxy.rb,
lib/fog/compute/google/requests/insert_target_https_proxy.rb,
lib/fog/compute/google/requests/list_aggregated_addresses.rb,
lib/fog/compute/google/requests/list_target_https_proxies.rb,
lib/fog/compute/google/requests/get_backend_service_health.rb,
lib/fog/compute/google/requests/get_global_forwarding_rule.rb,
lib/fog/compute/google/requests/get_instance_group_manager.rb,
lib/fog/compute/google/requests/list_aggregated_disk_types.rb,
lib/fog/compute/google/requests/set_forwarding_rule_target.rb,
lib/fog/compute/google/requests/delete_server_access_config.rb,
lib/fog/compute/google/requests/list_aggregated_subnetworks.rb,
lib/fog/compute/google/requests/remove_target_pool_instance.rb,
lib/fog/compute/google/requests/set_server_disk_auto_delete.rb,
lib/fog/compute/google/requests/add_backend_service_backends.rb,
lib/fog/compute/google/requests/add_instance_group_instances.rb,
lib/fog/compute/google/requests/list_aggregated_target_pools.rb,
lib/fog/compute/google/requests/list_global_forwarding_rules.rb,
lib/fog/compute/google/requests/list_instance_group_managers.rb,
lib/fog/compute/google/requests/remove_target_pool_instances.rb,
lib/fog/compute/google/requests/set_common_instance_metadata.rb,
lib/fog/compute/google/requests/add_target_pool_health_checks.rb,
lib/fog/compute/google/requests/delete_global_forwarding_rule.rb,
lib/fog/compute/google/requests/delete_instance_group_manager.rb,
lib/fog/compute/google/requests/get_server_serial_port_output.rb,
lib/fog/compute/google/requests/insert_global_forwarding_rule.rb,
lib/fog/compute/google/requests/insert_instance_group_manager.rb,
lib/fog/compute/google/requests/list_aggregated_machine_types.rb,
lib/fog/compute/google/requests/list_instance_group_instances.rb,
lib/fog/compute/google/requests/set_target_http_proxy_url_map.rb,
lib/fog/compute/google/requests/set_target_https_proxy_url_map.rb,
lib/fog/compute/google/requests/expand_subnetwork_ip_cidr_range.rb,
lib/fog/compute/google/requests/list_aggregated_instance_groups.rb,
lib/fog/compute/google/requests/remove_instance_group_instances.rb,
lib/fog/compute/google/requests/list_aggregated_forwarding_rules.rb,
lib/fog/compute/google/requests/list_aggregated_target_instances.rb,
lib/fog/compute/google/requests/remove_target_pool_health_checks.rb,
lib/fog/compute/google/requests/set_global_forwarding_rule_target.rb,
lib/fog/compute/google/requests/list_aggregated_instance_group_managers.rb,
lib/fog/compute/google/requests/set_subnetwork_private_ip_google_access.rb,
lib/fog/compute/google/requests/set_target_https_proxy_ssl_certificates.rb
Instance Attribute Summary collapse
-
#exclude_projects ⇒ Object
readonly
Returns the value of attribute exclude_projects.
-
#extra_global_projects ⇒ Object
readonly
Returns the value of attribute extra_global_projects.
Attributes included from Google::Shared
#api_url, #api_version, #project
Class Method Summary collapse
Instance Method Summary collapse
- #abandon_instances(_instance_group_manager, _instances) ⇒ Object
- #add_backend_service_backends(_backend_service, _new_backends) ⇒ Object
- #add_instance_group_instances(_group, _zone, _instances) ⇒ Object
- #add_server_access_config(_identity, _zone, _nic, _options = {}) ⇒ Object
- #add_target_pool_health_checks(_target_pool, _region, _health_checks) ⇒ Object
- #add_target_pool_instances(_target_pool, _region, _instances) ⇒ Object
- #attach_disk(_instance, _zone, _disk = {}) ⇒ Object
- #create_disk_snapshot(_snapshot_name, _disk, _zone, _snapshot = {}) ⇒ Object
- #data(project = @project) ⇒ Object
- #delete_address(_address_name, _region_name) ⇒ Object
- #delete_backend_service(_backend_service_name, _zone_name = nil) ⇒ Object
- #delete_disk(_disk_name, _zone_name) ⇒ Object
- #delete_firewall(_firewall_name) ⇒ Object
- #delete_forwarding_rule(_rule, _region) ⇒ Object
- #delete_global_address(_address_name) ⇒ Object
- #delete_global_forwarding_rule(_rule) ⇒ Object
- #delete_global_operation(_operation) ⇒ Object
- #delete_http_health_check(_check_name) ⇒ Object
- #delete_image(_image_name, _project = @project) ⇒ Object
- #delete_instance_group(_group_name, _zone) ⇒ Object
- #delete_instance_group_manager(_name, _zone) ⇒ Object
- #delete_instance_template(_name) ⇒ Object
- #delete_network(_network_name) ⇒ Object
- #delete_region_operation(_region, _operation) ⇒ Object
- #delete_route(_identity) ⇒ Object
- #delete_server(_server, _zone) ⇒ Object
- #delete_server_access_config(_identity, _zone, _nic, _options = {}) ⇒ Object
- #delete_snapshot(_snapshot_name) ⇒ Object
- #delete_ssl_certificate(_certificate_name) ⇒ Object
- #delete_subnetwork(_subnetwork_name, _region_name) ⇒ Object
- #delete_target_http_proxy(_proxy_name) ⇒ Object
- #delete_target_https_proxy(_proxy_name) ⇒ Object
- #delete_target_instance(_target_name, _zone) ⇒ Object
- #delete_target_pool(_target_pool, _region) ⇒ Object
- #delete_url_map(_url_map_name) ⇒ Object
- #delete_zone_operation(_zone, _operation) ⇒ Object
- #deprecate_image(_image_name, _deprecation_status = {}, _project = @project) ⇒ Object
- #detach_disk(_instance, _zone, _device_name) ⇒ Object
- #expand_subnetwork_ip_cidr_range(_subnetwork, _region, _ip_cidr_range) ⇒ Object
- #get_address(_address_name, _region_name) ⇒ Object
- #get_backend_service(service_name) ⇒ Object
- #get_backend_service_health(_backend_service) ⇒ Object
- #get_disk(_disk_name, _zone_name) ⇒ Object
- #get_disk_type(_disk, _zone) ⇒ Object
- #get_firewall(_firewall_name) ⇒ Object
- #get_forwarding_rule(_rule, _region) ⇒ Object
- #get_global_address(_address_name) ⇒ Object
- #get_global_forwarding_rule(_rule) ⇒ Object
- #get_global_operation(_operation) ⇒ Object
- #get_http_health_check(_check_name) ⇒ Object
- #get_image(_image_name, _project = @project) ⇒ Object
- #get_image_from_family(_family, _project = @project) ⇒ Object
- #get_instance_group(_group_name, _zone, _project = @project) ⇒ Object
- #get_instance_group_manager(_name, _zone) ⇒ Object
- #get_instance_template(_name) ⇒ Object
- #get_machine_type(_machine_type, _zone) ⇒ Object
- #get_network(_network_name) ⇒ Object
- #get_project(_identity) ⇒ Object
- #get_region(_identity) ⇒ Object
- #get_region_operation(_region, _operation) ⇒ Object
- #get_route(_identity) ⇒ Object
- #get_server(_instance, _zone) ⇒ Object
- #get_server_serial_port_output(_identity, _zone) ⇒ Object
- #get_snapshot(_snap_name) ⇒ Object
- #get_ssl_certificate(_certificate_name) ⇒ Object
- #get_subnetwork(_subnetwork_name, _region_name) ⇒ Object
- #get_target_http_proxy(_proxy_name) ⇒ Object
- #get_target_https_proxy(_proxy_name) ⇒ Object
- #get_target_instance(_target_name, _zone) ⇒ Object
- #get_target_pool(_target_pool, _region) ⇒ Object
- #get_target_pool_health(_target_pool, _region, _instance) ⇒ Object
- #get_url_map(_url_map_name) ⇒ Object
- #get_zone(_zone_name) ⇒ Object
- #get_zone_operation(_zone_name, _operation) ⇒ Object
-
#initialize(options) ⇒ Mock
constructor
A new instance of Mock.
- #insert_address(_address_name, _region_name, _options = {}) ⇒ Object
- #insert_backend_service(_backend_service_name, _opts = {}) ⇒ Object
- #insert_disk(_disk_name, _zone, _image_name = nil, _options = {}) ⇒ Object
- #insert_firewall(_firewall_name, _options = {}) ⇒ Object
- #insert_forwarding_rule(_rule_name, _region, _opts = {}) ⇒ Object
- #insert_global_address(_address_name, _options = {}) ⇒ Object
- #insert_global_forwarding_rule(_rule_name, _opts = {}) ⇒ Object
- #insert_http_health_check(_check_name, _options = {}) ⇒ Object
- #insert_image(_image_name, _image = {}) ⇒ Object
- #insert_instance_group(_group_name, _zone, _options = {}) ⇒ Object
- #insert_instance_group_manager(_name, _zone, _instance_template, _base_instance_name, _target_size, _target_pools, _named_ports, _description) ⇒ Object
- #insert_instance_template(_name, _properties, _description) ⇒ Object
- #insert_network(_network_name, _opts = {}) ⇒ Object
- #insert_route(_route_name, _network, _dest_range, _priority, _options = {}) ⇒ Object
- #insert_server(_instance_name, _zone, _options = {}) ⇒ Object
- #insert_ssl_certificate(_certificate_name, _certificate, _private_key, _options = {}) ⇒ Object
- #insert_subnetwork(_subnetwork_name, _region_name, _network, _ip_range, _options = {}) ⇒ Object
- #insert_target_http_proxy(_proxy_name, _description: nil, _url_map: nil) ⇒ Object
- #insert_target_https_proxy(_proxy_name, _description: nil, _url_map: nil, _ssl_certificates: nil) ⇒ Object
- #insert_target_instance(_target_name, _zone, _target_instance = {}) ⇒ Object
- #insert_target_pool(_target_pool_name, _region, _target_pool = {}) ⇒ Object
- #insert_url_map(_url_map_name, _url_map = {}) ⇒ Object
- #invalidate_url_map_cache(_url_map_name, _path, _host = nil) ⇒ Object
- #list_addresses(_region_name, _opts = {}) ⇒ Object
- #list_aggregated_addresses(_options = {}) ⇒ Object
- #list_aggregated_disk_types(_options = {}) ⇒ Object
- #list_aggregated_disks(_options = {}) ⇒ Object
- #list_aggregated_forwarding_rules(_opts = {}) ⇒ Object
- #list_aggregated_instance_group_managers(_opts = {}) ⇒ Object
- #list_aggregated_instance_groups(_options = {}) ⇒ Object
- #list_aggregated_machine_types(_opts = {}) ⇒ Object
- #list_aggregated_servers(_opts = {}) ⇒ Object
- #list_aggregated_subnetworks(_options = {}) ⇒ Object
- #list_aggregated_target_instances(_options = {}) ⇒ Object
- #list_aggregated_target_pools(_opts = {}) ⇒ Object
- #list_backend_services ⇒ Object
- #list_disk_types(_zone, _options: {}) ⇒ Object
- #list_disks(_zone_name, _opts = {}) ⇒ Object
- #list_firewalls ⇒ Object
- #list_forwarding_rules(_region, _opts = {}) ⇒ Object
- #list_global_addresses(_opts = {}) ⇒ Object
- #list_global_forwarding_rules(_opts = {}) ⇒ Object
- #list_global_operations ⇒ Object
- #list_http_health_checks ⇒ Object
- #list_images(_project = @project, _opts = {}) ⇒ Object
- #list_instance_group_instances(_group, _zone) ⇒ Object
- #list_instance_group_managers(_zone, _opts = {}) ⇒ Object
- #list_instance_groups(_zone) ⇒ Object
- #list_instance_templates ⇒ Object
- #list_machine_types(_zone, _opts = {}) ⇒ Object
- #list_networks(_opts = {}) ⇒ Object
- #list_region_operations(_region) ⇒ Object
- #list_regions ⇒ Object
- #list_routes(_options = {}) ⇒ Object
- #list_servers(_zone, _opts = {}) ⇒ Object
- #list_snapshots ⇒ Object
- #list_ssl_certificates ⇒ Object
- #list_subnetworks(_region_name, _filter: nil, _max_results: nil, _order_by: nil, _page_token: nil) ⇒ Object
- #list_target_http_proxies(_filter: nil, _max_results: nil, _order_by: nil, _page_token: nil) ⇒ Object
- #list_target_https_proxies ⇒ Object
- #list_target_instances(_zone, _opts: {}) ⇒ Object
- #list_target_pools(_region, _opts = {}) ⇒ Object
- #list_url_maps(_filter: nil, _max_results: nil, _order_by: nil, _page_token: nil) ⇒ Object
- #list_zone_operations(_zone) ⇒ Object
- #list_zones ⇒ Object
- #patch_firewall(_firewall_name, _firewall_opts = {}) ⇒ Object
- #patch_url_map(_url_map_name, _options = {}) ⇒ Object
- #random_operation ⇒ Object
- #recreate_instances(_instance_group_manager, _instances) ⇒ Object
- #remove_target_pool_health_checks(_target_pool, _region, _health_checks) ⇒ Object
- #remove_target_pool_instances(_target_pool, _region, _instances) ⇒ Object
- #reset_data ⇒ Object
- #reset_server(_identity, _zone) ⇒ Object
- #reset_windows_password(_server:, _user:) ⇒ Object
- #set_common_instance_metadata(_project, _current_fingerprint, _metadata = {}) ⇒ Object
- #set_forwarding_rule_target(_rule_name, _region, _target_opts) ⇒ Object
- #set_global_forwarding_rule_target(_rule_name, _target) ⇒ Object
- #set_instance_template(_instance_group_manager, _instance_template) ⇒ Object
- #set_server_disk_auto_delete(_identity, _zone, _auto_delete, _device_name) ⇒ Object
- #set_server_machine_type(_instance, _zone, _machine_type) ⇒ Object
- #set_server_metadata(_instance, _zone, _fingerprint, _metadata_items = {}) ⇒ Object
- #set_server_scheduling(_identity, _zone, _on_host_maintenance, _automatic_restart, _preemptible) ⇒ Object
- #set_server_tags(_instance, _zone, _tags = []) ⇒ Object
- #set_snapshot_labels(_snap_name) ⇒ Object
- #set_subnetwork_private_ip_google_access(_subnetwork_name, _region_name, _private_ip_google_access) ⇒ Object
- #set_target_http_proxy_url_map(_proxy_name, _url_map) ⇒ Object
- #set_target_https_proxy_ssl_certificates(_proxy_name, _certs) ⇒ Object
- #set_target_https_proxy_url_map(_proxy_name, _url_map) ⇒ Object
- #set_target_pool_backup(_target_pool, _region, _backup_target, _failover_ratio: nil) ⇒ Object
- #start_server(_identity, _zone) ⇒ Object
- #stop_server(_identity, _zone) ⇒ Object
- #update_firewall(_firewall_name, _firewall_opts = {}) ⇒ Object
- #update_http_health_check(_check_name, _opts = {}) ⇒ Object
- #update_url_map(_url_map_name, _url_map = {}) ⇒ Object
- #validate_url_map(_url_map_name, _url_map: {}) ⇒ Object
Methods included from Google::Shared
#apply_client_options, #build_excon_response, #initialize_google_client, #request, #shared_initialize
Constructor Details
#initialize(options) ⇒ Mock
Returns a new instance of Mock.
8 9 10 11 12 |
# File 'lib/fog/compute/google/mock.rb', line 8 def initialize() shared_initialize([:google_project], GOOGLE_COMPUTE_API_VERSION, GOOGLE_COMPUTE_BASE_URL) @extra_global_projects = .fetch(:google_extra_global_projects, []) @exclude_projects = .fetch(:google_exclude_projects, []) end |
Instance Attribute Details
#exclude_projects ⇒ Object (readonly)
Returns the value of attribute exclude_projects.
6 7 8 |
# File 'lib/fog/compute/google/mock.rb', line 6 def exclude_projects @exclude_projects end |
#extra_global_projects ⇒ Object (readonly)
Returns the value of attribute extra_global_projects.
6 7 8 |
# File 'lib/fog/compute/google/mock.rb', line 6 def extra_global_projects @extra_global_projects end |
Class Method Details
.data(api_version) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 |
# File 'lib/fog/compute/google/mock.rb', line 14 def self.data(api_version) @data ||= Hash.new do |hash, key| case key when "debian-cloud" hash[key] = { :images => { "debian-8-jessie-v20161215" => { "archiveSizeBytes" => "3436783050", "creationTimestamp" => "2016-12-15T12 =>53 =>12.508-08 =>00", "description" => "Debian, Debian GNU/Linux, 8 (jessie), amd64 built on 2016-12-15", "diskSizeGb" => "10", "family" => "debian-8", "id" => "7187216073735715927", "kind" => "compute#image", "licenses" => [ "https://www.googleapis.com/compute/#{api_version}/projects/debian-cloud/global/licenses/debian-8-jessie" ], "name" => "debian-8-jessie-v20161215", "rawDisk" => { "containerType" => "TAR", "source" => "" }, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/debian-cloud/global/images/debian-8-jessie-v20161215", "sourceType" => "RAW", "status" => "READY" } } } when "centos-cloud" hash[key] = { :images => { "centos-6-v20161212" => { "archiveSizeBytes" => "3942360630", "creationTimestamp" => "2016-12-14T10 =>30 =>52.053-08 =>00", "description" => "CentOS, CentOS, 6, x86_64 built on 2016-12-12", "diskSizeGb" => "10", "family" => "centos-6", "id" => "5262726857160929587", "kind" => "compute#image", "licenses" => [ "https://www.googleapis.com/compute/#{api_version}/projects/centos-cloud/global/licenses/centos-6" ], "name" => "centos-6-v20161212", "rawDisk" => { "containerType" => "TAR", "source" => "" }, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/centos-cloud/global/images/centos-6-v20161212", "sourceType" => "RAW", "status" => "READY" }, "centos-7-v20161212" => { "archiveSizeBytes" => "4491098988", "creationTimestamp" => "2016-12-14T10 =>29 =>44.741-08 =>00", "description" => "CentOS, CentOS, 7, x86_64 built on 2016-12-12", "diskSizeGb" => "10", "family" => "centos-7", "id" => "8650499281020268919", "kind" => "compute#image", "licenses" => [ "https://www.googleapis.com/compute/#{api_version}/projects/centos-cloud/global/licenses/centos-7" ], "name" => "centos-7-v20161212", "rawDisk" => { "containerType" => "TAR", "source" => "" }, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/centos-cloud/global/images/centos-7-v20161212", "sourceType" => "RAW", "status" => "READY" } } } else hash[key] = { :target_http_proxies => { "test-target-http-proxy" => { "kind" => "compute#targetHttpProxy", "id" => "1361932147851415729", "creationTimestamp" => "2014-08-23T10:06:13.951-07:00", "name" => "test-target-http-proxy", "description" => "", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/targetHttpProxies/test-target-http-proxy", "urlMap" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/urlMaps/test-url-map" } }, :url_maps => { "test-url-map" => { "kind" => "compute#urlMap", "id" => "1361932147851415729", "creationTimestamp" => "2014-08-23T10:06:13.951-07:00", "name" => "test-url-map", "description" => "", "hostRules" => [], "pathMatchers" => [], "tests" => [], "defaultService" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/backendServices/fog-backend-service-test", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/urlMaps/test-url-map" } }, :target_pools => { "test-target-pool" => { "kind" => "compute#targetPool", "id" => "1361932147851415729", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/regions/us-central1/targetPools/test-target-pool", "creationTimestamp" => "2014-08-23T10:06:13.951-07:00", "name" => "test-target-pool", "region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/regions/us-central1", "healthChecks" => ["https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/httpHealthChecks/test-check"], "instances" => ["https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/zones/us-central1-a/instances/test-instance"] } }, :http_health_checks => { "test-http-health-check" => { "checkIntervalSec" => 5, "creationTimestamp" => "2014-08-23T10:06:13.951-07:00", "healthyThreshold" => 2, "id" => "1361932147851415729", "kind" => "compute#httphealthCheck", "name" => "test-http-health-check", "port" => 80, "requestPath" => "/", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/httpHealthChecks/test-http-health-check", "timeoutSec" => 5, "unhealthyThreshold" => 2 } }, :global_forwarding_rules => { "test-global-forwarding-rule" => { "kind" => "compute#forwardingRule", "id" => "1361932147851415729", "creationTimestamp" => "2014-08-23T10:06:13.951-07:00", "name" => "test-global-forwarding-rule", "IPAddress" => "107.178.255.155", "IPProtocol" => "TCP", "portRange" => "80-80", "target" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/targetHttpProxies/proxy", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/forwardngRules/test-global-forwarding-rule" } }, :forwarding_rules => { "test-forwarding-rule" => { "kind" => "compute#forwardingRule", "id" => "1361932147851415729", "creationTimestamp" => "2014-08-23T10:06:13.951-07:00", "name" => "test-forwarding-rule", "IPAddress" => "107.178.255.155", "IPProtocol" => "TCP", "portRange" => "80-80", "target" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/regions/us-central1/targetPools/target_pool", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/regions/us-central1/forwardngRules/test-forwarding-rule", "region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/regions/us-central1" } }, :target_instances => { "test-target-instance" => { "kind" => "compute#targetInstance", "name" => "test-target-instance", "natPolicy" => "NO_NAT", "zone" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/zones/us-central1-a", "instance" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/zones/us-central1-a/instances/test-instance", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/zones/us-central1-a/targetInstances/test-target-instance", "id" => "1361932147851415729", "creationTimestamp" => "2014-08-23T10:06:13.951-07:00" } }, :servers => { "fog-1" => { "kind" => "compute#instance", "id" => "1361932147851415727", "creationTimestamp" => "2013-09-26T04:55:43.881-07:00", "zone" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a", "status" => "RUNNING", "name" => "fog-1380196541", "tags" => { "fingerprint" => "42WmSpB8rSM=" }, "machineType" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a/machineTypes/n1-standard-1", "canIpForward" => false, "networkInterfaces" => [ { "network" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/global/networks/default", "networkIP" => "10.240.121.54", "name" => "nic0", "accessConfigs" => [ { "kind" => "compute#accessConfig", "type" => "ONE_TO_ONE_NAT", "name" => "External NAT", "natIP" => "108.59.81.28" } ] } ], "disks" => [ { "kind" => "compute#attachedDisk", "index" => 0, "type" => "PERSISTENT", "mode" => "READ_WRITE", "source" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a/disks/fog-1", "deviceName" => "persistent-disk-0", "boot" => true } ], "metadata" => { "kind" => "compute#metadata", "fingerprint" => "5_hasd_gC3E=", "items" => [ { "key" => "ssh-keys", "value" => "sysadmin:ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEA1zc7mx+0H8Roywet/L0aVX6MUdkDfzd/17kZhprAbpUXYOILv9AG4lIzQk6xGxDIltghytjfVGme/4A42Sb0Z9LN0pxB4KnWTNoOSHPJtp6jbXpq6PdN9r3Z5NKQg0A/Tfw7gt2N0GDsj6vpK8VbHHdW78JAVUxql18ootJxjaksdocsiHNK8iA6/v9qiLRhX3fOgtK7KpxxdZxLRzFg9vkp8jcGISgpZt27kOgXWhR5YLhi8pRJookzphO5O4yhflgoHoAE65XkfrsRCe0HU5QTbY2jH88rBVkq0KVlZh/lEsuwfmG4d77kEqaCGGro+j1Wrvo2K3DSQ+rEcvPp2CYRUySjhaeLF18UzQLtxNeoN14QOYqlm9ITdkCnmq5w4Wn007MjSOFp8LEq2RekrnddGXjg1/vgmXtaVSGzJAlXwtVfZor3dTRmF0JCpr7DsiupBaDFtLUlGFFlSKmPDVMPOOB5wajexmcvSp2Vu4U3yP8Lai/9/ZxMdsGPhpdCsWVL83B5tF4oYj1HVIycbYIxIIfFqOxZcCru3CMfe9jmzKgKLv2UtkfOS8jpS/Os2gAiB3wPweH3agvtwYAYBVMDwt5cnrhgHYWoOz7ABD8KgmCrD7Y9HikiCqIUNkgUFd9YmjcYi5FkU5rFXIawN7efs341lsdf923lsdf923fs= johndoe@acme" } ] }, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a/instances/fog-1380196541" } }, :zones => { "europe-west1-a" => { "kind" => "compute#zone", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/europe-west1-a", "id" => "10419676573632995924", "creationTimestamp" => "2013-09-26T02:56:13.115-07:00", "name" => "europe-west1-a", "description" => "europe-west1-a", "status" => "UP", "maintenanceWindows" => [ { "name" => "2014-01-18-planned-outage", "description" => "maintenance zone", "beginTime" => "2014-01-18T12:00:00.000-08:00", "endTime" => "2014-02-02T12:00:00.000-08:00" } ], "quotas" => [ { "metric" => "INSTANCES", "limit" => 16.0, "usage" => 0.0 }, { "metric" => "CPUS", "limit" => 24.0, "usage" => 0.0 }, { "metric" => "DISKS", "limit" => 16.0, "usage" => 0.0 }, { "metric" => "DISKS_TOTAL_GB", "limit" => 2048.0, "usage" => 0.0 } ], "region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/europe-west1" }, "us-central1-a" => { "kind" => "compute#zone", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a", "id" => "6562457277909136262", "creationTimestamp" => "2013-09-26T02:56:13.116-07:00", "name" => "us-central1-a", "description" => "us-central1-a", "status" => "UP", "maintenanceWindows" => nil, "quotas" => [ { "metric" => "INSTANCES", "limit" => 16.0, "usage" => 1.0 }, { "metric" => "CPUS", "limit" => 24.0, "usage" => 1.0 }, { "metric" => "DISKS", "limit" => 16.0, "usage" => 0.0 }, { "metric" => "DISKS_TOTAL_GB", "limit" => 2048.0, "usage" => 0.0 } ], "region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/us-central1" }, "us-central1-b" => { "kind" => "compute#zone", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-b", "id" => "8701502109626061015", "creationTimestamp" => "2013-09-26T02:56:13.124-07:00", "name" => "us-central1-b", "description" => "us-central1-b", "status" => "UP", "maintenanceWindows" => [{ "name" => "2013-10-26-planned-outage", "description" => "maintenance zone", "beginTime" => "2013-10-26T12:00:00.000-07:00", "endTime" => "2013-11-10T12:00:00.000-08:00" }], "quotas" => [ { "metric" => "INSTANCES", "limit" => 16.0, "usage" => 0.0 }, { "metric" => "CPUS", "limit" => 24.0, "usage" => 0.0 }, { "metric" => "DISKS", "limit" => 16.0, "usage" => 0.0 }, { "metric" => "DISKS_TOTAL_GB", "limit" => 2048.0, "usage" => 0.0 } ], "region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/us-central1" }, "us-central2-a" => { "kind" => "compute#zone", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central2-a", "id" => "13611654493253680292", "creationTimestamp" => "2013-09-26T02:56:13.125-07:00", "name" => "us-central2-a", "description" => "us-central2-a", "status" => "UP", "maintenanceWindows" => [ { "name" => "2013-10-12-planned-outage", "description" => "maintenance zone", "beginTime" => "2013-10-12T12:00:00.000-07:00", "endTime" => "2013-10-27T12:00:00.000-07:00" } ], "quotas" => [ { "metric" => "INSTANCES", "limit" => 16.0, "usage" => 0.0 }, { "metric" => "CPUS", "limit" => 24.0, "usage" => 0.0 }, { "metric" => "DISKS", "limit" => 16.0, "usage" => 0.0 }, { "metric" => "DISKS_TOTAL_GB", "limit" => 2048.0, "usage" => 0.0 } ], "region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/us-central2" } }, :regions => { "us-central1" => { "creationTimestamp" => "2014-01-21T10:30:54.895-08:00", "description" => "us-central1", "id" => "18201118976141502843", "kind" => "compute#region", "name" => "us-central1", "quotas" => [ { "metric" => "CPUS", "limit" => 1050.0, "usage" => 28.0 }, { "metric" => "DISKS_TOTAL_GB", "limit" => 10_000.0, "usage" => 292.0 }, { "metric" => "STATIC_ADDRESSES", "limit" => 10.0, "usage" => 0.0 }, { "metric" => "IN_USE_ADDRESSES", "limit" => 1050.0, "usage" => 30.0 }, { "metric" => "SSD_TOTAL_GB", "limit" => 1024.0, "usage" => 0.0 } ], "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/us-central1", "status" => "UP", "zones" => [ "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a", "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-b", "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-f" ] }, "europe-west1" => { "creationTimestamp" => "2014-01-21T10:30:54.891-08:00", "description" => "europe-west1", "id" => "18201118976141502843", "kind" => "compute#region", "name" => "europe-west1", "quotas" => [ { "metric" => "CPUS", "limit" => 24.0, "usage" => 0.0 }, { "metric" => "DISKS_TOTAL_GB", "limit" => 2048.0, "usage" => 0.0 }, { "metric" => "STATIC_ADDRESSES", "limit" => 7.0, "usage" => 0.0 }, { "metric" => "IN_USE_ADDRESSES", "limit" => 23.0, "usage" => 0.0 }, { "metric" => "SSD_TOTAL_GB", "limit" => 1024.0, "usage" => 0.0 } ], "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/erope-west1", "status" => "UP", "zones" => [ "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/europe-west1-a", "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/europe-west1-b" ] }, "asia-east1" => { "creationTimestamp" => "2014-01-21T10:30:54.895-08:00", "description" => "asia-east1", "id" => "18201118976141502843", "kind" => "compute#region", "name" => "asia-east1", "quotas" => [ { "metric" => "CPUS", "limit" => 1050.0, "usage" => 28.0 }, { "metric" => "DISKS_TOTAL_GB", "limit" => 10_000.0, "usage" => 292.0 }, { "metric" => "STATIC_ADDRESSES", "limit" => 10.0, "usage" => 0.0 }, { "metric" => "IN_USE_ADDRESSES", "limit" => 1050.0, "usage" => 30.0 }, { "metric" => "SSD_TOTAL_GB", "limit" => 1024.0, "usage" => 0.0 } ], "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/asia-east1", "status" => "UP", "zones" => [ "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/asia-east1-a", "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/asia-east1-b", "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/asia-east1-c" ] } }, :machine_types => Hash.new do |machine_types_hash, zone| machine_types_hash[zone] = { "f1-micro" => { "kind" => "compute#machineType", "id" => "4618642685664990776", "creationTimestamp" => "2013-04-25T13:32:49.088-07:00", "name" => "f1-micro", "description" => "1 vCPU (shared physical core) and 0.6 GB RAM", "guestCpus" => 1, "memoryMb" => 614, "imageSpaceGb" => 0, "maximumPersistentDisks" => 4, "maximumPersistentDisksSizeGb" => "3072", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/f1-micro" }, "g1-small" => { "kind" => "compute#machineType", "id" => "7224129552184485774", "creationTimestamp" => "2013-04-25T13:32:45.550-07:00", "name" => "g1-small", "description" => "1 vCPU (shared physical core) and 1.7 GB RAM", "guestCpus" => 1, "memoryMb" => 1740, "imageSpaceGb" => 0, "maximumPersistentDisks" => 4, "maximumPersistentDisksSizeGb" => "3072", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/g1-small" }, "n1-highcpu-2" => { "kind" => "compute#machineType", "id" => "13043554592196512955", "creationTimestamp" => "2012-11-16T11:46:10.572-08:00", "name" => "n1-highcpu-2", "description" => "2 vCPUs, 1.8 GB RAM", "guestCpus" => 2, "memoryMb" => 1843, "imageSpaceGb" => 10, "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-2" }, "n1-highcpu-2-d" => { "kind" => "compute#machineType", "id" => "13043555176034896271", "creationTimestamp" => "2012-11-16T11:47:07.825-08:00", "name" => "n1-highcpu-2-d", "description" => "2 vCPUs, 1.8 GB RAM, 1 scratch disk (870 GB)", "guestCpus" => 2, "memoryMb" => 1843, "imageSpaceGb" => 10, "scratchDisks" => [ { "diskGb" => 870 } ], "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-2-d" }, "n1-highcpu-4" => { "kind" => "compute#machineType", "id" => "13043555705736970382", "creationTimestamp" => "2012-11-16T11:48:06.087-08:00", "name" => "n1-highcpu-4", "description" => "4 vCPUs, 3.6 GB RAM", "guestCpus" => 4, "memoryMb" => 3686, "imageSpaceGb" => 10, "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-4" }, "n1-highcpu-4-d" => { "kind" => "compute#machineType", "id" => "13043556330284250611", "creationTimestamp" => "2012-11-16T11:49:07.563-08:00", "name" => "n1-highcpu-4-d", "description" => "4 vCPUS, 3.6 GB RAM, 1 scratch disk (1770 GB)", "guestCpus" => 4, "memoryMb" => 3686, "imageSpaceGb" => 10, "scratchDisks" => [ { "diskGb" => 1770 } ], "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-4-d" }, "n1-highcpu-8" => { "kind" => "compute#machineType", "id" => "13043556949665240937", "creationTimestamp" => "2012-11-16T11:50:15.128-08:00", "name" => "n1-highcpu-8", "description" => "8 vCPUs, 7.2 GB RAM", "guestCpus" => 8, "memoryMb" => 7373, "imageSpaceGb" => 10, "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-8" }, "n1-highcpu-8-d" => { "kind" => "compute#machineType", "id" => "13043557458004959701", "creationTimestamp" => "2012-11-16T11:51:04.549-08:00", "name" => "n1-highcpu-8-d", "description" => "8 vCPUS, 7.2 GB RAM, 2 scratch disks (1770 GB, 1770 GB)", "guestCpus" => 8, "memoryMb" => 7373, "imageSpaceGb" => 10, "scratchDisks" => [ { "diskGb" => 1770 }, { "diskGb" => 1770 } ], "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-8-d" }, "n1-highmem-2" => { "kind" => "compute#machineType", "id" => "13043551079318055993", "creationTimestamp" => "2012-11-16T11:40:06.129-08:00", "name" => "n1-highmem-2", "description" => "2 vCPUs, 13 GB RAM", "guestCpus" => 2, "memoryMb" => 13_312, "imageSpaceGb" => 10, "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-2" }, "n1-highmem-2-d" => { "kind" => "compute#machineType", "id" => "13043551625558644085", "creationTimestamp" => "2012-11-16T11:40:59.630-08:00", "name" => "n1-highmem-2-d", "description" => "2 vCPUs, 13 GB RAM, 1 scratch disk (870 GB)", "guestCpus" => 2, "memoryMb" => 13_312, "imageSpaceGb" => 10, "scratchDisks" => [ { "diskGb" => 870 } ], "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-2-d" }, "n1-highmem-4" => { "kind" => "compute#machineType", "id" => "13043552263604939569", "creationTimestamp" => "2012-11-16T11:42:08.983-08:00", "name" => "n1-highmem-4", "description" => "4 vCPUs, 26 GB RAM", "guestCpus" => 4, "memoryMb" => 26_624, "imageSpaceGb" => 10, "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-4" }, "n1-highmem-4-d" => { "kind" => "compute#machineType", "id" => "13043552953632709737", "creationTimestamp" => "2012-11-16T11:43:17.400-08:00", "name" => "n1-highmem-4-d", "description" => "4 vCPUs, 26 GB RAM, 1 scratch disk (1770 GB)", "guestCpus" => 4, "memoryMb" => 26_624, "imageSpaceGb" => 10, "scratchDisks" => [ { "diskGb" => 1770 } ], "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-4-d" }, "n1-highmem-8" => { "kind" => "compute#machineType", "id" => "13043553584275586275", "creationTimestamp" => "2012-11-16T11:44:25.985-08:00", "name" => "n1-highmem-8", "description" => "8 vCPUs, 52 GB RAM", "guestCpus" => 8, "memoryMb" => 53_248, "imageSpaceGb" => 10, "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-8" }, "n1-highmem-8-d" => { "kind" => "compute#machineType", "id" => "13043554021673472746", "creationTimestamp" => "2012-11-16T11:45:08.195-08:00", "name" => "n1-highmem-8-d", "description" => "8 vCPUs, 52 GB RAM, 2 scratch disks (1770 GB, 1770 GB)", "guestCpus" => 8, "memoryMb" => 53_248, "imageSpaceGb" => 10, "scratchDisks" => [ { "diskGb" => 1770 }, { "diskGb" => 1770 } ], "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-8-d" }, "n1-standard-1" => { "kind" => "compute#machineType", "id" => "12907738072351752276", "creationTimestamp" => "2012-06-07T13:48:14.670-07:00", "name" => "n1-standard-1", "description" => "1 vCPU, 3.75 GB RAM", "guestCpus" => 1, "memoryMb" => 3840, "imageSpaceGb" => 10, "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-1" }, "n1-standard-1-d" => { "kind" => "compute#machineType", "id" => "12908559201265214706", "creationTimestamp" => "2012-06-07T13:48:34.258-07:00", "name" => "n1-standard-1-d", "description" => "1 vCPU, 3.75 GB RAM, 1 scratch disk (420 GB)", "guestCpus" => 1, "memoryMb" => 3840, "imageSpaceGb" => 10, "scratchDisks" => [ { "diskGb" => 420 } ], "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-1-d" }, "n1-standard-2" => { "kind" => "compute#machineType", "id" => "12908559320241551184", "creationTimestamp" => "2012-06-07T13:48:56.867-07:00", "name" => "n1-standard-2", "description" => "2 vCPUs, 7.5 GB RAM", "guestCpus" => 2, "memoryMb" => 7680, "imageSpaceGb" => 10, "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-2" }, "n1-standard-2-d" => { "kind" => "compute#machineType", "id" => "12908559582417967837", "creationTimestamp" => "2012-06-07T13:49:19.448-07:00", "name" => "n1-standard-2-d", "description" => "2 vCPUs, 7.5 GB RAM, 1 scratch disk (870 GB)", "guestCpus" => 2, "memoryMb" => 7680, "imageSpaceGb" => 10, "scratchDisks" => [ { "diskGb" => 870 } ], "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-2-d" }, "n1-standard-4" => { "kind" => "compute#machineType", "id" => "12908559692070444049", "creationTimestamp" => "2012-06-07T13:49:40.050-07:00", "name" => "n1-standard-4", "description" => "4 vCPUs, 15 GB RAM", "guestCpus" => 4, "memoryMb" => 15_360, "imageSpaceGb" => 10, "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-4" }, "n1-standard-4-d" => { "kind" => "compute#machineType", "id" => "12908559991903153608", "creationTimestamp" => "2012-06-07T13:50:05.677-07:00", "name" => "n1-standard-4-d", "description" => "4 vCPUs, 15 GB RAM, 1 scratch disk (1770 GB)", "guestCpus" => 4, "memoryMb" => 15_360, "imageSpaceGb" => 10, "scratchDisks" => [ { "diskGb" => 1770 } ], "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-4-d" }, "n1-standard-8" => { "kind" => "compute#machineType", "id" => "12908560197989714867", "creationTimestamp" => "2012-06-07T13:50:42.334-07:00", "name" => "n1-standard-8", "description" => "8 vCPUs, 30 GB RAM", "guestCpus" => 8, "memoryMb" => 30_720, "imageSpaceGb" => 10, "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-8" }, "n1-standard-8-d" => { "kind" => "compute#machineType", "id" => "12908560709887590691", "creationTimestamp" => "2012-06-07T13:51:19.936-07:00", "name" => "n1-standard-8-d", "description" => "8 vCPUs, 30 GB RAM, 2 scratch disks (1770 GB, 1770 GB)", "guestCpus" => 8, "memoryMb" => 30_720, "imageSpaceGb" => 10, "scratchDisks" => [ { "diskGb" => 1770 }, { "diskGb" => 1770 } ], "maximumPersistentDisks" => 16, "maximumPersistentDisksSizeGb" => "10240", "zone" => zone, "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-8-d" } } end, :images => {}, :disks => { "fog-1" => { "kind" => "compute#disk", "id" => "3338131294770784461", "creationTimestamp" => "2013-12-18T19:47:10.583-08:00", "zone" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a", "status" => "READY", "name" => "fog-1", "sizeGb" => "10", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a/disks/fog-1", "sourceImage" => "https://www.googleapis.com/compute/#{api_version}/projects/debian-cloud/global/images/debian-7-wheezy-v20131120", "sourceImageId" => "17312518942796567788", "type" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a/diskTypes/pd-standard" }, "fog-2" => { "kind" => "compute#disk", "id" => "3338131294770784462", "creationTimestamp" => "2013-12-18T19:47:10.583-08:00", "zone" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a", "status" => "READY", "name" => "fog-2", "sizeGb" => "10", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a/disks/fog-1", "type" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a/diskTypes/pd-ssd" } }, :subnetworks => { "fog-1" => { "kind" => "compute#subnetwork", "id" => "6680781458098159920", "creationTimestamp" => "2016-03-19T19:13:51.613-07:00", "gatewayAddress" => "10.1.0.1", "name" => "fog-1", "network" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/global/networks/fog-example", "ipCidrRange" => "10.1.0.0/20", "region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/us-central1", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/us-central1/subnetworks/fog-1" }, "fog-2" => { "kind" => "compute#subnetwork", "id" => "6680781458098159921", "creationTimestamp" => "2016-03-19T19:13:51.613-07:00", "gatewayAddress" => "10.1.16.1", "name" => "fog-2", "network" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/global/networks/fog-example", "ipCidrRange" => "10.1.16.0/20", "region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/europe-west1", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/europe-west1/subnetworks/fog-2" }, "fog-3" => { "kind" => "compute#subnetwork", "id" => "6680781458098159923", "creationTimestamp" => "2016-03-19T19:13:51.613-07:00", "gatewayAddress" => "192.168.20.1", "name" => "fog-3", "network" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/global/networks/fog-elsewhere-example", "ipCidrRange" => "192.168.20.0/20", "region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/us-central1", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/us-central1/subnetworks/fog-3" } }, :operations => {} } end end end |
.reset ⇒ Object
826 827 828 |
# File 'lib/fog/compute/google/mock.rb', line 826 def self.reset @data = nil end |
Instance Method Details
#abandon_instances(_instance_group_manager, _instances) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/abandon_instances.rb', line 5 def abandon_instances(_instance_group_manager, _instances) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#add_backend_service_backends(_backend_service, _new_backends) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/add_backend_service_backends.rb', line 5 def add_backend_service_backends(_backend_service, _new_backends) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#add_instance_group_instances(_group, _zone, _instances) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/add_instance_group_instances.rb', line 5 def add_instance_group_instances(_group_name, _zone, _instances) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#add_server_access_config(_identity, _zone, _nic, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/add_server_access_config.rb', line 5 def add_server_access_config(_identity, _zone, _nic, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#add_target_pool_health_checks(_target_pool, _region, _health_checks) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/add_target_pool_health_checks.rb', line 5 def add_target_pool_health_checks(_target_pool, _region, _health_checks) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#add_target_pool_instances(_target_pool, _region, _instances) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/add_target_pool_instances.rb', line 5 def add_target_pool_instances(_target_pool, _region, _instances) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#attach_disk(_instance, _zone, _disk = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/attach_disk.rb', line 5 def attach_disk(_instance, _zone, _disk = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#create_disk_snapshot(_snapshot_name, _disk, _zone, _snapshot = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/create_disk_snapshot.rb', line 5 def create_disk_snapshot(_snapshot_name, _disk, _zone, _snapshot = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#data(project = @project) ⇒ Object
830 831 832 |
# File 'lib/fog/compute/google/mock.rb', line 830 def data(project = @project) self.class.data(api_version)[project] end |
#delete_address(_address_name, _region_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_address.rb', line 5 def delete_address(_address_name, _region_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_backend_service(_backend_service_name, _zone_name = nil) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_backend_service.rb', line 5 def delete_backend_service(_backend_service_name, _zone_name = nil) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_disk(_disk_name, _zone_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_disk.rb', line 5 def delete_disk(_disk_name, _zone_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_firewall(_firewall_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_firewall.rb', line 5 def delete_firewall(_firewall_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_forwarding_rule(_rule, _region) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_forwarding_rule.rb', line 5 def delete_forwarding_rule(_rule, _region) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_global_address(_address_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_global_address.rb', line 5 def delete_global_address(_address_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_global_forwarding_rule(_rule) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_global_forwarding_rule.rb', line 5 def delete_global_forwarding_rule(_rule) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_global_operation(_operation) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_global_operation.rb', line 5 def delete_global_operation(_operation) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_http_health_check(_check_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_http_health_check.rb', line 5 def delete_http_health_check(_check_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_image(_image_name, _project = @project) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_image.rb', line 5 def delete_image(_image_name, _project = @project) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_instance_group(_group_name, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_instance_group.rb', line 5 def delete_instance_group(_group_name, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_instance_group_manager(_name, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_instance_group_manager.rb', line 5 def delete_instance_group_manager(_name, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_instance_template(_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_instance_template.rb', line 5 def delete_instance_template(_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_network(_network_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_network.rb', line 5 def delete_network(_network_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_region_operation(_region, _operation) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_region_operation.rb', line 5 def delete_region_operation(_region, _operation) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_route(_identity) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_route.rb', line 5 def delete_route(_identity) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_server(_server, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_server.rb', line 5 def delete_server(_server, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_server_access_config(_identity, _zone, _nic, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_server_access_config.rb', line 5 def delete_server_access_config(_identity, _zone, _nic, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_snapshot(_snapshot_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_snapshot.rb', line 5 def delete_snapshot(_snapshot_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_ssl_certificate(_certificate_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_ssl_certificate.rb', line 5 def delete_ssl_certificate(_certificate_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_subnetwork(_subnetwork_name, _region_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_subnetwork.rb', line 5 def delete_subnetwork(_subnetwork_name, _region_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_target_http_proxy(_proxy_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_target_http_proxy.rb', line 5 def delete_target_http_proxy(_proxy_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_target_https_proxy(_proxy_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_target_https_proxy.rb', line 5 def delete_target_https_proxy(_proxy_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_target_instance(_target_name, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_target_instance.rb', line 5 def delete_target_instance(_target_name, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_target_pool(_target_pool, _region) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_target_pool.rb', line 5 def delete_target_pool(_target_pool, _region) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_url_map(_url_map_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_url_map.rb', line 5 def delete_url_map(_url_map_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#delete_zone_operation(_zone, _operation) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/delete_zone_operation.rb', line 5 def delete_zone_operation(_zone, _operation) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#deprecate_image(_image_name, _deprecation_status = {}, _project = @project) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/deprecate_image.rb', line 5 def deprecate_image(_image_name, _deprecation_status = {}, _project = @project) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#detach_disk(_instance, _zone, _device_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/detach_disk.rb', line 5 def detach_disk(_instance, _zone, _device_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#expand_subnetwork_ip_cidr_range(_subnetwork, _region, _ip_cidr_range) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/expand_subnetwork_ip_cidr_range.rb', line 5 def (_subnetwork, _region, _ip_cidr_range) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_address(_address_name, _region_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_address.rb', line 5 def get_address(_address_name, _region_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_backend_service(service_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_backend_service.rb', line 5 def get_backend_service(service_name) backend_service = data[:backend_services][service_name] return nil if backend_service.nil? build_excon_response(backend_service) end |
#get_backend_service_health(_backend_service) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_backend_service_health.rb', line 5 def get_backend_service_health(_backend_service) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_disk(_disk_name, _zone_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_disk.rb', line 5 def get_disk(_disk_name, _zone_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_disk_type(_disk, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_disk_type.rb', line 5 def get_disk_type(_disk, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_firewall(_firewall_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_firewall.rb', line 5 def get_firewall(_firewall_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_forwarding_rule(_rule, _region) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_forwarding_rule.rb', line 5 def get_forwarding_rule(_rule, _region) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_global_address(_address_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_global_address.rb', line 5 def get_global_address(_address_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_global_forwarding_rule(_rule) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_global_forwarding_rule.rb', line 5 def get_global_forwarding_rule(_rule) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_global_operation(_operation) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_global_operation.rb', line 5 def get_global_operation(_operation) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_http_health_check(_check_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_http_health_check.rb', line 5 def get_http_health_check(_check_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_image(_image_name, _project = @project) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_image.rb', line 5 def get_image(_image_name, _project = @project) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_image_from_family(_family, _project = @project) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_image_from_family.rb', line 5 def get_image_from_family(_family, _project = @project) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_instance_group(_group_name, _zone, _project = @project) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_instance_group.rb', line 5 def get_instance_group(_group_name, _zone, _project = @project) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_instance_group_manager(_name, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_instance_group_manager.rb', line 5 def get_instance_group_manager(_name, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_instance_template(_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_instance_template.rb', line 5 def get_instance_template(_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_machine_type(_machine_type, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_machine_type.rb', line 5 def get_machine_type(_machine_type, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_network(_network_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_network.rb', line 5 def get_network(_network_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_project(_identity) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_project.rb', line 5 def get_project(_identity) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_region(_identity) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_region.rb', line 5 def get_region(_identity) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_region_operation(_region, _operation) ⇒ Object
5 6 7 |
# File 'lib/fog/compute/google/requests/get_region_operation.rb', line 5 def get_region_operation(_region, _operation) raise Fog::Errors::MockNotImplemented end |
#get_route(_identity) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_route.rb', line 5 def get_route(_identity) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_server(_instance, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_server.rb', line 5 def get_server(_instance, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_server_serial_port_output(_identity, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_server_serial_port_output.rb', line 5 def get_server_serial_port_output(_identity, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_snapshot(_snap_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_snapshot.rb', line 5 def get_snapshot(_snap_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_ssl_certificate(_certificate_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_ssl_certificate.rb', line 5 def get_ssl_certificate(_certificate_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_subnetwork(_subnetwork_name, _region_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_subnetwork.rb', line 5 def get_subnetwork(_subnetwork_name, _region_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_target_http_proxy(_proxy_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_target_http_proxy.rb', line 5 def get_target_http_proxy(_proxy_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_target_https_proxy(_proxy_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_target_https_proxy.rb', line 5 def get_target_https_proxy(_proxy_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_target_instance(_target_name, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_target_instance.rb', line 5 def get_target_instance(_target_name, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_target_pool(_target_pool, _region) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_target_pool.rb', line 5 def get_target_pool(_target_pool, _region) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_target_pool_health(_target_pool, _region, _instance) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_target_pool_health.rb', line 5 def get_target_pool_health(_target_pool, _region, _instance) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_url_map(_url_map_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_url_map.rb', line 5 def get_url_map(_url_map_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_zone(_zone_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_zone.rb', line 5 def get_zone(_zone_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#get_zone_operation(_zone_name, _operation) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/get_zone_operation.rb', line 5 def get_zone_operation(_zone_name, _operation) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_address(_address_name, _region_name, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_address.rb', line 5 def insert_address(_address_name, _region_name, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_backend_service(_backend_service_name, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_backend_service.rb', line 5 def insert_backend_service(_backend_service_name, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_disk(_disk_name, _zone, _image_name = nil, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_disk.rb', line 5 def insert_disk(_disk_name, _zone, _image_name = nil, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_firewall(_firewall_name, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_firewall.rb', line 5 def insert_firewall(_firewall_name, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_forwarding_rule(_rule_name, _region, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_forwarding_rule.rb', line 5 def insert_forwarding_rule(_rule_name, _region, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_global_address(_address_name, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_global_address.rb', line 5 def insert_global_address(_address_name, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_global_forwarding_rule(_rule_name, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_global_forwarding_rule.rb', line 5 def insert_global_forwarding_rule(_rule_name, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_http_health_check(_check_name, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_http_health_check.rb', line 5 def insert_http_health_check(_check_name, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_image(_image_name, _image = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_image.rb', line 5 def insert_image(_image_name, _image = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_instance_group(_group_name, _zone, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_instance_group.rb', line 5 def insert_instance_group(_group_name, _zone, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_instance_group_manager(_name, _zone, _instance_template, _base_instance_name, _target_size, _target_pools, _named_ports, _description) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/fog/compute/google/requests/insert_instance_group_manager.rb', line 5 def insert_instance_group_manager(_name, _zone, _instance_template, _base_instance_name, _target_size, _target_pools, _named_ports, _description) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_instance_template(_name, _properties, _description) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_instance_template.rb', line 5 def insert_instance_template(_name, _properties, _description) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_network(_network_name, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_network.rb', line 5 def insert_network(_network_name, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_route(_route_name, _network, _dest_range, _priority, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_route.rb', line 5 def insert_route(_route_name, _network, _dest_range, _priority, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_server(_instance_name, _zone, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_server.rb', line 5 def insert_server(_instance_name, _zone, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_ssl_certificate(_certificate_name, _certificate, _private_key, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_ssl_certificate.rb', line 5 def insert_ssl_certificate(_certificate_name, _certificate, _private_key, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_subnetwork(_subnetwork_name, _region_name, _network, _ip_range, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_subnetwork.rb', line 5 def insert_subnetwork(_subnetwork_name, _region_name, _network, _ip_range, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_target_http_proxy(_proxy_name, _description: nil, _url_map: nil) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_target_http_proxy.rb', line 5 def insert_target_http_proxy(_proxy_name, _description: nil, _url_map: nil) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_target_https_proxy(_proxy_name, _description: nil, _url_map: nil, _ssl_certificates: nil) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/fog/compute/google/requests/insert_target_https_proxy.rb', line 5 def insert_target_https_proxy(_proxy_name, _description: nil, _url_map: nil, _ssl_certificates: nil) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_target_instance(_target_name, _zone, _target_instance = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_target_instance.rb', line 5 def insert_target_instance(_target_name, _zone, _target_instance = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_target_pool(_target_pool_name, _region, _target_pool = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_target_pool.rb', line 5 def insert_target_pool(_target_pool_name, _region, _target_pool = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#insert_url_map(_url_map_name, _url_map = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/insert_url_map.rb', line 5 def insert_url_map(_url_map_name, _url_map = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#invalidate_url_map_cache(_url_map_name, _path, _host = nil) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/invalidate_url_map_cache.rb', line 5 def invalidate_url_map_cache(_url_map_name, _path, _host = nil) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_addresses(_region_name, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_addresses.rb', line 5 def list_addresses(_region_name, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_aggregated_addresses(_options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_aggregated_addresses.rb', line 5 def list_aggregated_addresses( = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_aggregated_disk_types(_options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_aggregated_disk_types.rb', line 5 def list_aggregated_disk_types( = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_aggregated_disks(_options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_aggregated_disks.rb', line 5 def list_aggregated_disks( = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_aggregated_forwarding_rules(_opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_aggregated_forwarding_rules.rb', line 5 def list_aggregated_forwarding_rules(_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_aggregated_instance_group_managers(_opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_aggregated_instance_group_managers.rb', line 5 def list_aggregated_instance_group_managers(_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_aggregated_instance_groups(_options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_aggregated_instance_groups.rb', line 5 def list_aggregated_instance_groups( = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_aggregated_machine_types(_opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_aggregated_machine_types.rb', line 5 def list_aggregated_machine_types(_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_aggregated_servers(_opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_aggregated_servers.rb', line 5 def list_aggregated_servers(_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_aggregated_subnetworks(_options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_aggregated_subnetworks.rb', line 5 def list_aggregated_subnetworks( = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_aggregated_target_instances(_options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_aggregated_target_instances.rb', line 5 def list_aggregated_target_instances( = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_aggregated_target_pools(_opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_aggregated_target_pools.rb', line 5 def list_aggregated_target_pools(_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_backend_services ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/fog/compute/google/requests/list_backend_services.rb', line 5 def list_backend_services backend_services = data[:backend_services].values build_excon_response("kind" => "compute#backendServiceList", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/backendServices", "id" => "projects/#{@project}/global/backendServices", "items" => backend_services) end |
#list_disk_types(_zone, _options: {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_disk_types.rb', line 5 def list_disk_types(_zone, _options: {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_disks(_zone_name, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_disks.rb', line 5 def list_disks(_zone_name, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_firewalls ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_firewalls.rb', line 5 def list_firewalls # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_forwarding_rules(_region, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_forwarding_rules.rb', line 5 def list_forwarding_rules(_region, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_global_addresses(_opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_global_addresses.rb', line 5 def list_global_addresses(_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_global_forwarding_rules(_opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_global_forwarding_rules.rb', line 5 def list_global_forwarding_rules(_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_global_operations ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_global_operations.rb', line 5 def list_global_operations # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_http_health_checks ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_http_health_checks.rb', line 5 def list_http_health_checks # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_images(_project = @project, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_images.rb', line 5 def list_images(_project = @project, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_instance_group_instances(_group, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_instance_group_instances.rb', line 5 def list_instance_group_instances(_group, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_instance_group_managers(_zone, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_instance_group_managers.rb', line 5 def list_instance_group_managers(_zone, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_instance_groups(_zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_instance_groups.rb', line 5 def list_instance_groups(_zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_instance_templates ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_instance_templates.rb', line 5 def list_instance_templates # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_machine_types(_zone, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_machine_types.rb', line 5 def list_machine_types(_zone, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_networks(_opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_networks.rb', line 5 def list_networks(_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_region_operations(_region) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_region_operations.rb', line 5 def list_region_operations(_region) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_regions ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_regions.rb', line 5 def list_regions # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_routes(_options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_routes.rb', line 5 def list_routes( = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_servers(_zone, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_servers.rb', line 5 def list_servers(_zone, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_snapshots ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_snapshots.rb', line 5 def list_snapshots # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_ssl_certificates ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_ssl_certificates.rb', line 5 def list_ssl_certificates # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_subnetworks(_region_name, _filter: nil, _max_results: nil, _order_by: nil, _page_token: nil) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/fog/compute/google/requests/list_subnetworks.rb', line 5 def list_subnetworks(_region_name, _filter: nil, _max_results: nil, _order_by: nil, _page_token: nil) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_target_http_proxies(_filter: nil, _max_results: nil, _order_by: nil, _page_token: nil) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/fog/compute/google/requests/list_target_http_proxies.rb', line 5 def list_target_http_proxies(_filter: nil, _max_results: nil, _order_by: nil, _page_token: nil) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_target_https_proxies ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_target_https_proxies.rb', line 5 def list_target_https_proxies # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_target_instances(_zone, _opts: {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_target_instances.rb', line 5 def list_target_instances(_zone, _opts: {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_target_pools(_region, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_target_pools.rb', line 5 def list_target_pools(_region, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_url_maps(_filter: nil, _max_results: nil, _order_by: nil, _page_token: nil) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/fog/compute/google/requests/list_url_maps.rb', line 5 def list_url_maps(_filter: nil, _max_results: nil, _order_by: nil, _page_token: nil) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_zone_operations(_zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_zone_operations.rb', line 5 def list_zone_operations(_zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#list_zones ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/list_zones.rb', line 5 def list_zones # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#patch_firewall(_firewall_name, _firewall_opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/patch_firewall.rb', line 5 def patch_firewall(_firewall_name, _firewall_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#patch_url_map(_url_map_name, _options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/patch_url_map.rb', line 5 def patch_url_map(_url_map_name, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#random_operation ⇒ Object
839 840 841 |
# File 'lib/fog/compute/google/mock.rb', line 839 def random_operation "operation-#{Fog::Mock.random_numbers(13)}-#{Fog::Mock.random_hex(13)}-#{Fog::Mock.random_hex(8)}" end |
#recreate_instances(_instance_group_manager, _instances) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/recreate_instances.rb', line 5 def recreate_instances(_instance_group_manager, _instances) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#remove_target_pool_health_checks(_target_pool, _region, _health_checks) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/remove_target_pool_health_checks.rb', line 5 def remove_target_pool_health_checks(_target_pool, _region, _health_checks) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#remove_target_pool_instances(_target_pool, _region, _instances) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/remove_target_pool_instance.rb', line 5 def remove_target_pool_instances(_target_pool, _region, _instances) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#reset_data ⇒ Object
834 835 836 837 |
# File 'lib/fog/compute/google/mock.rb', line 834 def reset_data # not particularly useful because it deletes zones self.class.data(api_version).delete(@project) end |
#reset_server(_identity, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/reset_server.rb', line 5 def reset_server(_identity, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#reset_windows_password(_server:, _user:) ⇒ Object
28 29 30 |
# File 'lib/fog/compute/google/requests/reset_windows_password.rb', line 28 def reset_windows_password(_server:, _user:) Fog::Mock.not_implemented end |
#set_common_instance_metadata(_project, _current_fingerprint, _metadata = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_common_instance_metadata.rb', line 5 def (_project, _current_fingerprint, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_forwarding_rule_target(_rule_name, _region, _target_opts) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_forwarding_rule_target.rb', line 5 def set_forwarding_rule_target(_rule_name, _region, _target_opts) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_global_forwarding_rule_target(_rule_name, _target) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_global_forwarding_rule_target.rb', line 5 def set_global_forwarding_rule_target(_rule_name, _target) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_instance_template(_instance_group_manager, _instance_template) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_instance_template.rb', line 5 def set_instance_template(_instance_group_manager, _instance_template) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_server_disk_auto_delete(_identity, _zone, _auto_delete, _device_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_server_disk_auto_delete.rb', line 5 def set_server_disk_auto_delete(_identity, _zone, _auto_delete, _device_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_server_machine_type(_instance, _zone, _machine_type) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_server_machine_type.rb', line 5 def set_server_machine_type(_instance, _zone, _machine_type) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_server_metadata(_instance, _zone, _fingerprint, _metadata_items = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_server_metadata.rb', line 5 def (_instance, _zone, _fingerprint, = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_server_scheduling(_identity, _zone, _on_host_maintenance, _automatic_restart, _preemptible) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_server_scheduling.rb', line 5 def set_server_scheduling(_identity, _zone, _on_host_maintenance, _automatic_restart, _preemptible) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_server_tags(_instance, _zone, _tags = []) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_server_tags.rb', line 5 def (_instance, _zone, = []) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_snapshot_labels(_snap_name) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_snapshot_labels.rb', line 5 def set_snapshot_labels(_snap_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_subnetwork_private_ip_google_access(_subnetwork_name, _region_name, _private_ip_google_access) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/fog/compute/google/requests/set_subnetwork_private_ip_google_access.rb', line 5 def set_subnetwork_private_ip_google_access(_subnetwork_name, _region_name, _private_ip_google_access) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_target_http_proxy_url_map(_proxy_name, _url_map) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_target_http_proxy_url_map.rb', line 5 def set_target_http_proxy_url_map(_proxy_name, _url_map) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_target_https_proxy_ssl_certificates(_proxy_name, _certs) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_target_https_proxy_ssl_certificates.rb', line 5 def set_target_https_proxy_ssl_certificates(_proxy_name, _certs) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_target_https_proxy_url_map(_proxy_name, _url_map) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/set_target_https_proxy_url_map.rb', line 5 def set_target_https_proxy_url_map(_proxy_name, _url_map) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#set_target_pool_backup(_target_pool, _region, _backup_target, _failover_ratio: nil) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/fog/compute/google/requests/set_target_pool_backup.rb', line 5 def set_target_pool_backup(_target_pool, _region, _backup_target, _failover_ratio: nil) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#start_server(_identity, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/start_server.rb', line 5 def start_server(_identity, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#stop_server(_identity, _zone) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/stop_server.rb', line 5 def stop_server(_identity, _zone) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#update_firewall(_firewall_name, _firewall_opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/update_firewall.rb', line 5 def update_firewall(_firewall_name, _firewall_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#update_http_health_check(_check_name, _opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/update_http_health_check.rb', line 5 def update_http_health_check(_check_name, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#update_url_map(_url_map_name, _url_map = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/update_url_map.rb', line 5 def update_url_map(_url_map_name, _url_map = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |
#validate_url_map(_url_map_name, _url_map: {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/fog/compute/google/requests/validate_url_map.rb', line 5 def validate_url_map(_url_map_name, _url_map: {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end |