Skip to content

Commit 0ece58d

Browse files
committed
Generated swift 2021-02-04 for AIWorkSpace.
1 parent 366629a commit 0ece58d

File tree

4 files changed

+236
-5
lines changed

4 files changed

+236
-5
lines changed

AlibabacloudAIWorkSpace20210204.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |spec|
22

33
spec.name = "AlibabacloudAIWorkSpace20210204"
4-
spec.version = "4.3.0"
4+
spec.version = "4.3.1"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud AIWorkSpace (20210204) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204"

README-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
要使用 [Carthage](https://github.com/Carthage/Carthage)`AlibabacloudAIWorkSpace20210204` 集成到你的 Xcode 项目中,需要在 `Cartfile` 中定义以下内容:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.3.0"
20+
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.3.1"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.3.0"
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.3.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.3.1")
3030
]
3131
```
3232

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ English | [简体中文](README-CN.md)
1717
To integrate `AlibabacloudAIWorkSpace20210204` into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your `Cartfile`:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.3.0"
20+
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.3.1"
2121
```
2222

2323
### Swift Package Manager
@@ -26,7 +26,7 @@ To integrate `AlibabacloudAIWorkSpace20210204` into your Xcode project using [Sw
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.3.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.3.1")
3030
]
3131
```
3232

Sources/AlibabacloudAIWorkSpace20210204/Models.swift

Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,229 @@ public class Collection : Tea.TeaModel {
201201
}
202202
}
203203

204+
public class Connection : Tea.TeaModel {
205+
public class Models : Tea.TeaModel {
206+
public var displayName: String?
207+
208+
public var model: String?
209+
210+
public var modelType: String?
211+
212+
public override init() {
213+
super.init()
214+
}
215+
216+
public init(_ dict: [String: Any]) {
217+
super.init()
218+
self.fromMap(dict)
219+
}
220+
221+
public override func validate() throws -> Void {
222+
}
223+
224+
public override func toMap() -> [String : Any] {
225+
var map = super.toMap()
226+
if self.displayName != nil {
227+
map["DisplayName"] = self.displayName!
228+
}
229+
if self.model != nil {
230+
map["Model"] = self.model!
231+
}
232+
if self.modelType != nil {
233+
map["ModelType"] = self.modelType!
234+
}
235+
return map
236+
}
237+
238+
public override func fromMap(_ dict: [String: Any]) -> Void {
239+
if dict.keys.contains("DisplayName") {
240+
self.displayName = dict["DisplayName"] as! String
241+
}
242+
if dict.keys.contains("Model") {
243+
self.model = dict["Model"] as! String
244+
}
245+
if dict.keys.contains("ModelType") {
246+
self.modelType = dict["ModelType"] as! String
247+
}
248+
}
249+
}
250+
public class ResourceMeta : Tea.TeaModel {
251+
public var instanceId: String?
252+
253+
public var instanceName: String?
254+
255+
public override init() {
256+
super.init()
257+
}
258+
259+
public init(_ dict: [String: Any]) {
260+
super.init()
261+
self.fromMap(dict)
262+
}
263+
264+
public override func validate() throws -> Void {
265+
}
266+
267+
public override func toMap() -> [String : Any] {
268+
var map = super.toMap()
269+
if self.instanceId != nil {
270+
map["InstanceId"] = self.instanceId!
271+
}
272+
if self.instanceName != nil {
273+
map["InstanceName"] = self.instanceName!
274+
}
275+
return map
276+
}
277+
278+
public override func fromMap(_ dict: [String: Any]) -> Void {
279+
if dict.keys.contains("InstanceId") {
280+
self.instanceId = dict["InstanceId"] as! String
281+
}
282+
if dict.keys.contains("InstanceName") {
283+
self.instanceName = dict["InstanceName"] as! String
284+
}
285+
}
286+
}
287+
public var accessibility: String?
288+
289+
public var configs: [String: String]?
290+
291+
public var connectionId: String?
292+
293+
public var connectionName: String?
294+
295+
public var connectionType: String?
296+
297+
public var creator: String?
298+
299+
public var description_: String?
300+
301+
public var gmtCreateTime: String?
302+
303+
public var gmtModifiedTime: String?
304+
305+
public var models: [Connection.Models]?
306+
307+
public var resourceMeta: Connection.ResourceMeta?
308+
309+
public var secrets: [String: String]?
310+
311+
public var workspaceId: String?
312+
313+
public override init() {
314+
super.init()
315+
}
316+
317+
public init(_ dict: [String: Any]) {
318+
super.init()
319+
self.fromMap(dict)
320+
}
321+
322+
public override func validate() throws -> Void {
323+
try self.resourceMeta?.validate()
324+
}
325+
326+
public override func toMap() -> [String : Any] {
327+
var map = super.toMap()
328+
if self.accessibility != nil {
329+
map["Accessibility"] = self.accessibility!
330+
}
331+
if self.configs != nil {
332+
map["Configs"] = self.configs!
333+
}
334+
if self.connectionId != nil {
335+
map["ConnectionId"] = self.connectionId!
336+
}
337+
if self.connectionName != nil {
338+
map["ConnectionName"] = self.connectionName!
339+
}
340+
if self.connectionType != nil {
341+
map["ConnectionType"] = self.connectionType!
342+
}
343+
if self.creator != nil {
344+
map["Creator"] = self.creator!
345+
}
346+
if self.description_ != nil {
347+
map["Description"] = self.description_!
348+
}
349+
if self.gmtCreateTime != nil {
350+
map["GmtCreateTime"] = self.gmtCreateTime!
351+
}
352+
if self.gmtModifiedTime != nil {
353+
map["GmtModifiedTime"] = self.gmtModifiedTime!
354+
}
355+
if self.models != nil {
356+
var tmp : [Any] = []
357+
for k in self.models! {
358+
tmp.append(k.toMap())
359+
}
360+
map["Models"] = tmp
361+
}
362+
if self.resourceMeta != nil {
363+
map["ResourceMeta"] = self.resourceMeta?.toMap()
364+
}
365+
if self.secrets != nil {
366+
map["Secrets"] = self.secrets!
367+
}
368+
if self.workspaceId != nil {
369+
map["WorkspaceId"] = self.workspaceId!
370+
}
371+
return map
372+
}
373+
374+
public override func fromMap(_ dict: [String: Any]) -> Void {
375+
if dict.keys.contains("Accessibility") {
376+
self.accessibility = dict["Accessibility"] as! String
377+
}
378+
if dict.keys.contains("Configs") {
379+
self.configs = dict["Configs"] as! [String: String]
380+
}
381+
if dict.keys.contains("ConnectionId") {
382+
self.connectionId = dict["ConnectionId"] as! String
383+
}
384+
if dict.keys.contains("ConnectionName") {
385+
self.connectionName = dict["ConnectionName"] as! String
386+
}
387+
if dict.keys.contains("ConnectionType") {
388+
self.connectionType = dict["ConnectionType"] as! String
389+
}
390+
if dict.keys.contains("Creator") {
391+
self.creator = dict["Creator"] as! String
392+
}
393+
if dict.keys.contains("Description") {
394+
self.description_ = dict["Description"] as! String
395+
}
396+
if dict.keys.contains("GmtCreateTime") {
397+
self.gmtCreateTime = dict["GmtCreateTime"] as! String
398+
}
399+
if dict.keys.contains("GmtModifiedTime") {
400+
self.gmtModifiedTime = dict["GmtModifiedTime"] as! String
401+
}
402+
if dict.keys.contains("Models") {
403+
var tmp : [Connection.Models] = []
404+
for v in dict["Models"] as! [Any] {
405+
var model = Connection.Models()
406+
if v != nil {
407+
model.fromMap(v as! [String: Any])
408+
}
409+
tmp.append(model)
410+
}
411+
self.models = tmp
412+
}
413+
if dict.keys.contains("ResourceMeta") {
414+
var model = Connection.ResourceMeta()
415+
model.fromMap(dict["ResourceMeta"] as! [String: Any])
416+
self.resourceMeta = model
417+
}
418+
if dict.keys.contains("Secrets") {
419+
self.secrets = dict["Secrets"] as! [String: String]
420+
}
421+
if dict.keys.contains("WorkspaceId") {
422+
self.workspaceId = dict["WorkspaceId"] as! String
423+
}
424+
}
425+
}
426+
204427
public class Dataset : Tea.TeaModel {
205428
public var accessibility: String?
206429

@@ -599,6 +822,8 @@ public class DatasetFileMetaConentUpdate : Tea.TeaModel {
599822

600823
public var fileCreateTime: String?
601824

825+
public var fileFingerPrint: String?
826+
602827
public var fileName: String?
603828

604829
public var fileType: String?
@@ -642,6 +867,9 @@ public class DatasetFileMetaConentUpdate : Tea.TeaModel {
642867
if self.fileCreateTime != nil {
643868
map["FileCreateTime"] = self.fileCreateTime!
644869
}
870+
if self.fileFingerPrint != nil {
871+
map["FileFingerPrint"] = self.fileFingerPrint!
872+
}
645873
if self.fileName != nil {
646874
map["FileName"] = self.fileName!
647875
}
@@ -682,6 +910,9 @@ public class DatasetFileMetaConentUpdate : Tea.TeaModel {
682910
if dict.keys.contains("FileCreateTime") {
683911
self.fileCreateTime = dict["FileCreateTime"] as! String
684912
}
913+
if dict.keys.contains("FileFingerPrint") {
914+
self.fileFingerPrint = dict["FileFingerPrint"] as! String
915+
}
685916
if dict.keys.contains("FileName") {
686917
self.fileName = dict["FileName"] as! String
687918
}

0 commit comments

Comments
 (0)