Class: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp
- Defined in:
- lib/openai/models/admin/organization/external_key_create_params.rb,
sig/openai/models/admin/organization/external_key_create_params.rbs
Defined Under Namespace
Modules: Purpose
Instance Attribute Summary collapse
-
#audience ⇒ String
The aud field in the identity token OpenAI will pass in the call to the customer's GCP STS.
-
#kms_key_location ⇒ String
The region where your Key Management System master key is located.
-
#kms_key_name ⇒ String
The name of the Key Management System master key you manage.
-
#kms_key_ring_name ⇒ String
The Key Management System key ring for the master key you manage.
-
#kms_key_version ⇒ String?
An exact CryptoKeyVersion number.
-
#kms_project_id ⇒ String
The string GCP project name where your KMS resides.
-
#name ⇒ String
A friendly name to identify this config.
- #purpose ⇒ Symbol, ...
- #type ⇒ Symbol, :gcp
-
#workload_identity_pool_id ⇒ String
The pool containing the Workload Identity provider that you registered for OpenAI.
-
#workload_identity_project_number ⇒ String
The numeric GCP project number where you registered OpenAI's workload identity.
-
#workload_identity_provider_id ⇒ String
The Workload Identity provider that you registered for OpenAI.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(audience:, kms_key_location:, kms_key_name:, kms_key_ring_name:, kms_project_id:, name:, workload_identity_pool_id:, workload_identity_project_number:, workload_identity_provider_id:, kms_key_version: nil, purpose: nil, type: :gcp) ⇒ Gcp
constructor
A new instance of Gcp.
- #to_hash ⇒ { audience: String, kms_key_location: String, kms_key_name: String, kms_key_ring_name: String, kms_project_id: String, name: String, ?type: :gcp, workload_identity_pool_id: String, workload_identity_project_number: String, workload_identity_provider_id: String, ?kms_key_version: String, ?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp::purpose }
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(audience:, kms_key_location:, kms_key_name:, kms_key_ring_name:, kms_project_id:, name:, workload_identity_pool_id:, workload_identity_project_number:, workload_identity_provider_id:, kms_key_version: nil, purpose: nil, type: :gcp) ⇒ Gcp
Returns a new instance of Gcp.
|
|
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 177
|
Instance Attribute Details
#audience ⇒ String
The aud field in the identity token OpenAI will pass in the call to the customer's GCP STS. This must be the OpenAI organization ID or an API project ID that belongs to the organization.
109 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 109 required :audience, String |
#kms_key_location ⇒ String
The region where your Key Management System master key is located
115 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 115 required :kms_key_location, String |
#kms_key_name ⇒ String
The name of the Key Management System master key you manage
121 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 121 required :kms_key_name, String |
#kms_key_ring_name ⇒ String
The Key Management System key ring for the master key you manage
127 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 127 required :kms_key_ring_name, String |
#kms_key_version ⇒ String?
An exact CryptoKeyVersion number. Required for PSP decryption; not accepted for EKM.
170 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 170 optional :kms_key_version, String |
#kms_project_id ⇒ String
The string GCP project name where your KMS resides
133 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 133 required :kms_project_id, String |
#name ⇒ String
A friendly name to identify this config
139 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 139 required :name, String |
#purpose ⇒ Symbol, ...
175 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 175 optional :purpose, enum: -> { OpenAI::Admin::Organization::ExternalKeyCreateParams::Body::Gcp::Purpose } |
#type ⇒ Symbol, :gcp
144 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 144 required :type, const: :gcp |
#workload_identity_pool_id ⇒ String
The pool containing the Workload Identity provider that you registered for OpenAI
151 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 151 required :workload_identity_pool_id, String |
#workload_identity_project_number ⇒ String
The numeric GCP project number where you registered OpenAI's workload identity
157 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 157 required :workload_identity_project_number, String |
#workload_identity_provider_id ⇒ String
The Workload Identity provider that you registered for OpenAI
163 |
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 163 required :workload_identity_provider_id, String |
Instance Method Details
#to_hash ⇒ { audience: String, kms_key_location: String, kms_key_name: String, kms_key_ring_name: String, kms_project_id: String, name: String, ?type: :gcp, workload_identity_pool_id: String, workload_identity_project_number: String, workload_identity_provider_id: String, ?kms_key_version: String, ?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp::purpose }
335 336 337 338 339 340 341 342 343 344 345 346 347 348 |
# File 'sig/openai/models/admin/organization/external_key_create_params.rbs', line 335
def to_hash: -> {
audience: String,
kms_key_location: String,
kms_key_name: String,
kms_key_ring_name: String,
kms_project_id: String,
name: String,
?type: :gcp,
workload_identity_pool_id: String,
workload_identity_project_number: String,
workload_identity_provider_id: String,
?kms_key_version: String,
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp::purpose
}
|