Module: OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::Provider

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/admin/organization/external_storage_create_params.rb,
sig/openai/models/admin/organization/external_storage_create_params.rbs

Defined Under Namespace

Classes: Aws, Azure, Gcp

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::Provider::Aws, OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::Provider::Azure, OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::Provider::Gcp)



# File 'lib/openai/models/admin/organization/external_storage_create_params.rb', line 134

Instance Method Details

#initialize(account_name:, container:, resource_group:, subscription_id:, tenant_id:, type: :azure) ⇒ Object

Parameters:

  • account_name (String)
  • container (String)
  • resource_group (String)
  • subscription_id (String)
  • tenant_id (String)
  • type (Symbol, :azure) (defaults to: :azure)


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# File 'lib/openai/models/admin/organization/external_storage_create_params.rb', line 27

module Provider
  extend OpenAI::Internal::Type::Union

  discriminator :type

  variant :aws, -> { OpenAI::Admin::Organization::ExternalStorageCreateParams::Provider::Aws }

  variant :azure, -> { OpenAI::Admin::Organization::ExternalStorageCreateParams::Provider::Azure }

  variant :gcp, -> { OpenAI::Admin::Organization::ExternalStorageCreateParams::Provider::Gcp }

  class Aws < OpenAI::Internal::Type::BaseModel
    # @!attribute bucket
    #
    #   @return [String]
    required :bucket, String

    # @!attribute role_arn
    #
    #   @return [String]
    required :role_arn, String

    # @!attribute type
    #
    #   @return [Symbol, :aws]
    required :type, const: :aws

    # @!method initialize(bucket:, role_arn:, type: :aws)
    #   @param bucket [String]
    #   @param role_arn [String]
    #   @param type [Symbol, :aws]
  end

  class Azure < OpenAI::Internal::Type::BaseModel
    # @!attribute account_name
    #
    #   @return [String]
    required :account_name, String

    # @!attribute container
    #
    #   @return [String]
    required :container, String

    # @!attribute resource_group
    #
    #   @return [String]
    required :resource_group, String

    # @!attribute subscription_id
    #
    #   @return [String]
    required :subscription_id, String

    # @!attribute tenant_id
    #
    #   @return [String]
    required :tenant_id, String

    # @!attribute type
    #
    #   @return [Symbol, :azure]
    required :type, const: :azure

    # @!method initialize(account_name:, container:, resource_group:, subscription_id:, tenant_id:, type: :azure)
    #   @param account_name [String]
    #   @param container [String]
    #   @param resource_group [String]
    #   @param subscription_id [String]
    #   @param tenant_id [String]
    #   @param type [Symbol, :azure]
  end

  class Gcp < OpenAI::Internal::Type::BaseModel
    # @!attribute bucket
    #
    #   @return [String]
    required :bucket, String

    # @!attribute type
    #
    #   @return [Symbol, :gcp]
    required :type, const: :gcp

    # @!attribute workload_identity_pool_id
    #
    #   @return [String]
    required :workload_identity_pool_id, String

    # @!attribute workload_identity_project_number
    #
    #   @return [String]
    required :workload_identity_project_number, String

    # @!attribute workload_identity_provider_id
    #
    #   @return [String]
    required :workload_identity_provider_id, String

    # @!method initialize(bucket:, workload_identity_pool_id:, workload_identity_project_number:, workload_identity_provider_id:, type: :gcp)
    #   @param bucket [String]
    #   @param workload_identity_pool_id [String]
    #   @param workload_identity_project_number [String]
    #   @param workload_identity_provider_id [String]
    #   @param type [Symbol, :gcp]
  end

  # @!method self.variants
  #   @return [Array(OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::Provider::Aws, OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::Provider::Azure, OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::Provider::Gcp)]
end

#self?.variants::Array[OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::provider]

Returns:

  • (::Array[OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::provider])


137
# File 'sig/openai/models/admin/organization/external_storage_create_params.rbs', line 137

def self?.variants: -> ::Array[OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::provider]