Class: Openlayer::Models::ProjectCreateResponse::GitRepo

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/project_create_response.rb,
sig/openlayer/models/project_create_response.rbs

Overview

See Also:

  • Openlayer::Models::ProjectCreateResponse#git_repo

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:, date_connected:, date_updated:, git_account_id:, git_id:, name:, private:, project_id:, slug:, url:, branch: nil, root_dir: nil) ⇒ Object

Parameters:

  • id (String)
  • date_connected (Time)
  • date_updated (Time)
  • git_account_id (String)
  • git_id (Integer)
  • name (String)
  • private (Boolean)
  • project_id (String)
  • slug (String)
  • url (String)
  • branch (String) (defaults to: nil)
  • root_dir (String) (defaults to: nil)


# File 'lib/openlayer/models/project_create_response.rb', line 246

Instance Attribute Details

#branchString?

Parameters:

  • (String)

Returns:

  • (String, nil)


197
# File 'lib/openlayer/models/project_create_response.rb', line 197

optional :branch, String

#date_connectedTime

Returns the value of attribute date_connected.

Returns:

  • (Time)


164
165
166
# File 'sig/openlayer/models/project_create_response.rbs', line 164

def date_connected
  @date_connected
end

#date_updatedTime

Returns the value of attribute date_updated.

Returns:

  • (Time)


166
167
168
# File 'sig/openlayer/models/project_create_response.rbs', line 166

def date_updated
  @date_updated
end

#git_account_idString

Parameters:

  • value (String)

Returns:

  • (String)


187
# File 'lib/openlayer/models/project_create_response.rb', line 187

required :git_account_id, String, api_name: :gitAccountId

#git_idInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


192
# File 'lib/openlayer/models/project_create_response.rb', line 192

required :git_id, Integer, api_name: :gitId

#idString

Returns the value of attribute id.

Returns:

  • (String)


162
163
164
# File 'sig/openlayer/models/project_create_response.rbs', line 162

def id
  @id
end

#nameString

Returns the value of attribute name.

Returns:

  • (String)


168
169
170
# File 'sig/openlayer/models/project_create_response.rbs', line 168

def name
  @name
end

#privateBoolean

Returns the value of attribute private.

Returns:

  • (Boolean)


170
171
172
# File 'sig/openlayer/models/project_create_response.rbs', line 170

def private
  @private
end

#project_idString

Returns the value of attribute project_id.

Returns:

  • (String)


172
173
174
# File 'sig/openlayer/models/project_create_response.rbs', line 172

def project_id
  @project_id
end

#root_dirString?

Parameters:

  • (String)

Returns:

  • (String, nil)


202
# File 'lib/openlayer/models/project_create_response.rb', line 202

optional :root_dir, String, api_name: :rootDir

#slugString

Returns the value of attribute slug.

Returns:

  • (String)


174
175
176
# File 'sig/openlayer/models/project_create_response.rbs', line 174

def slug
  @slug
end

#urlString

Returns the value of attribute url.

Returns:

  • (String)


176
177
178
# File 'sig/openlayer/models/project_create_response.rbs', line 176

def url
  @url
end

Instance Method Details

#to_hash{

Returns:

  • ({)


193
# File 'sig/openlayer/models/project_create_response.rbs', line 193

def to_hash: -> {