Class: OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleAssignmentDeleted

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

Overview

See Also:

  • OpenAI::Models::Admin::Organization::AuditLogListResponse#role_assignment_deleted

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

Returns a new instance of RoleAssignmentDeleted.

Parameters:

  • id —

    The identifier of the role assignment.

  • principal_id —

    The principal (user or group) that had the role removed.

  • principal_type —

    The type of principal (user or group) that had the role removed.

  • resource_id —

    The resource the role assignment was scoped to.

  • resource_type —

    The type of resource the role assignment was scoped to.

  • id: (String)
  • principal_id: (String)
  • principal_type: (String)
  • resource_id: (String)
  • resource_type: (String)


2908
2909
2910
2911
2912
2913
2914
# File 'sig/openai/models/admin/organization/audit_log_list_response.rbs', line 2908

def initialize: (
  ?id: String,
  ?principal_id: String,
  ?principal_type: String,
  ?resource_id: String,
  ?resource_type: String
) -> void

Instance Attribute Details

#id ⇒ String?

The identifier of the role assignment.

Returns:

  • (String, nil)


2422
# File 'lib/openai/models/admin/organization/audit_log_list_response.rb', line 2422

optional :id, String

#principal_id ⇒ String?

The principal (user or group) that had the role removed.

Returns:

  • (String, nil)


2428
# File 'lib/openai/models/admin/organization/audit_log_list_response.rb', line 2428

optional :principal_id, String

#principal_type ⇒ String?

The type of principal (user or group) that had the role removed.

Returns:

  • (String, nil)


2434
# File 'lib/openai/models/admin/organization/audit_log_list_response.rb', line 2434

optional :principal_type, String

#resource_id ⇒ String?

The resource the role assignment was scoped to.

Returns:

  • (String, nil)


2440
# File 'lib/openai/models/admin/organization/audit_log_list_response.rb', line 2440

optional :resource_id, String

#resource_type ⇒ String?

The type of resource the role assignment was scoped to.

Returns:

  • (String, nil)


2446
# File 'lib/openai/models/admin/organization/audit_log_list_response.rb', line 2446

optional :resource_type, String

Instance Method Details

#to_hash ⇒ { ?id: String, ?principal_id: String, ?principal_type: String, ?resource_id: String, ?resource_type: String }

Returns:

  • ({ ?id: String, ?principal_id: String, ?principal_type: String, ?resource_id: String, ?resource_type: String })


2916
2917
2918
2919
2920
2921
2922
# File 'sig/openai/models/admin/organization/audit_log_list_response.rbs', line 2916

def to_hash: -> {
  ?id: String,
  ?principal_id: String,
  ?principal_type: String,
  ?resource_id: String,
  ?resource_type: String
}