Sha256: 9e8dbb256ce31c354786ddcc3c6cbed27de7a37439b1b553318ba5c156bcb630

Contents?: true

Size: 740 Bytes

Versions: 14

Compression:

Stored size: 740 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def delete_region_operation(_region, _operation)
          Fog::Mock.not_implemented
        end
      end

      class Real
        # https://developers.google.com/compute/docs/reference/latest/regionOperations

        def delete_region_operation(region_name, operation)
          if region_name.start_with? "http"
            region_name = region_name.split("/")[-1]
          end
          api_method = @compute.region_operations.delete
          parameters = {
            "project" => @project,
            "region" => region_name,
            "operation" => operation
          }

          request(api_method, parameters)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.5.5 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.5.4 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.5.3 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.5.2 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.5.1 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.5.0 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.4.2 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.4.1 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.4.0 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.3.2 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.3.1 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.3.0 lib/fog/compute/google/requests/delete_region_operation.rb
fog-google-0.2.0 lib/fog/compute/google/requests/delete_region_operation.rb