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
Defined Under Namespace
Modules: AttributeMatcher, Permissions
Instance Attribute Summary collapse
#last_response
Class Method Summary
collapse
Instance Method Summary
collapse
-
#initialize ⇒ FederationRule
constructor
A new instance of FederationRule.
-
#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 }
==, #==, #[], #_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
#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
Returns a new instance of FederationRule.
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}
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
30
|
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 30
required :created_at, Integer
|
#description ⇒ String?
35
|
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 35
required :description, String, nil?: true
|
40
|
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 40
required :enabled, OpenAI::Internal::Type::Boolean
|
#id ⇒ String
13
|
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 13
required :id, String
|
#name ⇒ String?
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"
50
|
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 50
required :object, const: :"organization.workload_identity_federation_rule"
|
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
63
|
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 63
required :project_id, String
|
#service_account_id ⇒ String
68
|
# File 'lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb', line 68
required :service_account_id, String
|
#updated_at ⇒ 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
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)
|
# 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 }
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
}
|