fog-google 1.24.1 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/integration-compute-core.yml +2 -2
- data/.github/workflows/integration-compute-instance_groups.yml +2 -2
- data/.github/workflows/integration-compute-loadbalancing.yml +2 -2
- data/.github/workflows/integration-compute-networking.yml +2 -2
- data/.github/workflows/integration-monitoring.yml +2 -2
- data/.github/workflows/integration-pubsub.yml +2 -2
- data/.github/workflows/integration-sql.yml +2 -2
- data/.github/workflows/integration-storage.yml +2 -2
- data/.github/workflows/unit.yml +2 -2
- data/CHANGELOG.md +58 -27
- data/CONTRIBUTING.md +11 -11
- data/README.md +7 -7
- data/SECURITY.md +3 -14
- data/examples/create_instance_and_attach_disk_later.rb +6 -7
- data/examples/dns/project.rb +1 -1
- data/examples/dns/zones.rb +1 -1
- data/examples/storage.rb +1 -1
- data/examples/storage_json.rb +1 -1
- data/fog-google.gemspec +3 -4
- data/lib/fog/bin/google.rb +23 -25
- data/lib/fog/{compute/google → google/compute}/mock.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/address.rb +8 -8
- data/lib/fog/{compute/google → google/compute}/models/addresses.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/backend_service.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/backend_services.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/disk.rb +5 -5
- data/lib/fog/{compute/google → google/compute}/models/disk_type.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/disk_types.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/disks.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/firewall.rb +6 -6
- data/lib/fog/{compute/google → google/compute}/models/firewalls.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/forwarding_rule.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/forwarding_rules.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/global_address.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/global_addresses.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/global_forwarding_rule.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/global_forwarding_rules.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/http_health_check.rb +5 -5
- data/lib/fog/{compute/google → google/compute}/models/http_health_checks.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/image.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/images.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/instance_group.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/instance_group_manager.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/instance_group_managers.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/instance_groups.rb +5 -5
- data/lib/fog/{compute/google → google/compute}/models/instance_template.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/instance_templates.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/machine_type.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/machine_types.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/network.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/networks.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/operations.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/project.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/projects.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/region.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/regions.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/route.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/routes.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/server.rb +19 -19
- data/lib/fog/{compute/google → google/compute}/models/servers.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/snapshot.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/snapshots.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/ssl_certificate.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/ssl_certificates.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/subnetwork.rb +6 -6
- data/lib/fog/{compute/google → google/compute}/models/subnetworks.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/target_http_proxies.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/target_http_proxy.rb +5 -5
- data/lib/fog/{compute/google → google/compute}/models/target_https_proxies.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/target_https_proxy.rb +7 -7
- data/lib/fog/{compute/google → google/compute}/models/target_instance.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/target_instances.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/target_pool.rb +8 -8
- data/lib/fog/{compute/google → google/compute}/models/target_pools.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/url_map.rb +7 -7
- data/lib/fog/{compute/google → google/compute}/models/url_maps.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/zone.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/zones.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/real.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/abandon_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/add_backend_service_backends.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/add_instance_group_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/add_server_access_config.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/add_target_pool_health_checks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/add_target_pool_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/attach_disk.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/create_disk_snapshot.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_backend_service.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_disk.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_firewall.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_global_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_global_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_global_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_http_health_check.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_image.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_instance_group.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_instance_group_manager.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_instance_template.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_network.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_region_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_route.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_server.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_server_access_config.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_snapshot.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_ssl_certificate.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_subnetwork.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_target_http_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_target_https_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_target_instance.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_target_pool.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_zone_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/deprecate_image.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/detach_disk.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/expand_subnetwork_ip_cidr_range.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_backend_service.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_backend_service_health.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_disk.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_disk_type.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_firewall.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_global_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_global_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_global_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_http_health_check.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_image.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_image_from_family.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_instance_group.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_instance_group_manager.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_instance_template.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_machine_type.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_network.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_project.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_region.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_region_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_route.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_server.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_server_serial_port_output.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_snapshot.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_ssl_certificate.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_subnetwork.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_target_http_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_target_https_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_target_instance.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_target_pool.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_target_pool_health.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_zone.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_zone_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_backend_service.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_disk.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_firewall.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_global_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_global_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_http_health_check.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_image.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_instance_group.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_instance_group_manager.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_instance_template.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_network.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_route.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_server.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/requests/insert_ssl_certificate.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_subnetwork.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_target_http_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_target_https_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_target_instance.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_target_pool.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/invalidate_url_map_cache.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_addresses.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_addresses.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_disk_types.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_disks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_forwarding_rules.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_instance_group_managers.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_instance_groups.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_machine_types.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_servers.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_subnetworks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_target_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_target_pools.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_backend_services.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_disk_types.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_disks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_firewalls.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_forwarding_rules.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_global_addresses.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_global_forwarding_rules.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_global_operations.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_http_health_checks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_images.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_instance_group_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_instance_group_managers.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_instance_groups.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_instance_templates.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_machine_types.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_networks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_region_operations.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_regions.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_routes.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_servers.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_snapshots.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_ssl_certificates.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_subnetworks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_target_http_proxies.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_target_https_proxies.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_target_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_target_pools.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_url_maps.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_zone_operations.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_zones.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/patch_firewall.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/patch_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/recreate_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/remove_instance_group_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/remove_target_pool_health_checks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/remove_target_pool_instance.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/remove_target_pool_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/reset_server.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/reset_windows_password.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_common_instance_metadata.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_forwarding_rule_target.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_global_forwarding_rule_target.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_instance_template.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_server_disk_auto_delete.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_server_machine_type.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_server_metadata.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_server_scheduling.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_server_tags.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_snapshot_labels.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_subnetwork_private_ip_google_access.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_target_http_proxy_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_target_https_proxy_ssl_certificates.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_target_https_proxy_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_target_pool_backup.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/start_server.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/stop_server.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/update_firewall.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/update_http_health_check.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/update_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/validate_url_map.rb +2 -2
- data/lib/fog/{compute/google.rb → google/compute.rb} +6 -6
- data/lib/fog/{dns/google → google/dns}/mock.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/models/change.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/models/changes.rb +8 -6
- data/lib/fog/{dns/google → google/dns}/models/project.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/models/projects.rb +4 -4
- data/lib/fog/{dns/google → google/dns}/models/record.rb +11 -11
- data/lib/fog/{dns/google → google/dns}/models/records.rb +8 -6
- data/lib/fog/{dns/google → google/dns}/models/zone.rb +7 -7
- data/lib/fog/{dns/google → google/dns}/models/zones.rb +6 -5
- data/lib/fog/{dns/google → google/dns}/real.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/create_change.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/create_managed_zone.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/delete_managed_zone.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/get_change.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/get_managed_zone.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/get_project.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/list_changes.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/list_managed_zones.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/list_resource_record_sets.rb +2 -2
- data/lib/fog/{dns/google.rb → google/dns.rb} +6 -6
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/access_control_list.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/copy_object.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_bucket.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_bucket_logging.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_bucket_object_versions.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_bucket_versioning.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_request_payment.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_service.rb +3 -3
- data/lib/fog/google/parsers/storage.rb +15 -0
- data/lib/fog/google/shared.rb +8 -7
- data/lib/fog/{storage/google_json → google/storage/storage_json}/mock.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/models/directories.rb +4 -3
- data/lib/fog/{storage/google_json → google/storage/storage_json}/models/directory.rb +3 -3
- data/lib/fog/{storage/google_json → google/storage/storage_json}/models/file.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/models/files.rb +8 -7
- data/lib/fog/{storage/google_json → google/storage/storage_json}/real.rb +6 -4
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/copy_object.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/delete_bucket.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/delete_object.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/delete_object_url.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_bucket.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_bucket_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object_http_url.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object_https_url.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object_metadata.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object_url.rb +4 -4
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/list_bucket_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/list_buckets.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/list_object_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/list_objects.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/put_bucket.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/put_bucket_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/put_object.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/put_object_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/put_object_url.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/utils.rb +8 -6
- data/lib/fog/{storage/google_json.rb → google/storage/storage_json.rb} +8 -8
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/mock.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/models/directories.rb +7 -7
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/models/directory.rb +3 -3
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/models/file.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/models/files.rb +11 -11
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/real.rb +6 -4
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/copy_object.rb +3 -3
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/delete_bucket.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/delete_object.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/delete_object_url.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_bucket.rb +4 -4
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_bucket_acl.rb +3 -3
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_object.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_object_acl.rb +3 -3
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_object_http_url.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_object_https_url.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_object_url.rb +4 -4
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_service.rb +3 -3
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/head_object.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/put_bucket.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/put_bucket_acl.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/put_object.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/put_object_acl.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/put_object_url.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/utils.rb +22 -19
- data/lib/fog/{storage/google_xml.rb → google/storage/storage_xml.rb} +7 -7
- data/lib/fog/{storage/google.rb → google/storage.rb} +5 -5
- data/lib/fog/google/version.rb +1 -1
- data/lib/fog/google.rb +30 -16
- metadata +322 -518
- data/.github/workflows/stale.yml +0 -23
- data/lib/fog/parsers/storage/google.rb +0 -15
- data/test/helpers/client_helper.rb +0 -63
- data/test/helpers/integration_test_helper.rb +0 -108
- data/test/helpers/test_collection.rb +0 -60
- data/test/helpers/test_helper.rb +0 -28
- data/test/integration/compute/core_compute/test_client_options.rb +0 -12
- data/test/integration/compute/core_compute/test_coverage.rb +0 -6
- data/test/integration/compute/core_compute/test_disk_types.rb +0 -43
- data/test/integration/compute/core_compute/test_disks.rb +0 -53
- data/test/integration/compute/core_compute/test_images.rb +0 -32
- data/test/integration/compute/core_compute/test_machine_types.rb +0 -55
- data/test/integration/compute/core_compute/test_operations.rb +0 -45
- data/test/integration/compute/core_compute/test_projects.rb +0 -19
- data/test/integration/compute/core_compute/test_regions.rb +0 -33
- data/test/integration/compute/core_compute/test_servers.rb +0 -235
- data/test/integration/compute/core_compute/test_snapshots.rb +0 -21
- data/test/integration/compute/core_compute/test_zones.rb +0 -35
- data/test/integration/compute/core_networking/test_addresses.rb +0 -107
- data/test/integration/compute/core_networking/test_coverage.rb +0 -6
- data/test/integration/compute/core_networking/test_firewalls.rb +0 -11
- data/test/integration/compute/core_networking/test_networks.rb +0 -30
- data/test/integration/compute/core_networking/test_routes.rb +0 -26
- data/test/integration/compute/core_networking/test_subnetworks.rb +0 -11
- data/test/integration/compute/instance_groups/test_coverage.rb +0 -6
- data/test/integration/compute/instance_groups/test_instance_group_managers.rb +0 -11
- data/test/integration/compute/instance_groups/test_instance_groups.rb +0 -11
- data/test/integration/compute/instance_groups/test_instance_templates.rb +0 -11
- data/test/integration/compute/loadbalancing/test_backend_services.rb +0 -11
- data/test/integration/compute/loadbalancing/test_coverage.rb +0 -6
- data/test/integration/compute/loadbalancing/test_forwarding_rules.rb +0 -11
- data/test/integration/compute/loadbalancing/test_global_addresses.rb +0 -11
- data/test/integration/compute/loadbalancing/test_global_forwarding_rules.rb +0 -11
- data/test/integration/compute/loadbalancing/test_http_health_checks.rb +0 -11
- data/test/integration/compute/loadbalancing/test_ssl_certificates.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_http_proxies.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_https_proxies.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_instances.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_pools.rb +0 -55
- data/test/integration/compute/loadbalancing/test_url_maps.rb +0 -11
- data/test/integration/factories/addresses_factory.rb +0 -20
- data/test/integration/factories/backend_services_factory.rb +0 -19
- data/test/integration/factories/collection_factory.rb +0 -52
- data/test/integration/factories/disks_factory.rb +0 -22
- data/test/integration/factories/firewalls_factory.rb +0 -13
- data/test/integration/factories/forwarding_rules_factory.rb +0 -25
- data/test/integration/factories/global_addresses_factory.rb +0 -15
- data/test/integration/factories/global_forwarding_rules_factory.rb +0 -20
- data/test/integration/factories/http_health_checks_factory.rb +0 -11
- data/test/integration/factories/images_factory.rb +0 -16
- data/test/integration/factories/instance_group_manager_factory.rb +0 -30
- data/test/integration/factories/instance_groups_factory.rb +0 -20
- data/test/integration/factories/instance_template_factory.rb +0 -24
- data/test/integration/factories/networks_factory.rb +0 -14
- data/test/integration/factories/servers_factory.rb +0 -30
- data/test/integration/factories/sql_certs_factory.rb +0 -20
- data/test/integration/factories/sql_instances_factory.rb +0 -19
- data/test/integration/factories/sql_users_factory.rb +0 -23
- data/test/integration/factories/ssl_certificates_factory.rb +0 -13
- data/test/integration/factories/subnetworks_factory.rb +0 -26
- data/test/integration/factories/target_http_proxies_factory.rb +0 -19
- data/test/integration/factories/target_https_proxies_factory.rb +0 -26
- data/test/integration/factories/target_instances_factory.rb +0 -24
- data/test/integration/factories/target_pools_factory.rb +0 -28
- data/test/integration/factories/url_maps_factory.rb +0 -19
- data/test/integration/monitoring/test_coverage.rb +0 -6
- data/test/integration/monitoring/test_metric_descriptors.rb +0 -131
- data/test/integration/monitoring/test_monitored_resource_descriptors.rb +0 -37
- data/test/integration/monitoring/test_timeseries.rb +0 -253
- data/test/integration/pubsub/pubsub_shared.rb +0 -75
- data/test/integration/pubsub/test_coverage.rb +0 -6
- data/test/integration/pubsub/test_pubsub_models.rb +0 -135
- data/test/integration/pubsub/test_pubsub_requests.rb +0 -105
- data/test/integration/sql/test_certs.rb +0 -50
- data/test/integration/sql/test_common_flags.rb +0 -31
- data/test/integration/sql/test_common_tiers.rb +0 -26
- data/test/integration/sql/test_coverage.rb +0 -6
- data/test/integration/sql/test_instances.rb +0 -101
- data/test/integration/sql/test_users.rb +0 -37
- data/test/integration/storage/storage_shared.rb +0 -101
- data/test/integration/storage/test_buckets.rb +0 -112
- data/test/integration/storage/test_coverage.rb +0 -6
- data/test/integration/storage/test_directories.rb +0 -67
- data/test/integration/storage/test_files.rb +0 -168
- data/test/integration/storage/test_objects.rb +0 -226
- data/test/integration/test_authentication.rb +0 -38
- data/test/unit/compute/test_common_collections.rb +0 -42
- data/test/unit/compute/test_common_models.rb +0 -35
- data/test/unit/compute/test_disk.rb +0 -26
- data/test/unit/compute/test_server.rb +0 -29
- data/test/unit/dns/test_common_collections.rb +0 -43
- data/test/unit/monitoring/test_comon_collections.rb +0 -44
- data/test/unit/pubsub/test_common_collections.rb +0 -35
- data/test/unit/sql/test_common_collections.rb +0 -46
- data/test/unit/storage/test_common_json_collections.rb +0 -38
- data/test/unit/storage/test_common_xml_collections.rb +0 -50
- data/test/unit/storage/test_json_requests.rb +0 -60
- data/test/unit/storage/test_xml_requests.rb +0 -60
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class MachineTypes < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::MachineType
|
6
6
|
|
7
7
|
def all(zone: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil)
|
8
8
|
opts = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
##
|
5
5
|
# Represents a Network resource
|
6
6
|
#
|
@@ -30,7 +30,7 @@ module Fog
|
|
30
30
|
requires :identity
|
31
31
|
|
32
32
|
data = service.insert_network(identity, attributes)
|
33
|
-
operation = Fog::Compute::
|
33
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
34
34
|
.get(data.name)
|
35
35
|
# Since network has no "state" we can query, we have to wait for the operation to finish
|
36
36
|
# TODO: change back to async when there's a proper state API
|
@@ -42,7 +42,7 @@ module Fog
|
|
42
42
|
requires :identity
|
43
43
|
|
44
44
|
data = service.delete_network(identity)
|
45
|
-
operation = Fog::Compute::
|
45
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
46
46
|
.get(data.name)
|
47
47
|
operation.wait_for { ready? } unless async
|
48
48
|
operation
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class Operations < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::Operation
|
6
6
|
|
7
7
|
def all(zone: nil, region: nil, filter: nil, max_results: nil,
|
8
8
|
order_by: nil, page_token: nil)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
##
|
5
5
|
# Represents a Project resource
|
6
6
|
#
|
@@ -20,7 +20,7 @@ module Fog
|
|
20
20
|
requires :identity
|
21
21
|
|
22
22
|
operation = service.set_common_instance_metadata(identity, common_instance_metadata["fingerprint"], metadata)
|
23
|
-
Fog::Compute::
|
23
|
+
Fog::Google::Compute::Operations.new(:service => service).get(operation.id)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
##
|
5
5
|
# Represents a Route resource
|
6
6
|
#
|
@@ -28,7 +28,7 @@ module Fog
|
|
28
28
|
requires :identity, :network, :dest_range, :priority
|
29
29
|
|
30
30
|
data = service.insert_route(identity, network, dest_range, priority, attributes)
|
31
|
-
operation = Fog::Compute::
|
31
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
32
32
|
.get(data.name)
|
33
33
|
operation.wait_for { ready? }
|
34
34
|
reload
|
@@ -38,7 +38,7 @@ module Fog
|
|
38
38
|
requires :identity
|
39
39
|
|
40
40
|
data = service.delete_route(identity)
|
41
|
-
operation = Fog::Compute::
|
41
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
42
42
|
.get(data.name)
|
43
43
|
operation.wait_for { ready? } unless async
|
44
44
|
operation
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require "fog/compute/models/server"
|
2
2
|
|
3
3
|
module Fog
|
4
|
-
module
|
5
|
-
class
|
4
|
+
module Google
|
5
|
+
class Compute
|
6
6
|
class Server < Fog::Compute::Server
|
7
7
|
identity :name
|
8
8
|
|
@@ -202,12 +202,12 @@ module Fog
|
|
202
202
|
# Destroy a server.
|
203
203
|
#
|
204
204
|
# @param async [TrueClass] execute the command asynchronously
|
205
|
-
# @return [Fog::Compute::
|
205
|
+
# @return [Fog::Google::Compute::Operation]
|
206
206
|
def destroy(async = true)
|
207
207
|
requires :name, :zone
|
208
208
|
|
209
209
|
data = service.delete_server(name, zone_name)
|
210
|
-
operation = Fog::Compute::
|
210
|
+
operation = Fog::Google::Compute::Operations
|
211
211
|
.new(:service => service)
|
212
212
|
.get(data.name, data.zone)
|
213
213
|
operation.wait_for { ready? } unless async
|
@@ -277,13 +277,13 @@ module Fog
|
|
277
277
|
requires :identity, :zone
|
278
278
|
|
279
279
|
if disk.is_a? Disk
|
280
|
-
disk_obj = disk.
|
280
|
+
disk_obj = disk.attached_disk_obj(**attached_disk_options)
|
281
281
|
elsif disk.is_a? String
|
282
282
|
disk_obj = service.disks.attached_disk_obj(disk, **attached_disk_options)
|
283
283
|
end
|
284
284
|
|
285
285
|
data = service.attach_disk(identity, zone_name, disk_obj)
|
286
|
-
operation = Fog::Compute::
|
286
|
+
operation = Fog::Google::Compute::Operations
|
287
287
|
.new(:service => service)
|
288
288
|
.get(data.name, data.zone)
|
289
289
|
operation.wait_for { ready? } unless async
|
@@ -294,12 +294,12 @@ module Fog
|
|
294
294
|
#
|
295
295
|
# @param device_name [Object]
|
296
296
|
# @param async [TrueClass]
|
297
|
-
# @returns [Fog::Compute::
|
297
|
+
# @returns [Fog::Google::Compute::Server] server object
|
298
298
|
def detach_disk(device_name, async = true)
|
299
299
|
requires :identity, :zone
|
300
300
|
|
301
301
|
data = service.detach_disk(identity, zone, device_name)
|
302
|
-
operation = Fog::Compute::
|
302
|
+
operation = Fog::Google::Compute::Operations
|
303
303
|
.new(:service => service)
|
304
304
|
.get(data.name, data.zone)
|
305
305
|
operation.wait_for { ready? } unless async
|
@@ -321,7 +321,7 @@ module Fog
|
|
321
321
|
requires :identity, :zone
|
322
322
|
|
323
323
|
data = service.reset_server(identity, zone_name)
|
324
|
-
operation = Fog::Compute::
|
324
|
+
operation = Fog::Google::Compute::Operations
|
325
325
|
.new(:service => service)
|
326
326
|
.get(data.name, data.zone)
|
327
327
|
operation.wait_for { ready? } unless async
|
@@ -332,7 +332,7 @@ module Fog
|
|
332
332
|
requires :identity, :zone
|
333
333
|
|
334
334
|
data = service.start_server(identity, zone_name)
|
335
|
-
operation = Fog::Compute::
|
335
|
+
operation = Fog::Google::Compute::Operations
|
336
336
|
.new(:service => service)
|
337
337
|
.get(data.name, data.zone)
|
338
338
|
operation.wait_for { ready? } unless async
|
@@ -343,7 +343,7 @@ module Fog
|
|
343
343
|
requires :identity, :zone
|
344
344
|
|
345
345
|
data = service.stop_server(identity, zone_name, discard_local_ssd)
|
346
|
-
operation = Fog::Compute::
|
346
|
+
operation = Fog::Google::Compute::Operations
|
347
347
|
.new(:service => service)
|
348
348
|
.get(data.name, data.zone)
|
349
349
|
operation.wait_for { ready? } unless async
|
@@ -368,7 +368,7 @@ module Fog
|
|
368
368
|
identity, zone_name, auto_delete, device_name
|
369
369
|
)
|
370
370
|
|
371
|
-
operation = Fog::Compute::
|
371
|
+
operation = Fog::Google::Compute::Operations
|
372
372
|
.new(:service => service)
|
373
373
|
.get(data.name, data.zone)
|
374
374
|
operation.wait_for { ready? } unless async
|
@@ -387,7 +387,7 @@ module Fog
|
|
387
387
|
:preemptible => preemptible
|
388
388
|
)
|
389
389
|
|
390
|
-
operation = Fog::Compute::
|
390
|
+
operation = Fog::Google::Compute::Operations
|
391
391
|
.new(:service => service)
|
392
392
|
.get(data.name, data.zone)
|
393
393
|
operation.wait_for { ready? } unless async
|
@@ -400,7 +400,7 @@ module Fog
|
|
400
400
|
# @param [Hash] new_metadata A new metadata object
|
401
401
|
# Format: {'foo' => 'bar', 'baz'=>'foo'}
|
402
402
|
#
|
403
|
-
# @returns [Fog::Compute::
|
403
|
+
# @returns [Fog::Google::Compute::Server] server object
|
404
404
|
def set_metadata(new_metadata = {}, async = true)
|
405
405
|
requires :identity, :zone
|
406
406
|
|
@@ -414,7 +414,7 @@ module Fog
|
|
414
414
|
data = service.set_server_metadata(
|
415
415
|
identity, zone_name, metadata[:fingerprint], new_metadata_items
|
416
416
|
)
|
417
|
-
operation = Fog::Compute::
|
417
|
+
operation = Fog::Google::Compute::Operations
|
418
418
|
.new(:service => service)
|
419
419
|
.get(data.name, data.zone)
|
420
420
|
operation.wait_for { ready? } unless async
|
@@ -429,7 +429,7 @@ module Fog
|
|
429
429
|
data = service.set_server_machine_type(
|
430
430
|
identity, zone_name, new_machine_type
|
431
431
|
)
|
432
|
-
operation = Fog::Compute::
|
432
|
+
operation = Fog::Google::Compute::Operations
|
433
433
|
.new(:service => service)
|
434
434
|
.get(data.name, data.zone)
|
435
435
|
operation.wait_for { ready? } unless async
|
@@ -442,7 +442,7 @@ module Fog
|
|
442
442
|
data = service.set_server_tags(
|
443
443
|
identity, zone_name, tags[:fingerprint], new_tags
|
444
444
|
)
|
445
|
-
operation = Fog::Compute::
|
445
|
+
operation = Fog::Google::Compute::Operations
|
446
446
|
.new(:service => service)
|
447
447
|
.get(data.name, data.zone)
|
448
448
|
operation.wait_for { ready? } unless async
|
@@ -490,7 +490,7 @@ module Fog
|
|
490
490
|
identity, zone_name, metadata[:fingerprint], metadata[:items]
|
491
491
|
)
|
492
492
|
|
493
|
-
operation = Fog::Compute::
|
493
|
+
operation = Fog::Google::Compute::Operations
|
494
494
|
.new(:service => service)
|
495
495
|
.get(data.name, data.zone)
|
496
496
|
operation.wait_for { ready? } unless async
|
@@ -559,7 +559,7 @@ module Fog
|
|
559
559
|
|
560
560
|
data = service.insert_server(name, zone_name, options)
|
561
561
|
|
562
|
-
operation = Fog::Compute::
|
562
|
+
operation = Fog::Google::Compute::Operations
|
563
563
|
.new(:service => service)
|
564
564
|
.get(data.name, data.zone)
|
565
565
|
operation.wait_for { ready? }
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class Servers < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::Server
|
6
6
|
|
7
7
|
def all(zone: nil, filter: nil, max_results: nil,
|
8
8
|
order_by: nil, page_token: nil)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class Snapshot < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -31,7 +31,7 @@ module Fog
|
|
31
31
|
requires :identity
|
32
32
|
|
33
33
|
data = service.delete_snapshot(identity)
|
34
|
-
operation = Fog::Compute::
|
34
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
35
35
|
.get(data.name)
|
36
36
|
operation.wait_for { ready? } unless async
|
37
37
|
operation
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
##
|
5
5
|
# Represents a SslCertificate resource
|
6
6
|
#
|
@@ -22,7 +22,7 @@ module Fog
|
|
22
22
|
identity, certificate, private_key,
|
23
23
|
:description => description
|
24
24
|
)
|
25
|
-
operation = Fog::Compute::
|
25
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
26
26
|
.get(data.name)
|
27
27
|
operation.wait_for { ready? }
|
28
28
|
reload
|
@@ -31,7 +31,7 @@ module Fog
|
|
31
31
|
def destroy(async = true)
|
32
32
|
requires :identity
|
33
33
|
data = service.delete_ssl_certificate(identity)
|
34
|
-
operation = Fog::Compute::
|
34
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
35
35
|
.get(data.name)
|
36
36
|
operation.wait_for { ready? } unless async
|
37
37
|
operation
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
##
|
5
5
|
# Represents a Subnetwork resource
|
6
6
|
#
|
@@ -24,7 +24,7 @@ module Fog
|
|
24
24
|
requires :identity, :network, :region, :ip_cidr_range
|
25
25
|
|
26
26
|
data = service.insert_subnetwork(identity, region, network, ip_cidr_range, attributes)
|
27
|
-
operation = Fog::Compute::
|
27
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
28
28
|
.get(data.name, nil, data.region)
|
29
29
|
operation.wait_for { ready? }
|
30
30
|
reload
|
@@ -34,7 +34,7 @@ module Fog
|
|
34
34
|
requires :identity, :region
|
35
35
|
|
36
36
|
data = service.delete_subnetwork(identity, region)
|
37
|
-
operation = Fog::Compute::
|
37
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
38
38
|
.get(data.name, nil, data.region)
|
39
39
|
operation.wait_for { ready? } unless async
|
40
40
|
operation
|
@@ -51,7 +51,7 @@ module Fog
|
|
51
51
|
data = service.expand_subnetwork_ip_cidr_range(
|
52
52
|
identity, region, range
|
53
53
|
)
|
54
|
-
operation = Fog::Compute::
|
54
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
55
55
|
.get(data.name, nil, data.region)
|
56
56
|
operation.wait_for { ready? } unless async
|
57
57
|
reload
|
@@ -63,7 +63,7 @@ module Fog
|
|
63
63
|
data = service.set_subnetwork_private_ip_google_access(
|
64
64
|
identity, region, access
|
65
65
|
)
|
66
|
-
operation = Fog::Compute::
|
66
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
67
67
|
.get(data.name, nil, data.region)
|
68
68
|
|
69
69
|
operation.wait_for { ready? } unless async
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class Subnetworks < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::Subnetwork
|
6
6
|
|
7
7
|
def all(region: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil)
|
8
8
|
filters = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class TargetHttpProxy < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -16,7 +16,7 @@ module Fog
|
|
16
16
|
data = service.insert_target_http_proxy(
|
17
17
|
identity, :description => description, :url_map => url_map
|
18
18
|
)
|
19
|
-
operation = Fog::Compute::
|
19
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
20
20
|
.get(data.name)
|
21
21
|
operation.wait_for { ready? }
|
22
22
|
reload
|
@@ -26,7 +26,7 @@ module Fog
|
|
26
26
|
requires :identity
|
27
27
|
|
28
28
|
data = service.delete_target_http_proxy(identity)
|
29
|
-
operation = Fog::Compute::
|
29
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
30
30
|
.get(data.name)
|
31
31
|
operation.wait_for { ready? } unless async
|
32
32
|
operation
|
@@ -36,7 +36,7 @@ module Fog
|
|
36
36
|
requires :identity
|
37
37
|
|
38
38
|
data = service.set_target_http_proxy_url_map(identity, url_map)
|
39
|
-
operation = Fog::Compute::
|
39
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
40
40
|
.get(data.name)
|
41
41
|
operation.wait_for { ready? } unless async
|
42
42
|
reload
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class TargetHttpsProxy < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -16,7 +16,7 @@ module Fog
|
|
16
16
|
# [cert_one.self_link', cert_two.self_link]
|
17
17
|
#
|
18
18
|
# , where 'cert_one' and 'cert_two' are instances of
|
19
|
-
# Fog::Compute::
|
19
|
+
# Fog::Google::Compute::SslCertificate
|
20
20
|
#
|
21
21
|
# @return [Array<String>]
|
22
22
|
attribute :ssl_certificates, :aliases => "sslCertificates"
|
@@ -34,7 +34,7 @@ module Fog
|
|
34
34
|
:url_map => url_map,
|
35
35
|
:ssl_certificates => ssl_certificates
|
36
36
|
)
|
37
|
-
operation = Fog::Compute::
|
37
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
38
38
|
.get(data.name)
|
39
39
|
operation.wait_for { ready? }
|
40
40
|
reload
|
@@ -44,7 +44,7 @@ module Fog
|
|
44
44
|
requires :identity
|
45
45
|
|
46
46
|
data = service.delete_target_https_proxy(identity)
|
47
|
-
operation = Fog::Compute::
|
47
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
48
48
|
.get(data.name)
|
49
49
|
operation.wait_for { ready? } unless async
|
50
50
|
operation
|
@@ -56,7 +56,7 @@ module Fog
|
|
56
56
|
data = service.set_target_https_proxy_url_map(
|
57
57
|
identity, url_map
|
58
58
|
)
|
59
|
-
operation = Fog::Compute::
|
59
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
60
60
|
.get(data.name)
|
61
61
|
operation.wait_for { ready? } unless async
|
62
62
|
reload
|
@@ -68,7 +68,7 @@ module Fog
|
|
68
68
|
data = service.set_target_https_proxy_ssl_certificates(
|
69
69
|
identity, ssl_certificates
|
70
70
|
)
|
71
|
-
operation = Fog::Compute::
|
71
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
72
72
|
.get(data.name)
|
73
73
|
operation.wait_for { ready? } unless async
|
74
74
|
reload
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class TargetInstance < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -24,7 +24,7 @@ module Fog
|
|
24
24
|
}
|
25
25
|
|
26
26
|
data = service.insert_target_instance(identity, zone, options)
|
27
|
-
operation = Fog::Compute::
|
27
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
28
28
|
.get(data.name, data.zone)
|
29
29
|
operation.wait_for { ready? }
|
30
30
|
reload
|
@@ -33,7 +33,7 @@ module Fog
|
|
33
33
|
def destroy(async = true)
|
34
34
|
requires :name, :zone
|
35
35
|
data = service.delete_target_instance(name, zone)
|
36
|
-
operation = Fog::Compute::
|
36
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
37
37
|
.get(data.name, data.zone)
|
38
38
|
operation.wait_for { ready? } unless async
|
39
39
|
operation
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class TargetInstances < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::TargetInstance
|
6
6
|
|
7
7
|
def all(zone: nil, filter: nil, max_results: nil, order_by: nil,
|
8
8
|
page_token: nil)
|