Sha256: ea27c3462f1392a2b9b1f34d06627b1af34884b624f36a720eef0dd8ad73a29e

Contents?: true

Size: 1.33 KB

Versions: 20

Compression:

Stored size: 1.33 KB

Contents

module Fog
  module Compute
    class Google
      class Mock
        def get_server_serial_port_output(_identity, _zone)
          Fog::Mock.not_implemented
        end
      end

      class Real
        # Returns the specified instance's serial port output.
        # @param [String] zone Zone for the given instance
        # @param [String] instance Instance scoping this request.
        # @param [Fixnum] port
        #   Specifies which COM or serial port to retrieve data from.
        #   Acceptable values are 1 to 4, inclusive. (Default: 1)
        # @param [Fixnum] start
        #   Returns output starting from a specific byte position.
        #   Use this to page through output when the output is too large to
        #   return in a single request. For the initial request,
        #   leave this field unspecified. For subsequent calls, this field
        #   should be set to the next value returned in the previous call.
        # @see https://cloud.google.com/compute/docs/reference/latest/instances/getSerialPortOutput
        def get_server_serial_port_output(identity, zone, port: nil, start: nil)
          @compute.get_instance_serial_port_output(
            @project,
            zone.split("/")[-1],
            identity,
            :port => port,
            :start => start
          )
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fog-google-1.9.1 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.9.0 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.8.2 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.8.1 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.8.0 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.7.1 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.7.0 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.6.0 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.5.0 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.4.0 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.3.3 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.3.2 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.3.1 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.3.0 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.2.2 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.2.1 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.2.0 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.1.0 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.0.1 lib/fog/compute/google/requests/get_server_serial_port_output.rb
fog-google-1.0.0 lib/fog/compute/google/requests/get_server_serial_port_output.rb