Class: Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace

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

Overview

See Also:

  • Openlayer::Models::Projects::InferencePipelineCreateResponse#workspace

Defined Under Namespace

Modules: Status Classes: MonthlyUsage

Instance Attribute Summary collapse

Class Method 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:, creator_id:, date_created:, date_updated:, invite_count:, member_count:, name:, period_end_date:, period_start_date:, project_count:, slug:, status:, monthly_usage: nil, saml_only_access: nil, wildcard_domains: nil) ⇒ Object

Parameters:

  • id (String)

    The workspace id.

  • creator_id (String, nil)

    The workspace creator id.

  • date_created (Time)

    The workspace creation date.

  • date_updated (Time)

    The workspace last updated date.

  • invite_count (Integer)

    The number of invites in the workspace.

  • member_count (Integer)

    The number of members in the workspace.

  • name (String)

    The workspace name.

  • period_end_date (Time, nil)

    The end date of the current billing period.

  • period_start_date (Time, nil)

    The start date of the current billing period.

  • project_count (Integer)

    The number of projects in the workspace.

  • slug (String)

    The workspace slug.

  • status (Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace::Status)
  • monthly_usage (Array<Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace::MonthlyUsage>) (defaults to: nil)
  • saml_only_access (Boolean) (defaults to: nil)

    Whether the workspace only allows SAML authentication.

  • wildcard_domains (Array<String>) (defaults to: nil)


# File 'lib/openlayer/models/projects/inference_pipeline_create_response.rb', line 1045

Instance Attribute Details

#creator_idString?

Returns the value of attribute creator_id.

Returns:

  • (String, nil)


848
849
850
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 848

def creator_id
  @creator_id
end

#date_createdTime

Returns the value of attribute date_created.

Returns:

  • (Time)


850
851
852
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 850

def date_created
  @date_created
end

#date_updatedTime

Returns the value of attribute date_updated.

Returns:

  • (Time)


852
853
854
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 852

def date_updated
  @date_updated
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


846
847
848
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 846

def id
  @id
end

#invite_countInteger

Returns the value of attribute invite_count.

Returns:

  • (Integer)


854
855
856
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 854

def invite_count
  @invite_count
end

#member_countInteger

Returns the value of attribute member_count.

Returns:

  • (Integer)


856
857
858
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 856

def member_count
  @member_count
end

#monthly_usage::Array[Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace::MonthlyUsage]? (readonly)

Returns the value of attribute monthly_usage.



866
867
868
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 866

def monthly_usage
  @monthly_usage
end

#nameString

The workspace name.

Parameters:

  • value (String)

Returns:

  • (String)


957
# File 'lib/openlayer/models/projects/inference_pipeline_create_response.rb', line 957

required :name, String

#period_end_dateTime?

Returns the value of attribute period_end_date.

Returns:

  • (Time, nil)


858
859
860
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 858

def period_end_date
  @period_end_date
end

#period_start_dateTime?

Returns the value of attribute period_start_date.

Returns:

  • (Time, nil)


860
861
862
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 860

def period_start_date
  @period_start_date
end

#project_countInteger

Returns the value of attribute project_count.

Returns:

  • (Integer)


862
863
864
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 862

def project_count
  @project_count
end

#saml_only_accessBoolean?

Whether the workspace only allows SAML authentication.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


969
# File 'lib/openlayer/models/projects/inference_pipeline_create_response.rb', line 969

optional :saml_only_access, Openlayer::Internal::Type::Boolean, api_name: :samlOnlyAccess

#slugString

The workspace slug.

Parameters:

  • value (String)

Returns:

  • (String)


963
# File 'lib/openlayer/models/projects/inference_pipeline_create_response.rb', line 963

required :slug, String

#statusOpenlayer::Models::Projects::InferencePipelineCreateResponse::Workspace::status

Returns the value of attribute status.

Returns:

  • (Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace::status)


864
865
866
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 864

def status
  @status
end

#wildcard_domainsArray<String>?

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


974
# File 'lib/openlayer/models/projects/inference_pipeline_create_response.rb', line 974

optional :wildcard_domains, Openlayer::Internal::Type::ArrayOf[String], api_name: :wildcardDomains

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openlayer/models/projects/inference_pipeline_create_response.rb', line 1089

Instance Method Details

#monthly_usage=Object (readonly)



868
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 868

def monthly_usage=: (

#to_hash{

Returns:

  • ({)


890
# File 'sig/openlayer/models/projects/inference_pipeline_create_response.rbs', line 890

def to_hash: -> {