Class: OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource

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_bound_to_resource

Defined Under Namespace

Modules: Source

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(id: nil, connector_id: nil, connector_name: nil, enabled: nil, permissions: nil, resource_id: nil, resource_type: nil, role_id: nil, source: nil, workspace_id: nil) ⇒ RoleBoundToResource

Returns a new instance of RoleBoundToResource.

Parameters:

  • id (defaults to: nil) —

    The ID of the resource the role was bound to. ChatGPT workspace connector resources use <workspace_id>__<connector_id>.

  • connector_id (defaults to: nil) —

    The connector ID for a ChatGPT workspace connector resource.

  • connector_name (defaults to: nil) —

    The connector display name for a ChatGPT workspace connector resource, or the connector ID when the display name could not be resolved.

  • enabled (defaults to: nil) —

    Whether the connector is enabled for the role.

  • permissions (defaults to: nil) —

    The permissions granted to the role for the resource.

  • resource_id (defaults to: nil) —

    The ID of the resource the role was bound to.

  • resource_type (defaults to: nil) —

    The type of resource the role was bound to.

  • role_id (defaults to: nil) —

    The ID of the role that was bound to the resource.

  • source (defaults to: nil) —

    The connector role mutation path that produced the event.

  • workspace_id (defaults to: nil) —

    The workspace ID for a ChatGPT workspace connector resource.

  • id: (String) (defaults to: nil)
  • connector_id: (String) (defaults to: nil)
  • connector_name: (String) (defaults to: nil)
  • enabled: (Boolean) (defaults to: nil)
  • permissions: (::Array[String]) (defaults to: nil)
  • resource_id: (String) (defaults to: nil)
  • resource_type: (String) (defaults to: nil)
  • role_id: (String) (defaults to: nil)
  • source: (OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource::source) (defaults to: nil)
  • workspace_id: (String) (defaults to: nil)


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

Instance Attribute Details

#connector_id ⇒ String?

The connector ID for a ChatGPT workspace connector resource.

Returns:

  • (String, nil)


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

optional :connector_id, String

#connector_name ⇒ String?

The connector display name for a ChatGPT workspace connector resource, or the connector ID when the display name could not be resolved.

Returns:

  • (String, nil)


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

optional :connector_name, String

#enabled ⇒ Boolean?

Whether the connector is enabled for the role.

Returns:



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

optional :enabled, OpenAI::Internal::Type::Boolean

#id ⇒ String?

The ID of the resource the role was bound to. ChatGPT workspace connector resources use <workspace_id>__<connector_id>.

Returns:

  • (String, nil)


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

optional :id, String

#permissions ⇒ ::Array[String]?

The permissions granted to the role for the resource.

Returns:

  • (::Array[String], nil)


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

optional :permissions, OpenAI::Internal::Type::ArrayOf[String]

#resource_id ⇒ String?

The ID of the resource the role was bound to.

Returns:

  • (String, nil)


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

optional :resource_id, String

#resource_type ⇒ String?

The type of resource the role was bound to.

Returns:

  • (String, nil)


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

optional :resource_type, String

#role_id ⇒ String?

The ID of the role that was bound to the resource.

Returns:

  • (String, nil)


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

optional :role_id, String

#source ⇒ OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource::source?

The connector role mutation path that produced the event.

Returns:

  • (OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource::source, nil)


2523
2524
2525
2526
# File 'lib/openai/models/admin/organization/audit_log_list_response.rb', line 2523

optional(
  :source,
  enum: -> { OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource::Source }
)

#workspace_id ⇒ String?

The workspace ID for a ChatGPT workspace connector resource.

Returns:

  • (String, nil)


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

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { ?id: String, ?connector_id: String, ?connector_name: String, ?enabled: bool, ?permissions: ::Array[String], ?resource_id: String, ?resource_type: String, ?role_id: String, ?source: OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource::source, ?workspace_id: String }

Returns:

  • ({ ?id: String, ?connector_id: String, ?connector_name: String, ?enabled: bool, ?permissions: ::Array[String], ?resource_id: String, ?resource_type: String, ?role_id: String, ?source: OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource::source, ?workspace_id: String })


3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
# File 'sig/openai/models/admin/organization/audit_log_list_response.rbs', line 3041

def to_hash: -> {
  ?id: String,
  ?connector_id: String,
  ?connector_name: String,
  ?enabled: bool,
  ?permissions: ::Array[String],
  ?resource_id: String,
  ?resource_type: String,
  ?role_id: String,
  ?source: OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource::source,
  ?workspace_id: String
}