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, Oci

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

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

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_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Instance Method Details

#initialize(bucket:, workload_identity_pool_id:, workload_identity_project_number:, workload_identity_provider_id:, type: :gcp) ⇒ Object

Parameters:

  • bucket (String)
  • workload_identity_pool_id (String)
  • workload_identity_project_number (String)
  • workload_identity_provider_id (String)
  • type (Symbol, :gcp) (defaults to: :gcp)


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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# 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 }

  variant :oci, -> { OpenAI::Admin::Organization::ExternalStorageCreateParams::Provider::Oci }

  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

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

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

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

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

    # @!method initialize(bucket:, region:, tenancy_ocid:, type: :oci)
    #   @param bucket [String]
    #   @param region [String]
    #   @param tenancy_ocid [String]
    #   @param type [Symbol, :oci]
  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, OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::Provider::Oci)]
end