class Google::Cloud::Env

def ensure_metadata timeout: nil

Raises:
  • (MetadataServerNotResponding) - if we were unable to confirm

Returns:
  • (:confirmed) - if we were able to confirm connection.

Parameters:
  • timeout (Numeric, nil) -- a timeout in seconds, or nil to wait
def ensure_metadata timeout: nil
  compute_metadata.ensure_existence timeout: timeout
end