Class: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleCreateParams::Permissions::Restricted

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rb,
sig/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(scopes:, type: :restricted) ⇒ Restricted

Returns a new instance of Restricted.

Parameters:

  • scopes (Array<String>)
  • type (Symbol, :restricted) (defaults to: :restricted)
  • scopes: (::Array[String])
  • type: (:restricted) (defaults to: :restricted)


# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rb', line 131

Instance Attribute Details

#scopes ⇒ Array<String>

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


124
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rb', line 124

required :scopes, OpenAI::Internal::Type::ArrayOf[String]

#type ⇒ Symbol, :restricted

Parameters:

  • value (:restricted)

Returns:

  • (Symbol, :restricted)


129
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rb', line 129

required :type, const: :restricted

Instance Method Details

#to_hash ⇒ { scopes: ::Array[String], ?type: :restricted }

Returns:

  • ({ scopes: ::Array[String], ?type: :restricted })


116
# File 'sig/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rbs', line 116

def to_hash: -> { scopes: ::Array[String], ?type: :restricted }