Sha256: fac89ed1654b39f6ba94020ca813554700b082bb376971575d2f1d214dc1b863
Contents?: true
Size: 874 Bytes
Versions: 20
Compression:
Stored size: 874 Bytes
Contents
module Fog module Compute class Google class Mock def delete_subnetwork(_subnetwork_name, _region_name) Fog::Mock.not_implemented end end class Real ## # Delete a subnetwork. # # @param subnetwork_name [String] the name of the subnetwork to delete # @param region_name [String] the name of the subnetwork's region # # @return [Google::Apis::ComputeV1::Operation] delete operation # # @see https://cloud.google.com/compute/docs/reference/latest/subnetworks/delete def delete_subnetwork(subnetwork_name, region_name) if region_name.start_with? "http" region_name = region_name.split("/")[-1] end @compute.delete_subnetwork(@project, region_name, subnetwork_name) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems