Skip to content

Commit a886790

Browse files
committed
Updated based on latest spec.
1 parent fb2fc10 commit a886790

File tree

16 files changed

+121
-117
lines changed

16 files changed

+121
-117
lines changed

src/python/vectorize_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from vectorize_client.models.ai_platform_config_schema import AIPlatformConfigSchema
4141
from vectorize_client.models.ai_platform_connector import AIPlatformConnector
4242
from vectorize_client.models.ai_platform_connector_input import AIPlatformConnectorInput
43-
from vectorize_client.models.ai_platform_type import AIPlatformType
43+
from vectorize_client.models.ai_platform_connector_type import AIPlatformConnectorType
4444
from vectorize_client.models.ai_platform_type_for_pipeline import AIPlatformTypeForPipeline
4545
from vectorize_client.models.awss3_auth_config import AWSS3AuthConfig
4646
from vectorize_client.models.awss3_config import AWSS3Config

src/python/vectorize_client/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from vectorize_client.models.ai_platform_config_schema import AIPlatformConfigSchema
1818
from vectorize_client.models.ai_platform_connector import AIPlatformConnector
1919
from vectorize_client.models.ai_platform_connector_input import AIPlatformConnectorInput
20-
from vectorize_client.models.ai_platform_type import AIPlatformType
20+
from vectorize_client.models.ai_platform_connector_type import AIPlatformConnectorType
2121
from vectorize_client.models.ai_platform_type_for_pipeline import AIPlatformTypeForPipeline
2222
from vectorize_client.models.awss3_auth_config import AWSS3AuthConfig
2323
from vectorize_client.models.awss3_config import AWSS3Config

src/python/vectorize_client/models/ai_platform_type.py renamed to src/python/vectorize_client/models/ai_platform_connector_type.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
from typing_extensions import Self
1919

2020

21-
class AIPlatformType(str, Enum):
21+
class AIPlatformConnectorType(str, Enum):
2222
"""
23-
AIPlatformType
23+
AIPlatformConnectorType
2424
"""
2525

2626
"""
@@ -33,7 +33,7 @@ class AIPlatformType(str, Enum):
3333

3434
@classmethod
3535
def from_json(cls, json_str: str) -> Self:
36-
"""Create an instance of AIPlatformType from a JSON string"""
36+
"""Create an instance of AIPlatformConnectorType from a JSON string"""
3737
return cls(json.loads(json_str))
3838

3939

src/python/vectorize_client/models/bedrock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Bedrock(BaseModel):
2828
Bedrock
2929
""" # noqa: E501
3030
name: StrictStr = Field(description="Name of the connector")
31-
type: StrictStr = Field(description="Connector type (must be \"BEDROCK\")")
31+
type: StrictStr = Field(description="Must be \"BEDROCK\"")
3232
config: BEDROCKAuthConfig
3333
__properties: ClassVar[List[str]] = ["name", "type", "config"]
3434

src/python/vectorize_client/models/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Openai(BaseModel):
2828
Openai
2929
""" # noqa: E501
3030
name: StrictStr = Field(description="Name of the connector")
31-
type: StrictStr = Field(description="Connector type (must be \"OPENAI\")")
31+
type: StrictStr = Field(description="Must be \"OPENAI\"")
3232
config: OPENAIAuthConfig
3333
__properties: ClassVar[List[str]] = ["name", "type", "config"]
3434

src/python/vectorize_client/models/vertex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Vertex(BaseModel):
2828
Vertex
2929
""" # noqa: E501
3030
name: StrictStr = Field(description="Name of the connector")
31-
type: StrictStr = Field(description="Connector type (must be \"VERTEX\")")
31+
type: StrictStr = Field(description="Must be \"VERTEX\"")
3232
config: VERTEXAuthConfig
3333
__properties: ClassVar[List[str]] = ["name", "type", "config"]
3434

src/python/vectorize_client/models/voyage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Voyage(BaseModel):
2828
Voyage
2929
""" # noqa: E501
3030
name: StrictStr = Field(description="Name of the connector")
31-
type: StrictStr = Field(description="Connector type (must be \"VOYAGE\")")
31+
type: StrictStr = Field(description="Must be \"VOYAGE\"")
3232
config: VOYAGEAuthConfig
3333
__properties: ClassVar[List[str]] = ["name", "type", "config"]
3434

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Vectorize API
5+
* API for Vectorize services (Beta)
6+
*
7+
* The version of the OpenAPI document: 0.1.2
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
/**
17+
*
18+
* @export
19+
*/
20+
export const AIPlatformConnectorType = {
21+
Bedrock: 'BEDROCK',
22+
Vertex: 'VERTEX',
23+
Openai: 'OPENAI',
24+
Voyage: 'VOYAGE'
25+
} as const;
26+
export type AIPlatformConnectorType = typeof AIPlatformConnectorType[keyof typeof AIPlatformConnectorType];
27+
28+
29+
export function instanceOfAIPlatformConnectorType(value: any): boolean {
30+
for (const key in AIPlatformConnectorType) {
31+
if (Object.prototype.hasOwnProperty.call(AIPlatformConnectorType, key)) {
32+
if (AIPlatformConnectorType[key as keyof typeof AIPlatformConnectorType] === value) {
33+
return true;
34+
}
35+
}
36+
}
37+
return false;
38+
}
39+
40+
export function AIPlatformConnectorTypeFromJSON(json: any): AIPlatformConnectorType {
41+
return AIPlatformConnectorTypeFromJSONTyped(json, false);
42+
}
43+
44+
export function AIPlatformConnectorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatformConnectorType {
45+
return json as AIPlatformConnectorType;
46+
}
47+
48+
export function AIPlatformConnectorTypeToJSON(value?: AIPlatformConnectorType | null): any {
49+
return value as any;
50+
}
51+
52+
export function AIPlatformConnectorTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): AIPlatformConnectorType {
53+
return value as AIPlatformConnectorType;
54+
}
55+

src/ts/src/models/AIPlatformType.ts

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/ts/src/models/Bedrock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface Bedrock {
3434
*/
3535
name: string;
3636
/**
37-
* Connector type (must be "BEDROCK")
37+
* Must be "BEDROCK"
3838
* @type {string}
3939
* @memberof Bedrock
4040
*/

0 commit comments

Comments
 (0)