Class: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule

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

Overview

See Also:

  • OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders::FederationRules#create

Defined Under Namespace

Modules: AttributeMatcher, Permissions

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

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 ⇒ FederationRule

Returns a new instance of FederationRule.

Parameters:

  • id: (String)
  • attribute_matchers: (::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::attribute_matcher])
  • created_at: (Integer)
  • description: (String, nil)
  • enabled: (Boolean)
  • name: (String, nil)
  • permissions: (OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::permissions)
  • project_id: (String)
  • service_account_id: (String)
  • updated_at: (Integer)
  • workload_identity_provider_id: (String)
  • object: (:"organization.workload_identity_federation_rule")


47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'sig/openai/models/admin/organization/workload_identity_providers/federation_rule.rbs', line 47

def initialize: (
  id: String,
  attribute_matchers: ::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::attribute_matcher],
  created_at: Integer,
  description: String?,
  enabled: bool,
  name: String?,
  permissions: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::permissions,
  project_id: String,
  service_account_id: String,
  updated_at: Integer,
  workload_identity_provider_id: String,
  ?object: :"organization.workload_identity_federation_rule"
) -> void

Instance Attribute Details

#attribute_matchers ⇒ Hash{Symbol=>String, Boolean, Integer, Float}

Parameters:

  • value (::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::attribute_matcher])

Returns:

  • (Hash{Symbol=>String, Boolean, Integer, Float})


18
19
20
21
22
23
24
25
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 18

required(
  :attribute_matchers,
  -> {
    OpenAI::Internal::Type::HashOf[
      union: OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRule::AttributeMatcher
    ]
  }
)

#created_at ⇒ Integer

Parameters:

  • value (Integer)

Returns:

  • (Integer)


30
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 30

required :created_at, Integer

#description ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


35
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 35

required :description, String, nil?: true

#enabled ⇒ Boolean

Parameters:

Returns:



40
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 40

required :enabled, OpenAI::Internal::Type::Boolean

#id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 13

required :id, String

#name ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


45
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 45

required :name, String, nil?: true

#object ⇒ Symbol, :"organization.workload_identity_federation_rule"

Parameters:

  • value (:"organization.workload_identity_federation_rule")

Returns:

  • (Symbol, :"organization.workload_identity_federation_rule")


50
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 50

required :object, const: :"organization.workload_identity_federation_rule"

#permissions ⇒ OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions::ServiceAccountDefault, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions::Restricted



55
56
57
58
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 55

required(
  :permissions,
  union: -> { OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRule::Permissions }
)

#project_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


63
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 63

required :project_id, String

#service_account_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


68
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 68

required :service_account_id, String

#updated_at ⇒ Integer

Parameters:

  • value (Integer)

Returns:

  • (Integer)


73
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 73

required :updated_at, Integer

#workload_identity_provider_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


78
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 78

required :workload_identity_provider_id, String

Class Method Details

.variants ⇒ Array(String, Boolean, Integer, Float)

Returns:

  • (Array(String, Boolean, Integer, Float))


# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 105

Instance Method Details

#to_hash ⇒ { id: String, attribute_matchers: ::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::attribute_matcher], created_at: Integer, description: String?, enabled: bool, name: String?, ?object: :"organization.workload_identity_federation_rule", permissions: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::permissions, project_id: String, service_account_id: String, updated_at: Integer, workload_identity_provider_id: String }

Returns:

  • ({ id: String, attribute_matchers: ::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::attribute_matcher], created_at: Integer, description: String?, enabled: bool, name: String?, ?object: :"organization.workload_identity_federation_rule", permissions: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::permissions, project_id: String, service_account_id: String, updated_at: Integer, workload_identity_provider_id: String })


62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'sig/openai/models/admin/organization/workload_identity_providers/federation_rule.rbs', line 62

def to_hash: -> {
  id: String,
  attribute_matchers: ::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::attribute_matcher],
  created_at: Integer,
  description: String?,
  enabled: bool,
  name: String?,
  ?object: :"organization.workload_identity_federation_rule",
  permissions: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRule::permissions,
  project_id: String,
  service_account_id: String,
  updated_at: Integer,
  workload_identity_provider_id: String
}