Class: DockerEngineRuby::Models::ServiceCreateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/docker_engine_ruby/models/service_create_response.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id: nil, warnings: nil) ⇒ Object

Some parameter documentations has been truncated, see DockerEngineRuby::Models::ServiceCreateResponse for more details.

contains the information returned to a client on the creation of a new service.

Parameters:

  • id (String) (defaults to: nil)

    The ID of the created service.

  • warnings (Array<String>, nil) (defaults to: nil)

    Optional warning message.



# File 'lib/docker_engine_ruby/models/service_create_response.rb', line 21

Instance Attribute Details

#idString?

The ID of the created service.

Returns:

  • (String, nil)


11
# File 'lib/docker_engine_ruby/models/service_create_response.rb', line 11

optional :id, String, api_name: :ID

#warningsArray<String>?

Optional warning message.

FIXME(thaJeztah): this should have “omitempty” in the generated type.

Returns:

  • (Array<String>, nil)


19
# File 'lib/docker_engine_ruby/models/service_create_response.rb', line 19

optional :warnings, DockerEngineRuby::Internal::Type::ArrayOf[String], api_name: :Warnings, nil?: true