Sha256: 922f0f24fe9486a7855019fe3e275bc18b80d067a27ff24a51d6f15ea1ef37a2

Contents?: true

Size: 926 Bytes

Versions: 21

Compression:

Stored size: 926 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def delete_subnetwork(_subnetwork_name, _region_name)
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        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

21 entries across 21 versions & 2 rubygems

Version Path
fog-google-1.24.1 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.24.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.23.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.22.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.21.1 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.21.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.20.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.19.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.18.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.17.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.16.1 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.16.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.15.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.14.0 lib/fog/compute/google/requests/delete_subnetwork.rb
gitlab-fog-google-1.14.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.13.0 lib/fog/compute/google/requests/delete_subnetwork.rb
gitlab-fog-google-1.13.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.12.1 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.12.0 lib/fog/compute/google/requests/delete_subnetwork.rb
fog-google-1.11.0 lib/fog/compute/google/requests/delete_subnetwork.rb