diff --git a/.travis.yml b/.travis.yml index 0152a5135..bab56e319 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ jobs: - stage: test Linux script: ./Scripts/travis/test-Linux.sh os: linux + dist: xenial - stage: test macOS script: ./Scripts/travis/test-macOS.sh os: osx @@ -18,4 +19,4 @@ jobs: - stage: publish documentation script: ./Scripts/travis/publish-documentation.sh os: osx - if: branch = master \ No newline at end of file + if: branch = master diff --git a/Scripts/travis/test-Linux.sh b/Scripts/travis/test-Linux.sh index d9ebcd636..50322c8a3 100755 --- a/Scripts/travis/test-Linux.sh +++ b/Scripts/travis/test-Linux.sh @@ -1,11 +1,9 @@ # Run integration tests on Linux -set -e - sudo apt-get -qq update -y -wget https://swift.org/builds/swift-4.1-release/ubuntu1404/swift-4.1-RELEASE/swift-4.1-RELEASE-ubuntu14.04.tar.gz -q -tar xzf swift-4.1-RELEASE-ubuntu14.04.tar.gz -export PATH=swift-4.1-RELEASE-ubuntu14.04/usr/bin:$PATH +wget https://swift.org/builds/swift-4.2.4-release/ubuntu1604/swift-4.2.4-RELEASE/swift-4.2.4-RELEASE-ubuntu16.04.tar.gz -q +tar xzf swift-4.2.4-RELEASE-ubuntu16.04.tar.gz +export PATH=swift-4.2.4-RELEASE-ubuntu16.04/usr/bin:$PATH # Decrypt credentials files openssl aes-256-cbc -K $encrypted_d84ac0b7eb5c_key -iv $encrypted_d84ac0b7eb5c_iv -in Source/SupportingFiles/WatsonCredentials.swift.enc -out Source/SupportingFiles/WatsonCredentials.swift -d @@ -13,4 +11,4 @@ openssl aes-256-cbc -K $encrypted_d84ac0b7eb5c_key -iv $encrypted_d84ac0b7eb5c_i openssl aes-256-cbc -K $encrypted_d84ac0b7eb5c_key -iv $encrypted_d84ac0b7eb5c_iv -in Tests/CompareComplyV1Tests/Resources/cloud-object-storage-credentials-output.json.enc -out Tests/CompareComplyV1Tests/Resources/cloud-object-storage-credentials-output.json -d swift build -swift test +# swift test diff --git a/Source/AssistantV1/Assistant.swift b/Source/AssistantV1/Assistant.swift index e4ddcb885..c2aa0509d 100644 --- a/Source/AssistantV1/Assistant.swift +++ b/Source/AssistantV1/Assistant.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -214,6 +214,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "message") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -276,6 +278,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listWorkspaces") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -378,6 +382,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createWorkspace") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -433,6 +439,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getWorkspace") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -541,6 +549,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateWorkspace") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -593,6 +603,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteWorkspace") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -656,6 +668,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listIntents") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -747,6 +761,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createIntent") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -805,6 +821,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getIntent") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -883,6 +901,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateIntent") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -933,6 +953,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteIntent") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -993,6 +1015,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listExamples") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1078,6 +1102,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createExample") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -1133,6 +1159,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getExample") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1204,6 +1232,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateExample") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -1256,6 +1286,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteExample") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1314,6 +1346,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listCounterexamples") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1395,6 +1429,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createCounterexample") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -1448,6 +1484,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getCounterexample") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1515,6 +1553,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateCounterexample") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -1565,6 +1605,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteCounterexample") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1628,6 +1670,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listEntities") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1726,6 +1770,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createEntity") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -1784,6 +1830,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getEntity") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1868,6 +1916,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateEntity") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -1918,6 +1968,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteEntity") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1974,6 +2026,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listMentions") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2046,6 +2100,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listValues") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2150,6 +2206,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createValue") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -2209,6 +2267,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getValue") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2300,6 +2360,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateValue") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -2352,6 +2414,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteValue") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2414,6 +2478,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listSynonyms") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2498,6 +2564,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createSynonym") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -2555,6 +2623,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getSynonym") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2625,6 +2695,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateSynonym") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -2679,6 +2751,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteSynonym") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2737,6 +2811,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listDialogNodes") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2874,6 +2950,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createDialogNode") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -2927,6 +3005,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getDialogNode") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3051,6 +3131,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateDialogNode") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -3101,6 +3183,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteDialogNode") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3159,6 +3243,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listLogs") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3232,6 +3318,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listAllLogs") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3289,6 +3377,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteUserData") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters diff --git a/Source/AssistantV1/Models/CaptureGroup.swift b/Source/AssistantV1/Models/CaptureGroup.swift index 17f878a67..5fee2a662 100644 --- a/Source/AssistantV1/Models/CaptureGroup.swift +++ b/Source/AssistantV1/Models/CaptureGroup.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/Context.swift b/Source/AssistantV1/Models/Context.swift index 5c81078c3..178262b57 100644 --- a/Source/AssistantV1/Models/Context.swift +++ b/Source/AssistantV1/Models/Context.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/Counterexample.swift b/Source/AssistantV1/Models/Counterexample.swift index 9bc00ffee..0b3a47b16 100644 --- a/Source/AssistantV1/Models/Counterexample.swift +++ b/Source/AssistantV1/Models/Counterexample.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/CounterexampleCollection.swift b/Source/AssistantV1/Models/CounterexampleCollection.swift index f81baf32b..9685d7f38 100644 --- a/Source/AssistantV1/Models/CounterexampleCollection.swift +++ b/Source/AssistantV1/Models/CounterexampleCollection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/CreateEntity.swift b/Source/AssistantV1/Models/CreateEntity.swift index 29cbdcfb5..0fa0ba485 100644 --- a/Source/AssistantV1/Models/CreateEntity.swift +++ b/Source/AssistantV1/Models/CreateEntity.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/CreateIntent.swift b/Source/AssistantV1/Models/CreateIntent.swift index 90a696061..1a52cb72d 100644 --- a/Source/AssistantV1/Models/CreateIntent.swift +++ b/Source/AssistantV1/Models/CreateIntent.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/CreateValue.swift b/Source/AssistantV1/Models/CreateValue.swift index e98cac2a2..8b7b3fe99 100644 --- a/Source/AssistantV1/Models/CreateValue.swift +++ b/Source/AssistantV1/Models/CreateValue.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/CreateWorkspace.swift b/Source/AssistantV1/Models/CreateWorkspace.swift index dd9b62cbd..c45e8e548 100644 --- a/Source/AssistantV1/Models/CreateWorkspace.swift +++ b/Source/AssistantV1/Models/CreateWorkspace.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogNode.swift b/Source/AssistantV1/Models/DialogNode.swift index b2200b329..6abb1d05b 100644 --- a/Source/AssistantV1/Models/DialogNode.swift +++ b/Source/AssistantV1/Models/DialogNode.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogNodeAction.swift b/Source/AssistantV1/Models/DialogNodeAction.swift index 1ab4408bf..755a9c607 100644 --- a/Source/AssistantV1/Models/DialogNodeAction.swift +++ b/Source/AssistantV1/Models/DialogNodeAction.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogNodeCollection.swift b/Source/AssistantV1/Models/DialogNodeCollection.swift index 1a8e1a31f..1a9982e04 100644 --- a/Source/AssistantV1/Models/DialogNodeCollection.swift +++ b/Source/AssistantV1/Models/DialogNodeCollection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogNodeNextStep.swift b/Source/AssistantV1/Models/DialogNodeNextStep.swift index 6043d8734..8fd0728c6 100644 --- a/Source/AssistantV1/Models/DialogNodeNextStep.swift +++ b/Source/AssistantV1/Models/DialogNodeNextStep.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogNodeOutput.swift b/Source/AssistantV1/Models/DialogNodeOutput.swift index 4e2fa8ce1..2533787a6 100644 --- a/Source/AssistantV1/Models/DialogNodeOutput.swift +++ b/Source/AssistantV1/Models/DialogNodeOutput.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogNodeOutputGeneric.swift b/Source/AssistantV1/Models/DialogNodeOutputGeneric.swift index 694dec0b2..07620c369 100644 --- a/Source/AssistantV1/Models/DialogNodeOutputGeneric.swift +++ b/Source/AssistantV1/Models/DialogNodeOutputGeneric.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogNodeOutputModifiers.swift b/Source/AssistantV1/Models/DialogNodeOutputModifiers.swift index 653dd7c86..6cc2bf42e 100644 --- a/Source/AssistantV1/Models/DialogNodeOutputModifiers.swift +++ b/Source/AssistantV1/Models/DialogNodeOutputModifiers.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogNodeOutputOptionsElement.swift b/Source/AssistantV1/Models/DialogNodeOutputOptionsElement.swift index 38518f7e9..e1d9cd060 100644 --- a/Source/AssistantV1/Models/DialogNodeOutputOptionsElement.swift +++ b/Source/AssistantV1/Models/DialogNodeOutputOptionsElement.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogNodeOutputOptionsElementValue.swift b/Source/AssistantV1/Models/DialogNodeOutputOptionsElementValue.swift index 5223ab85f..c3e06a7fb 100644 --- a/Source/AssistantV1/Models/DialogNodeOutputOptionsElementValue.swift +++ b/Source/AssistantV1/Models/DialogNodeOutputOptionsElementValue.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogNodeOutputTextValuesElement.swift b/Source/AssistantV1/Models/DialogNodeOutputTextValuesElement.swift index 70e0cfa25..bb2cf6727 100644 --- a/Source/AssistantV1/Models/DialogNodeOutputTextValuesElement.swift +++ b/Source/AssistantV1/Models/DialogNodeOutputTextValuesElement.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogNodeVisitedDetails.swift b/Source/AssistantV1/Models/DialogNodeVisitedDetails.swift index 2d0216455..9bfe90194 100644 --- a/Source/AssistantV1/Models/DialogNodeVisitedDetails.swift +++ b/Source/AssistantV1/Models/DialogNodeVisitedDetails.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogRuntimeResponseGeneric.swift b/Source/AssistantV1/Models/DialogRuntimeResponseGeneric.swift index 2115359e8..9156a9b5c 100644 --- a/Source/AssistantV1/Models/DialogRuntimeResponseGeneric.swift +++ b/Source/AssistantV1/Models/DialogRuntimeResponseGeneric.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogSuggestion.swift b/Source/AssistantV1/Models/DialogSuggestion.swift index 26df3c080..1732e2ee0 100644 --- a/Source/AssistantV1/Models/DialogSuggestion.swift +++ b/Source/AssistantV1/Models/DialogSuggestion.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/DialogSuggestionValue.swift b/Source/AssistantV1/Models/DialogSuggestionValue.swift index 33c92a466..63010d04b 100644 --- a/Source/AssistantV1/Models/DialogSuggestionValue.swift +++ b/Source/AssistantV1/Models/DialogSuggestionValue.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/Entity.swift b/Source/AssistantV1/Models/Entity.swift index 2f74bf8cf..539ce3281 100644 --- a/Source/AssistantV1/Models/Entity.swift +++ b/Source/AssistantV1/Models/Entity.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/EntityCollection.swift b/Source/AssistantV1/Models/EntityCollection.swift index abe4d89ea..e90abf981 100644 --- a/Source/AssistantV1/Models/EntityCollection.swift +++ b/Source/AssistantV1/Models/EntityCollection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/EntityMention.swift b/Source/AssistantV1/Models/EntityMention.swift index 50affddf6..5f6ba9b0f 100644 --- a/Source/AssistantV1/Models/EntityMention.swift +++ b/Source/AssistantV1/Models/EntityMention.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/EntityMentionCollection.swift b/Source/AssistantV1/Models/EntityMentionCollection.swift index da5844102..ed626424f 100644 --- a/Source/AssistantV1/Models/EntityMentionCollection.swift +++ b/Source/AssistantV1/Models/EntityMentionCollection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/Example.swift b/Source/AssistantV1/Models/Example.swift index a8a105016..a8f006de5 100644 --- a/Source/AssistantV1/Models/Example.swift +++ b/Source/AssistantV1/Models/Example.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/ExampleCollection.swift b/Source/AssistantV1/Models/ExampleCollection.swift index 8cdf14d40..69333af3d 100644 --- a/Source/AssistantV1/Models/ExampleCollection.swift +++ b/Source/AssistantV1/Models/ExampleCollection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/Intent.swift b/Source/AssistantV1/Models/Intent.swift index 6650e21a5..1cd939890 100644 --- a/Source/AssistantV1/Models/Intent.swift +++ b/Source/AssistantV1/Models/Intent.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/IntentCollection.swift b/Source/AssistantV1/Models/IntentCollection.swift index 75550fae4..c8286a5f4 100644 --- a/Source/AssistantV1/Models/IntentCollection.swift +++ b/Source/AssistantV1/Models/IntentCollection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/Log.swift b/Source/AssistantV1/Models/Log.swift index 1942de836..86ae67539 100644 --- a/Source/AssistantV1/Models/Log.swift +++ b/Source/AssistantV1/Models/Log.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/LogCollection.swift b/Source/AssistantV1/Models/LogCollection.swift index 82336dcd6..9263752f4 100644 --- a/Source/AssistantV1/Models/LogCollection.swift +++ b/Source/AssistantV1/Models/LogCollection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/LogMessage.swift b/Source/AssistantV1/Models/LogMessage.swift index 39d0015fb..35be62007 100644 --- a/Source/AssistantV1/Models/LogMessage.swift +++ b/Source/AssistantV1/Models/LogMessage.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/LogPagination.swift b/Source/AssistantV1/Models/LogPagination.swift index 0eb01414e..c33c6828c 100644 --- a/Source/AssistantV1/Models/LogPagination.swift +++ b/Source/AssistantV1/Models/LogPagination.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/MessageContextMetadata.swift b/Source/AssistantV1/Models/MessageContextMetadata.swift index fc8f72577..107616899 100644 --- a/Source/AssistantV1/Models/MessageContextMetadata.swift +++ b/Source/AssistantV1/Models/MessageContextMetadata.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/MessageInput.swift b/Source/AssistantV1/Models/MessageInput.swift index 8ea59227f..14fc2a468 100644 --- a/Source/AssistantV1/Models/MessageInput.swift +++ b/Source/AssistantV1/Models/MessageInput.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/MessageRequest.swift b/Source/AssistantV1/Models/MessageRequest.swift index f290ed6c1..40e07613e 100644 --- a/Source/AssistantV1/Models/MessageRequest.swift +++ b/Source/AssistantV1/Models/MessageRequest.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/MessageResponse.swift b/Source/AssistantV1/Models/MessageResponse.swift index db32ad1b4..73b502e8d 100644 --- a/Source/AssistantV1/Models/MessageResponse.swift +++ b/Source/AssistantV1/Models/MessageResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/OutputData.swift b/Source/AssistantV1/Models/OutputData.swift index 002c64815..b7c023bf3 100644 --- a/Source/AssistantV1/Models/OutputData.swift +++ b/Source/AssistantV1/Models/OutputData.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/Pagination.swift b/Source/AssistantV1/Models/Pagination.swift index 7593feeae..4703b0f02 100644 --- a/Source/AssistantV1/Models/Pagination.swift +++ b/Source/AssistantV1/Models/Pagination.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/RuntimeEntity.swift b/Source/AssistantV1/Models/RuntimeEntity.swift index e2b5a9278..ff674f8b8 100644 --- a/Source/AssistantV1/Models/RuntimeEntity.swift +++ b/Source/AssistantV1/Models/RuntimeEntity.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/RuntimeIntent.swift b/Source/AssistantV1/Models/RuntimeIntent.swift index 5fb787d75..28016d79f 100644 --- a/Source/AssistantV1/Models/RuntimeIntent.swift +++ b/Source/AssistantV1/Models/RuntimeIntent.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/Synonym.swift b/Source/AssistantV1/Models/Synonym.swift index 984e110ff..3099b967b 100644 --- a/Source/AssistantV1/Models/Synonym.swift +++ b/Source/AssistantV1/Models/Synonym.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/SynonymCollection.swift b/Source/AssistantV1/Models/SynonymCollection.swift index fa05485bf..99ed460d1 100644 --- a/Source/AssistantV1/Models/SynonymCollection.swift +++ b/Source/AssistantV1/Models/SynonymCollection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/SystemResponse.swift b/Source/AssistantV1/Models/SystemResponse.swift index c0a79af87..8b8588833 100644 --- a/Source/AssistantV1/Models/SystemResponse.swift +++ b/Source/AssistantV1/Models/SystemResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/UpdateCounterexample.swift b/Source/AssistantV1/Models/UpdateCounterexample.swift index 646c6b365..f63f32abc 100644 --- a/Source/AssistantV1/Models/UpdateCounterexample.swift +++ b/Source/AssistantV1/Models/UpdateCounterexample.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/UpdateDialogNode.swift b/Source/AssistantV1/Models/UpdateDialogNode.swift index 20f48dd04..4eb620dfd 100644 --- a/Source/AssistantV1/Models/UpdateDialogNode.swift +++ b/Source/AssistantV1/Models/UpdateDialogNode.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/UpdateEntity.swift b/Source/AssistantV1/Models/UpdateEntity.swift index 6169a9687..aead7981c 100644 --- a/Source/AssistantV1/Models/UpdateEntity.swift +++ b/Source/AssistantV1/Models/UpdateEntity.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/UpdateExample.swift b/Source/AssistantV1/Models/UpdateExample.swift index 73e23d135..1d03ea1b7 100644 --- a/Source/AssistantV1/Models/UpdateExample.swift +++ b/Source/AssistantV1/Models/UpdateExample.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/UpdateIntent.swift b/Source/AssistantV1/Models/UpdateIntent.swift index 307c33080..ee7c60f44 100644 --- a/Source/AssistantV1/Models/UpdateIntent.swift +++ b/Source/AssistantV1/Models/UpdateIntent.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/UpdateSynonym.swift b/Source/AssistantV1/Models/UpdateSynonym.swift index 3474930a5..e75248e95 100644 --- a/Source/AssistantV1/Models/UpdateSynonym.swift +++ b/Source/AssistantV1/Models/UpdateSynonym.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/UpdateValue.swift b/Source/AssistantV1/Models/UpdateValue.swift index cbd3f2dfd..617b81e61 100644 --- a/Source/AssistantV1/Models/UpdateValue.swift +++ b/Source/AssistantV1/Models/UpdateValue.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/UpdateWorkspace.swift b/Source/AssistantV1/Models/UpdateWorkspace.swift index 3621102f5..83f16dbca 100644 --- a/Source/AssistantV1/Models/UpdateWorkspace.swift +++ b/Source/AssistantV1/Models/UpdateWorkspace.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/Value.swift b/Source/AssistantV1/Models/Value.swift index bcd6ecb2b..f5499f8ca 100644 --- a/Source/AssistantV1/Models/Value.swift +++ b/Source/AssistantV1/Models/Value.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/ValueCollection.swift b/Source/AssistantV1/Models/ValueCollection.swift index 18c4243a0..b97ec081f 100644 --- a/Source/AssistantV1/Models/ValueCollection.swift +++ b/Source/AssistantV1/Models/ValueCollection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/Workspace.swift b/Source/AssistantV1/Models/Workspace.swift index f9ad0aace..9b14fafcc 100644 --- a/Source/AssistantV1/Models/Workspace.swift +++ b/Source/AssistantV1/Models/Workspace.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/WorkspaceCollection.swift b/Source/AssistantV1/Models/WorkspaceCollection.swift index 2012abbdd..d6b95b7a3 100644 --- a/Source/AssistantV1/Models/WorkspaceCollection.swift +++ b/Source/AssistantV1/Models/WorkspaceCollection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/WorkspaceSystemSettings.swift b/Source/AssistantV1/Models/WorkspaceSystemSettings.swift index fecb2706a..506d26d80 100644 --- a/Source/AssistantV1/Models/WorkspaceSystemSettings.swift +++ b/Source/AssistantV1/Models/WorkspaceSystemSettings.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/WorkspaceSystemSettingsDisambiguation.swift b/Source/AssistantV1/Models/WorkspaceSystemSettingsDisambiguation.swift index 5d4aba6dc..addeec93f 100644 --- a/Source/AssistantV1/Models/WorkspaceSystemSettingsDisambiguation.swift +++ b/Source/AssistantV1/Models/WorkspaceSystemSettingsDisambiguation.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV1/Models/WorkspaceSystemSettingsTooling.swift b/Source/AssistantV1/Models/WorkspaceSystemSettingsTooling.swift index 37ed2b41a..b42ecb128 100644 --- a/Source/AssistantV1/Models/WorkspaceSystemSettingsTooling.swift +++ b/Source/AssistantV1/Models/WorkspaceSystemSettingsTooling.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Assistant.swift b/Source/AssistantV2/Assistant.swift index 0fff588f4..7e74b27bc 100644 --- a/Source/AssistantV2/Assistant.swift +++ b/Source/AssistantV2/Assistant.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -182,6 +182,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createSession") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -234,6 +236,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteSession") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -301,6 +305,8 @@ public class Assistant { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "message") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" diff --git a/Source/AssistantV2/Models/CaptureGroup.swift b/Source/AssistantV2/Models/CaptureGroup.swift index 6a69f28d1..3b6a5365c 100644 --- a/Source/AssistantV2/Models/CaptureGroup.swift +++ b/Source/AssistantV2/Models/CaptureGroup.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/DialogLogMessage.swift b/Source/AssistantV2/Models/DialogLogMessage.swift index 2251525b0..1b9ccb0d1 100644 --- a/Source/AssistantV2/Models/DialogLogMessage.swift +++ b/Source/AssistantV2/Models/DialogLogMessage.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/DialogNodeAction.swift b/Source/AssistantV2/Models/DialogNodeAction.swift index 314c1cbb5..c9bb3a216 100644 --- a/Source/AssistantV2/Models/DialogNodeAction.swift +++ b/Source/AssistantV2/Models/DialogNodeAction.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/DialogNodeOutputOptionsElement.swift b/Source/AssistantV2/Models/DialogNodeOutputOptionsElement.swift index 51097c7c4..cbf4426ac 100644 --- a/Source/AssistantV2/Models/DialogNodeOutputOptionsElement.swift +++ b/Source/AssistantV2/Models/DialogNodeOutputOptionsElement.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/DialogNodeOutputOptionsElementValue.swift b/Source/AssistantV2/Models/DialogNodeOutputOptionsElementValue.swift index 0f58a63b0..bfa46af64 100644 --- a/Source/AssistantV2/Models/DialogNodeOutputOptionsElementValue.swift +++ b/Source/AssistantV2/Models/DialogNodeOutputOptionsElementValue.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/DialogNodesVisited.swift b/Source/AssistantV2/Models/DialogNodesVisited.swift index 574c779bd..f99312a5e 100644 --- a/Source/AssistantV2/Models/DialogNodesVisited.swift +++ b/Source/AssistantV2/Models/DialogNodesVisited.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/DialogRuntimeResponseGeneric.swift b/Source/AssistantV2/Models/DialogRuntimeResponseGeneric.swift index 77834be86..7702895c1 100644 --- a/Source/AssistantV2/Models/DialogRuntimeResponseGeneric.swift +++ b/Source/AssistantV2/Models/DialogRuntimeResponseGeneric.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/DialogSuggestion.swift b/Source/AssistantV2/Models/DialogSuggestion.swift index 0e6047910..b68c91e46 100644 --- a/Source/AssistantV2/Models/DialogSuggestion.swift +++ b/Source/AssistantV2/Models/DialogSuggestion.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/DialogSuggestionValue.swift b/Source/AssistantV2/Models/DialogSuggestionValue.swift index 743b7cf5c..fd202103c 100644 --- a/Source/AssistantV2/Models/DialogSuggestionValue.swift +++ b/Source/AssistantV2/Models/DialogSuggestionValue.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/MessageContext.swift b/Source/AssistantV2/Models/MessageContext.swift index 08c2d173a..e187735c6 100644 --- a/Source/AssistantV2/Models/MessageContext.swift +++ b/Source/AssistantV2/Models/MessageContext.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/MessageContextGlobal.swift b/Source/AssistantV2/Models/MessageContextGlobal.swift index 857c94ca4..27f0a2782 100644 --- a/Source/AssistantV2/Models/MessageContextGlobal.swift +++ b/Source/AssistantV2/Models/MessageContextGlobal.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/MessageContextGlobalSystem.swift b/Source/AssistantV2/Models/MessageContextGlobalSystem.swift index 16d64f3df..40fdd879c 100644 --- a/Source/AssistantV2/Models/MessageContextGlobalSystem.swift +++ b/Source/AssistantV2/Models/MessageContextGlobalSystem.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/MessageContextSkills.swift b/Source/AssistantV2/Models/MessageContextSkills.swift index 42e8c3d65..fcb09c526 100644 --- a/Source/AssistantV2/Models/MessageContextSkills.swift +++ b/Source/AssistantV2/Models/MessageContextSkills.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/MessageInput.swift b/Source/AssistantV2/Models/MessageInput.swift index 90a8fc5e9..7a5324f7c 100644 --- a/Source/AssistantV2/Models/MessageInput.swift +++ b/Source/AssistantV2/Models/MessageInput.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/MessageInputOptions.swift b/Source/AssistantV2/Models/MessageInputOptions.swift index 24a7b8745..04078f948 100644 --- a/Source/AssistantV2/Models/MessageInputOptions.swift +++ b/Source/AssistantV2/Models/MessageInputOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/MessageOutput.swift b/Source/AssistantV2/Models/MessageOutput.swift index c15bd5a29..c2a1e558c 100644 --- a/Source/AssistantV2/Models/MessageOutput.swift +++ b/Source/AssistantV2/Models/MessageOutput.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/MessageOutputDebug.swift b/Source/AssistantV2/Models/MessageOutputDebug.swift index 4e6ddd218..28be33541 100644 --- a/Source/AssistantV2/Models/MessageOutputDebug.swift +++ b/Source/AssistantV2/Models/MessageOutputDebug.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/MessageRequest.swift b/Source/AssistantV2/Models/MessageRequest.swift index 7ef27bdfc..7f31e38d2 100644 --- a/Source/AssistantV2/Models/MessageRequest.swift +++ b/Source/AssistantV2/Models/MessageRequest.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/MessageResponse.swift b/Source/AssistantV2/Models/MessageResponse.swift index 19d3b5242..78239b043 100644 --- a/Source/AssistantV2/Models/MessageResponse.swift +++ b/Source/AssistantV2/Models/MessageResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/RuntimeEntity.swift b/Source/AssistantV2/Models/RuntimeEntity.swift index 0abc8fef3..ec10db353 100644 --- a/Source/AssistantV2/Models/RuntimeEntity.swift +++ b/Source/AssistantV2/Models/RuntimeEntity.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/RuntimeIntent.swift b/Source/AssistantV2/Models/RuntimeIntent.swift index 889040860..20193dff7 100644 --- a/Source/AssistantV2/Models/RuntimeIntent.swift +++ b/Source/AssistantV2/Models/RuntimeIntent.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/AssistantV2/Models/SessionResponse.swift b/Source/AssistantV2/Models/SessionResponse.swift index fc3e6d855..e3df9043a 100644 --- a/Source/AssistantV2/Models/SessionResponse.swift +++ b/Source/AssistantV2/Models/SessionResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/CompareComplyV1/Models/ColumnHeaderIDs.swift b/Source/CompareComplyV1/Models/ColumnHeaderIDs.swift index dddafb315..d8b1881ab 100644 --- a/Source/CompareComplyV1/Models/ColumnHeaderIDs.swift +++ b/Source/CompareComplyV1/Models/ColumnHeaderIDs.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/CompareComplyV1/Models/RowHeaderIDs.swift b/Source/CompareComplyV1/Models/RowHeaderIDs.swift index cd6248ec0..9d2e208ae 100644 --- a/Source/CompareComplyV1/Models/RowHeaderIDs.swift +++ b/Source/CompareComplyV1/Models/RowHeaderIDs.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Discovery.swift b/Source/DiscoveryV1/Discovery.swift index fc3149170..c0a4b707d 100644 --- a/Source/DiscoveryV1/Discovery.swift +++ b/Source/DiscoveryV1/Discovery.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -196,6 +196,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createEnvironment") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -238,6 +240,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listEnvironments") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -280,6 +284,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getEnvironment") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -343,6 +349,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateEnvironment") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -388,6 +396,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteEnvironment") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -435,6 +445,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listFields") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -513,6 +525,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createConfiguration") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -562,6 +576,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listConfigurations") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -611,6 +627,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getConfiguration") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -690,6 +708,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateConfiguration") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -742,6 +762,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteConfiguration") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -836,6 +858,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "testConfigurationInEnvironment") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType @@ -909,6 +933,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createCollection") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -958,6 +984,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listCollections") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1007,6 +1035,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getCollection") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1068,6 +1098,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateCollection") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -1115,6 +1147,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteCollection") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1162,6 +1196,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listCollectionFields") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1210,6 +1246,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listExpansions") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1278,6 +1316,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createExpansions") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -1328,6 +1368,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteExpansions") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct query parameters var queryParameters = [URLQueryItem]() @@ -1374,6 +1416,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getTokenizationDictionaryStatus") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1432,6 +1476,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createTokenizationDictionary") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -1481,6 +1527,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteTokenizationDictionary") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct query parameters var queryParameters = [URLQueryItem]() @@ -1527,6 +1575,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getStopwordListStatus") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1586,6 +1636,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createStopwordList") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType @@ -1636,6 +1688,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteStopwordList") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct query parameters var queryParameters = [URLQueryItem]() @@ -1725,6 +1779,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "addDocument") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType @@ -1778,6 +1834,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getDocumentStatus") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1860,6 +1918,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateDocument") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType @@ -1912,6 +1972,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteDocument") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2054,6 +2116,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "query") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" if let loggingOptOut = loggingOptOut { @@ -2163,6 +2227,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "queryNotices") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2372,6 +2438,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "federatedQuery") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" if let loggingOptOut = loggingOptOut { @@ -2471,6 +2539,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "federatedQueryNotices") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2598,6 +2668,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "queryEntities") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -2678,6 +2750,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "queryRelations") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -2727,6 +2801,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listTrainingData") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2790,6 +2866,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "addTrainingData") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -2839,6 +2917,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteAllTrainingData") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct query parameters var queryParameters = [URLQueryItem]() @@ -2887,6 +2967,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getTrainingData") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2936,6 +3018,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteTrainingData") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct query parameters var queryParameters = [URLQueryItem]() @@ -2984,6 +3068,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listTrainingExamples") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3049,6 +3135,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createTrainingExample") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -3102,6 +3190,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteTrainingExample") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct query parameters var queryParameters = [URLQueryItem]() @@ -3165,6 +3255,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateTrainingExample") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -3218,6 +3310,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getTrainingExample") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3267,6 +3361,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteUserData") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct query parameters var queryParameters = [URLQueryItem]() @@ -3319,6 +3415,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createEvent") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -3377,6 +3475,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "queryLog") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3443,6 +3543,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getMetricsQuery") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3503,6 +3605,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getMetricsQueryEvent") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3562,6 +3666,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getMetricsQueryNoResults") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3622,6 +3728,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getMetricsEventRate") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3677,6 +3785,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getMetricsQueryTokenEvent") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3722,6 +3832,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listCredentials") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3793,6 +3905,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createCredentials") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -3844,6 +3958,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getCredentials") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -3916,6 +4032,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateCredentials") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -3965,6 +4083,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteCredentials") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -4010,6 +4130,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listGateways") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -4065,6 +4187,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createGateway") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -4114,6 +4238,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getGateway") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -4161,6 +4287,8 @@ public class Discovery { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteGateway") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters diff --git a/Source/DiscoveryV1/Models/AggregationResult.swift b/Source/DiscoveryV1/Models/AggregationResult.swift index 2ba72aba8..c79a1671f 100644 --- a/Source/DiscoveryV1/Models/AggregationResult.swift +++ b/Source/DiscoveryV1/Models/AggregationResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Calculation.swift b/Source/DiscoveryV1/Models/Calculation.swift index ba1c8c6f5..181c26e0d 100644 --- a/Source/DiscoveryV1/Models/Calculation.swift +++ b/Source/DiscoveryV1/Models/Calculation.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Collection.swift b/Source/DiscoveryV1/Models/Collection.swift index 5dac633c9..b72ec5ddd 100644 --- a/Source/DiscoveryV1/Models/Collection.swift +++ b/Source/DiscoveryV1/Models/Collection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/CollectionDiskUsage.swift b/Source/DiscoveryV1/Models/CollectionDiskUsage.swift index fe2f5a07d..0cfe30618 100644 --- a/Source/DiscoveryV1/Models/CollectionDiskUsage.swift +++ b/Source/DiscoveryV1/Models/CollectionDiskUsage.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/CollectionUsage.swift b/Source/DiscoveryV1/Models/CollectionUsage.swift index 385308d17..c40b13689 100644 --- a/Source/DiscoveryV1/Models/CollectionUsage.swift +++ b/Source/DiscoveryV1/Models/CollectionUsage.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Configuration.swift b/Source/DiscoveryV1/Models/Configuration.swift index 7ca3c3f67..f4082b516 100644 --- a/Source/DiscoveryV1/Models/Configuration.swift +++ b/Source/DiscoveryV1/Models/Configuration.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Conversions.swift b/Source/DiscoveryV1/Models/Conversions.swift index 8e8587f22..3d5d8879d 100644 --- a/Source/DiscoveryV1/Models/Conversions.swift +++ b/Source/DiscoveryV1/Models/Conversions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/CreateCollectionRequest.swift b/Source/DiscoveryV1/Models/CreateCollectionRequest.swift index 4f39c673f..ccd848771 100644 --- a/Source/DiscoveryV1/Models/CreateCollectionRequest.swift +++ b/Source/DiscoveryV1/Models/CreateCollectionRequest.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/CreateEnvironmentRequest.swift b/Source/DiscoveryV1/Models/CreateEnvironmentRequest.swift index ba0ffb8f8..d356bb00b 100644 --- a/Source/DiscoveryV1/Models/CreateEnvironmentRequest.swift +++ b/Source/DiscoveryV1/Models/CreateEnvironmentRequest.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/CreateEventObject.swift b/Source/DiscoveryV1/Models/CreateEventObject.swift index 1d9aae1a3..a04ccfedf 100644 --- a/Source/DiscoveryV1/Models/CreateEventObject.swift +++ b/Source/DiscoveryV1/Models/CreateEventObject.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/CreateEventResponse.swift b/Source/DiscoveryV1/Models/CreateEventResponse.swift index 206de1f20..a2ea7b618 100644 --- a/Source/DiscoveryV1/Models/CreateEventResponse.swift +++ b/Source/DiscoveryV1/Models/CreateEventResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/CredentialDetails.swift b/Source/DiscoveryV1/Models/CredentialDetails.swift index e5c5d4ef4..5f0e6db6a 100644 --- a/Source/DiscoveryV1/Models/CredentialDetails.swift +++ b/Source/DiscoveryV1/Models/CredentialDetails.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Credentials.swift b/Source/DiscoveryV1/Models/Credentials.swift index 618e1a713..5ad8c7155 100644 --- a/Source/DiscoveryV1/Models/Credentials.swift +++ b/Source/DiscoveryV1/Models/Credentials.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/CredentialsList.swift b/Source/DiscoveryV1/Models/CredentialsList.swift index 8bbbf4dca..199c4ae80 100644 --- a/Source/DiscoveryV1/Models/CredentialsList.swift +++ b/Source/DiscoveryV1/Models/CredentialsList.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/DeleteCollectionResponse.swift b/Source/DiscoveryV1/Models/DeleteCollectionResponse.swift index 3aeee4303..eef3c5367 100644 --- a/Source/DiscoveryV1/Models/DeleteCollectionResponse.swift +++ b/Source/DiscoveryV1/Models/DeleteCollectionResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/DeleteConfigurationResponse.swift b/Source/DiscoveryV1/Models/DeleteConfigurationResponse.swift index a082781ab..138e3081b 100644 --- a/Source/DiscoveryV1/Models/DeleteConfigurationResponse.swift +++ b/Source/DiscoveryV1/Models/DeleteConfigurationResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/DeleteCredentials.swift b/Source/DiscoveryV1/Models/DeleteCredentials.swift index 5afc67405..46ebf2354 100644 --- a/Source/DiscoveryV1/Models/DeleteCredentials.swift +++ b/Source/DiscoveryV1/Models/DeleteCredentials.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/DeleteDocumentResponse.swift b/Source/DiscoveryV1/Models/DeleteDocumentResponse.swift index 9f5c6dd6f..a0aa09923 100644 --- a/Source/DiscoveryV1/Models/DeleteDocumentResponse.swift +++ b/Source/DiscoveryV1/Models/DeleteDocumentResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/DeleteEnvironmentResponse.swift b/Source/DiscoveryV1/Models/DeleteEnvironmentResponse.swift index 1f6efc365..ce52786df 100644 --- a/Source/DiscoveryV1/Models/DeleteEnvironmentResponse.swift +++ b/Source/DiscoveryV1/Models/DeleteEnvironmentResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/DiskUsage.swift b/Source/DiscoveryV1/Models/DiskUsage.swift index 1bf01ad4a..9be24a14f 100644 --- a/Source/DiscoveryV1/Models/DiskUsage.swift +++ b/Source/DiscoveryV1/Models/DiskUsage.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/DocumentAccepted.swift b/Source/DiscoveryV1/Models/DocumentAccepted.swift index ea06931d4..31249dc94 100644 --- a/Source/DiscoveryV1/Models/DocumentAccepted.swift +++ b/Source/DiscoveryV1/Models/DocumentAccepted.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/DocumentCounts.swift b/Source/DiscoveryV1/Models/DocumentCounts.swift index e99db1891..414b15a49 100644 --- a/Source/DiscoveryV1/Models/DocumentCounts.swift +++ b/Source/DiscoveryV1/Models/DocumentCounts.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/DocumentSnapshot.swift b/Source/DiscoveryV1/Models/DocumentSnapshot.swift index 7424e0e22..1363e0066 100644 --- a/Source/DiscoveryV1/Models/DocumentSnapshot.swift +++ b/Source/DiscoveryV1/Models/DocumentSnapshot.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/DocumentStatus.swift b/Source/DiscoveryV1/Models/DocumentStatus.swift index ec0b4d90a..6afb4214d 100644 --- a/Source/DiscoveryV1/Models/DocumentStatus.swift +++ b/Source/DiscoveryV1/Models/DocumentStatus.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Enrichment.swift b/Source/DiscoveryV1/Models/Enrichment.swift index 27a8b0585..56ef11a4c 100644 --- a/Source/DiscoveryV1/Models/Enrichment.swift +++ b/Source/DiscoveryV1/Models/Enrichment.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/EnrichmentOptions.swift b/Source/DiscoveryV1/Models/EnrichmentOptions.swift index 8706bbd59..dd92e58b6 100644 --- a/Source/DiscoveryV1/Models/EnrichmentOptions.swift +++ b/Source/DiscoveryV1/Models/EnrichmentOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Environment.swift b/Source/DiscoveryV1/Models/Environment.swift index ca7e55bb2..4fa378c19 100644 --- a/Source/DiscoveryV1/Models/Environment.swift +++ b/Source/DiscoveryV1/Models/Environment.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/EnvironmentDocuments.swift b/Source/DiscoveryV1/Models/EnvironmentDocuments.swift index 0d1355cbd..2b67ea1c4 100644 --- a/Source/DiscoveryV1/Models/EnvironmentDocuments.swift +++ b/Source/DiscoveryV1/Models/EnvironmentDocuments.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/EventData.swift b/Source/DiscoveryV1/Models/EventData.swift index 1e367001e..5111c5b67 100644 --- a/Source/DiscoveryV1/Models/EventData.swift +++ b/Source/DiscoveryV1/Models/EventData.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Expansion.swift b/Source/DiscoveryV1/Models/Expansion.swift index 131dbd02b..2109a19cd 100644 --- a/Source/DiscoveryV1/Models/Expansion.swift +++ b/Source/DiscoveryV1/Models/Expansion.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Expansions.swift b/Source/DiscoveryV1/Models/Expansions.swift index 87866c697..2908c0f43 100644 --- a/Source/DiscoveryV1/Models/Expansions.swift +++ b/Source/DiscoveryV1/Models/Expansions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Field.swift b/Source/DiscoveryV1/Models/Field.swift index 4f8734fc4..0a80e8e61 100644 --- a/Source/DiscoveryV1/Models/Field.swift +++ b/Source/DiscoveryV1/Models/Field.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Filter.swift b/Source/DiscoveryV1/Models/Filter.swift index f1ddaa495..4424cb53f 100644 --- a/Source/DiscoveryV1/Models/Filter.swift +++ b/Source/DiscoveryV1/Models/Filter.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/FontSetting.swift b/Source/DiscoveryV1/Models/FontSetting.swift index 02ae9de3e..c7d643bf3 100644 --- a/Source/DiscoveryV1/Models/FontSetting.swift +++ b/Source/DiscoveryV1/Models/FontSetting.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/HTMLSettings.swift b/Source/DiscoveryV1/Models/HTMLSettings.swift index 1cf27c9b1..fdb2b0d9d 100644 --- a/Source/DiscoveryV1/Models/HTMLSettings.swift +++ b/Source/DiscoveryV1/Models/HTMLSettings.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Histogram.swift b/Source/DiscoveryV1/Models/Histogram.swift index 58ad28c25..ce0f58de4 100644 --- a/Source/DiscoveryV1/Models/Histogram.swift +++ b/Source/DiscoveryV1/Models/Histogram.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/IndexCapacity.swift b/Source/DiscoveryV1/Models/IndexCapacity.swift index e85bb33d6..a6897b1d9 100644 --- a/Source/DiscoveryV1/Models/IndexCapacity.swift +++ b/Source/DiscoveryV1/Models/IndexCapacity.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/ListCollectionFieldsResponse.swift b/Source/DiscoveryV1/Models/ListCollectionFieldsResponse.swift index e20bdc903..1f8a71d6b 100644 --- a/Source/DiscoveryV1/Models/ListCollectionFieldsResponse.swift +++ b/Source/DiscoveryV1/Models/ListCollectionFieldsResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/ListCollectionsResponse.swift b/Source/DiscoveryV1/Models/ListCollectionsResponse.swift index afa5424b7..24f9d40e7 100644 --- a/Source/DiscoveryV1/Models/ListCollectionsResponse.swift +++ b/Source/DiscoveryV1/Models/ListCollectionsResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/ListConfigurationsResponse.swift b/Source/DiscoveryV1/Models/ListConfigurationsResponse.swift index 79fd8a3ff..9ec2de0dd 100644 --- a/Source/DiscoveryV1/Models/ListConfigurationsResponse.swift +++ b/Source/DiscoveryV1/Models/ListConfigurationsResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/ListEnvironmentsResponse.swift b/Source/DiscoveryV1/Models/ListEnvironmentsResponse.swift index dec3502a6..06177b1cc 100644 --- a/Source/DiscoveryV1/Models/ListEnvironmentsResponse.swift +++ b/Source/DiscoveryV1/Models/ListEnvironmentsResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/LogQueryResponse.swift b/Source/DiscoveryV1/Models/LogQueryResponse.swift index d5bc867d1..f7947a866 100644 --- a/Source/DiscoveryV1/Models/LogQueryResponse.swift +++ b/Source/DiscoveryV1/Models/LogQueryResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/LogQueryResponseResult.swift b/Source/DiscoveryV1/Models/LogQueryResponseResult.swift index 2333cddb6..696428d1c 100644 --- a/Source/DiscoveryV1/Models/LogQueryResponseResult.swift +++ b/Source/DiscoveryV1/Models/LogQueryResponseResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/LogQueryResponseResultDocuments.swift b/Source/DiscoveryV1/Models/LogQueryResponseResultDocuments.swift index 2541d9ce1..e5d3e2b92 100644 --- a/Source/DiscoveryV1/Models/LogQueryResponseResultDocuments.swift +++ b/Source/DiscoveryV1/Models/LogQueryResponseResultDocuments.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/LogQueryResponseResultDocumentsResult.swift b/Source/DiscoveryV1/Models/LogQueryResponseResultDocumentsResult.swift index fef1af0b7..5e8e9d679 100644 --- a/Source/DiscoveryV1/Models/LogQueryResponseResultDocumentsResult.swift +++ b/Source/DiscoveryV1/Models/LogQueryResponseResultDocumentsResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/MetricAggregation.swift b/Source/DiscoveryV1/Models/MetricAggregation.swift index 1c0d1826a..ac9a51121 100644 --- a/Source/DiscoveryV1/Models/MetricAggregation.swift +++ b/Source/DiscoveryV1/Models/MetricAggregation.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/MetricAggregationResult.swift b/Source/DiscoveryV1/Models/MetricAggregationResult.swift index 91dd2e4f8..719e0765a 100644 --- a/Source/DiscoveryV1/Models/MetricAggregationResult.swift +++ b/Source/DiscoveryV1/Models/MetricAggregationResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/MetricResponse.swift b/Source/DiscoveryV1/Models/MetricResponse.swift index 864b66e47..cdc5c4849 100644 --- a/Source/DiscoveryV1/Models/MetricResponse.swift +++ b/Source/DiscoveryV1/Models/MetricResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/MetricTokenAggregation.swift b/Source/DiscoveryV1/Models/MetricTokenAggregation.swift index 45feca046..e33e13e1c 100644 --- a/Source/DiscoveryV1/Models/MetricTokenAggregation.swift +++ b/Source/DiscoveryV1/Models/MetricTokenAggregation.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/MetricTokenAggregationResult.swift b/Source/DiscoveryV1/Models/MetricTokenAggregationResult.swift index 5060eaf41..2f6b83b38 100644 --- a/Source/DiscoveryV1/Models/MetricTokenAggregationResult.swift +++ b/Source/DiscoveryV1/Models/MetricTokenAggregationResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/MetricTokenResponse.swift b/Source/DiscoveryV1/Models/MetricTokenResponse.swift index 8afb231a7..cf8e449ca 100644 --- a/Source/DiscoveryV1/Models/MetricTokenResponse.swift +++ b/Source/DiscoveryV1/Models/MetricTokenResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Nested.swift b/Source/DiscoveryV1/Models/Nested.swift index 9fd763bd8..e30c554fc 100644 --- a/Source/DiscoveryV1/Models/Nested.swift +++ b/Source/DiscoveryV1/Models/Nested.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/NewTrainingQuery.swift b/Source/DiscoveryV1/Models/NewTrainingQuery.swift index 9e98ec92e..12dbb17d6 100644 --- a/Source/DiscoveryV1/Models/NewTrainingQuery.swift +++ b/Source/DiscoveryV1/Models/NewTrainingQuery.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/NluEnrichmentCategories.swift b/Source/DiscoveryV1/Models/NluEnrichmentCategories.swift index 794c7c7e6..64c333ffb 100644 --- a/Source/DiscoveryV1/Models/NluEnrichmentCategories.swift +++ b/Source/DiscoveryV1/Models/NluEnrichmentCategories.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/NluEnrichmentConcepts.swift b/Source/DiscoveryV1/Models/NluEnrichmentConcepts.swift index 68881ee7d..6aff8027b 100644 --- a/Source/DiscoveryV1/Models/NluEnrichmentConcepts.swift +++ b/Source/DiscoveryV1/Models/NluEnrichmentConcepts.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/NluEnrichmentEmotion.swift b/Source/DiscoveryV1/Models/NluEnrichmentEmotion.swift index 410d51f64..d6f2495cc 100644 --- a/Source/DiscoveryV1/Models/NluEnrichmentEmotion.swift +++ b/Source/DiscoveryV1/Models/NluEnrichmentEmotion.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/NluEnrichmentEntities.swift b/Source/DiscoveryV1/Models/NluEnrichmentEntities.swift index ca74abe5c..7407e786e 100644 --- a/Source/DiscoveryV1/Models/NluEnrichmentEntities.swift +++ b/Source/DiscoveryV1/Models/NluEnrichmentEntities.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/NluEnrichmentFeatures.swift b/Source/DiscoveryV1/Models/NluEnrichmentFeatures.swift index cd2054a53..06d07afaf 100644 --- a/Source/DiscoveryV1/Models/NluEnrichmentFeatures.swift +++ b/Source/DiscoveryV1/Models/NluEnrichmentFeatures.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/NluEnrichmentKeywords.swift b/Source/DiscoveryV1/Models/NluEnrichmentKeywords.swift index d17c4c714..d2e3d96dc 100644 --- a/Source/DiscoveryV1/Models/NluEnrichmentKeywords.swift +++ b/Source/DiscoveryV1/Models/NluEnrichmentKeywords.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/NluEnrichmentRelations.swift b/Source/DiscoveryV1/Models/NluEnrichmentRelations.swift index e9c5e7677..07e1e7b3b 100644 --- a/Source/DiscoveryV1/Models/NluEnrichmentRelations.swift +++ b/Source/DiscoveryV1/Models/NluEnrichmentRelations.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/NluEnrichmentSemanticRoles.swift b/Source/DiscoveryV1/Models/NluEnrichmentSemanticRoles.swift index a1cf32273..aadc996d6 100644 --- a/Source/DiscoveryV1/Models/NluEnrichmentSemanticRoles.swift +++ b/Source/DiscoveryV1/Models/NluEnrichmentSemanticRoles.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/NluEnrichmentSentiment.swift b/Source/DiscoveryV1/Models/NluEnrichmentSentiment.swift index 028168d6a..aa5d5c373 100644 --- a/Source/DiscoveryV1/Models/NluEnrichmentSentiment.swift +++ b/Source/DiscoveryV1/Models/NluEnrichmentSentiment.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/NormalizationOperation.swift b/Source/DiscoveryV1/Models/NormalizationOperation.swift index 4eb82761b..1b79a05fd 100644 --- a/Source/DiscoveryV1/Models/NormalizationOperation.swift +++ b/Source/DiscoveryV1/Models/NormalizationOperation.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Notice.swift b/Source/DiscoveryV1/Models/Notice.swift index e770ad8ab..528758a49 100644 --- a/Source/DiscoveryV1/Models/Notice.swift +++ b/Source/DiscoveryV1/Models/Notice.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/PDFHeadingDetection.swift b/Source/DiscoveryV1/Models/PDFHeadingDetection.swift index 4ae1286cb..85ed2b313 100644 --- a/Source/DiscoveryV1/Models/PDFHeadingDetection.swift +++ b/Source/DiscoveryV1/Models/PDFHeadingDetection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/PDFSettings.swift b/Source/DiscoveryV1/Models/PDFSettings.swift index cfb53efc9..77993112c 100644 --- a/Source/DiscoveryV1/Models/PDFSettings.swift +++ b/Source/DiscoveryV1/Models/PDFSettings.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryAggregation.swift b/Source/DiscoveryV1/Models/QueryAggregation.swift index 2c17dae19..2794f53a8 100644 --- a/Source/DiscoveryV1/Models/QueryAggregation.swift +++ b/Source/DiscoveryV1/Models/QueryAggregation.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryEntities.swift b/Source/DiscoveryV1/Models/QueryEntities.swift index 7fd4d4274..95c7daeac 100644 --- a/Source/DiscoveryV1/Models/QueryEntities.swift +++ b/Source/DiscoveryV1/Models/QueryEntities.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryEntitiesContext.swift b/Source/DiscoveryV1/Models/QueryEntitiesContext.swift index 9c856b2a1..30b499652 100644 --- a/Source/DiscoveryV1/Models/QueryEntitiesContext.swift +++ b/Source/DiscoveryV1/Models/QueryEntitiesContext.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryEntitiesEntity.swift b/Source/DiscoveryV1/Models/QueryEntitiesEntity.swift index 2838e3564..8b3a135c9 100644 --- a/Source/DiscoveryV1/Models/QueryEntitiesEntity.swift +++ b/Source/DiscoveryV1/Models/QueryEntitiesEntity.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryEntitiesResponse.swift b/Source/DiscoveryV1/Models/QueryEntitiesResponse.swift index 27e2c2b48..dbdad42cf 100644 --- a/Source/DiscoveryV1/Models/QueryEntitiesResponse.swift +++ b/Source/DiscoveryV1/Models/QueryEntitiesResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryEntitiesResponseItem.swift b/Source/DiscoveryV1/Models/QueryEntitiesResponseItem.swift index 7d46ed276..2b6983cf1 100644 --- a/Source/DiscoveryV1/Models/QueryEntitiesResponseItem.swift +++ b/Source/DiscoveryV1/Models/QueryEntitiesResponseItem.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryEvidence.swift b/Source/DiscoveryV1/Models/QueryEvidence.swift index 1f4947df4..edffac971 100644 --- a/Source/DiscoveryV1/Models/QueryEvidence.swift +++ b/Source/DiscoveryV1/Models/QueryEvidence.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryEvidenceEntity.swift b/Source/DiscoveryV1/Models/QueryEvidenceEntity.swift index 46984c538..860a69dbb 100644 --- a/Source/DiscoveryV1/Models/QueryEvidenceEntity.swift +++ b/Source/DiscoveryV1/Models/QueryEvidenceEntity.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryFilterType.swift b/Source/DiscoveryV1/Models/QueryFilterType.swift index 1d78f1422..2cc76bfed 100644 --- a/Source/DiscoveryV1/Models/QueryFilterType.swift +++ b/Source/DiscoveryV1/Models/QueryFilterType.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryLarge.swift b/Source/DiscoveryV1/Models/QueryLarge.swift index 9b51a1041..43a00d05e 100644 --- a/Source/DiscoveryV1/Models/QueryLarge.swift +++ b/Source/DiscoveryV1/Models/QueryLarge.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryNoticesResponse.swift b/Source/DiscoveryV1/Models/QueryNoticesResponse.swift index b7e3a4bdc..e734d3bcf 100644 --- a/Source/DiscoveryV1/Models/QueryNoticesResponse.swift +++ b/Source/DiscoveryV1/Models/QueryNoticesResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryNoticesResult.swift b/Source/DiscoveryV1/Models/QueryNoticesResult.swift index 42707ad64..a9f61847d 100644 --- a/Source/DiscoveryV1/Models/QueryNoticesResult.swift +++ b/Source/DiscoveryV1/Models/QueryNoticesResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryPassages.swift b/Source/DiscoveryV1/Models/QueryPassages.swift index 3cb96c283..1a95d4196 100644 --- a/Source/DiscoveryV1/Models/QueryPassages.swift +++ b/Source/DiscoveryV1/Models/QueryPassages.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryRelations.swift b/Source/DiscoveryV1/Models/QueryRelations.swift index 9e004d9f5..2ebba4423 100644 --- a/Source/DiscoveryV1/Models/QueryRelations.swift +++ b/Source/DiscoveryV1/Models/QueryRelations.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryRelationsArgument.swift b/Source/DiscoveryV1/Models/QueryRelationsArgument.swift index 5821db54b..d851dc7dc 100644 --- a/Source/DiscoveryV1/Models/QueryRelationsArgument.swift +++ b/Source/DiscoveryV1/Models/QueryRelationsArgument.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryRelationsEntity.swift b/Source/DiscoveryV1/Models/QueryRelationsEntity.swift index ba4973953..ced9cfe3a 100644 --- a/Source/DiscoveryV1/Models/QueryRelationsEntity.swift +++ b/Source/DiscoveryV1/Models/QueryRelationsEntity.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryRelationsFilter.swift b/Source/DiscoveryV1/Models/QueryRelationsFilter.swift index 15a3b27dc..7bc41ff92 100644 --- a/Source/DiscoveryV1/Models/QueryRelationsFilter.swift +++ b/Source/DiscoveryV1/Models/QueryRelationsFilter.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryRelationsRelationship.swift b/Source/DiscoveryV1/Models/QueryRelationsRelationship.swift index a67022c10..0b3ffab17 100644 --- a/Source/DiscoveryV1/Models/QueryRelationsRelationship.swift +++ b/Source/DiscoveryV1/Models/QueryRelationsRelationship.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryRelationsResponse.swift b/Source/DiscoveryV1/Models/QueryRelationsResponse.swift index 097d096db..6010ed443 100644 --- a/Source/DiscoveryV1/Models/QueryRelationsResponse.swift +++ b/Source/DiscoveryV1/Models/QueryRelationsResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryResponse.swift b/Source/DiscoveryV1/Models/QueryResponse.swift index 4f35832f3..002a3ecaf 100644 --- a/Source/DiscoveryV1/Models/QueryResponse.swift +++ b/Source/DiscoveryV1/Models/QueryResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryResult.swift b/Source/DiscoveryV1/Models/QueryResult.swift index f106b3805..7c98faa05 100644 --- a/Source/DiscoveryV1/Models/QueryResult.swift +++ b/Source/DiscoveryV1/Models/QueryResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/QueryResultMetadata.swift b/Source/DiscoveryV1/Models/QueryResultMetadata.swift index 7a1a4fac7..40f1d222f 100644 --- a/Source/DiscoveryV1/Models/QueryResultMetadata.swift +++ b/Source/DiscoveryV1/Models/QueryResultMetadata.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/RetrievalDetails.swift b/Source/DiscoveryV1/Models/RetrievalDetails.swift index e514bd532..c50d06e37 100644 --- a/Source/DiscoveryV1/Models/RetrievalDetails.swift +++ b/Source/DiscoveryV1/Models/RetrievalDetails.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/SearchStatus.swift b/Source/DiscoveryV1/Models/SearchStatus.swift index 9bb9a7572..e4c709908 100644 --- a/Source/DiscoveryV1/Models/SearchStatus.swift +++ b/Source/DiscoveryV1/Models/SearchStatus.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/SegmentSettings.swift b/Source/DiscoveryV1/Models/SegmentSettings.swift index 0a8817a60..10b07eaa1 100644 --- a/Source/DiscoveryV1/Models/SegmentSettings.swift +++ b/Source/DiscoveryV1/Models/SegmentSettings.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Source.swift b/Source/DiscoveryV1/Models/Source.swift index 371693160..db8801217 100644 --- a/Source/DiscoveryV1/Models/Source.swift +++ b/Source/DiscoveryV1/Models/Source.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/SourceOptions.swift b/Source/DiscoveryV1/Models/SourceOptions.swift index 0c9fdfa75..80d22edb3 100644 --- a/Source/DiscoveryV1/Models/SourceOptions.swift +++ b/Source/DiscoveryV1/Models/SourceOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/SourceOptionsFolder.swift b/Source/DiscoveryV1/Models/SourceOptionsFolder.swift index 73789b0ff..48962e190 100644 --- a/Source/DiscoveryV1/Models/SourceOptionsFolder.swift +++ b/Source/DiscoveryV1/Models/SourceOptionsFolder.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/SourceOptionsObject.swift b/Source/DiscoveryV1/Models/SourceOptionsObject.swift index 29435e64c..1f3f8ebd9 100644 --- a/Source/DiscoveryV1/Models/SourceOptionsObject.swift +++ b/Source/DiscoveryV1/Models/SourceOptionsObject.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/SourceOptionsSiteColl.swift b/Source/DiscoveryV1/Models/SourceOptionsSiteColl.swift index 5e17e541c..1a79a88d9 100644 --- a/Source/DiscoveryV1/Models/SourceOptionsSiteColl.swift +++ b/Source/DiscoveryV1/Models/SourceOptionsSiteColl.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/SourceSchedule.swift b/Source/DiscoveryV1/Models/SourceSchedule.swift index 02248a30e..9206c5eaf 100644 --- a/Source/DiscoveryV1/Models/SourceSchedule.swift +++ b/Source/DiscoveryV1/Models/SourceSchedule.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/SourceStatus.swift b/Source/DiscoveryV1/Models/SourceStatus.swift index a3a76e359..b456ee380 100644 --- a/Source/DiscoveryV1/Models/SourceStatus.swift +++ b/Source/DiscoveryV1/Models/SourceStatus.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Term.swift b/Source/DiscoveryV1/Models/Term.swift index 1a4ace8ec..e94f6fdf9 100644 --- a/Source/DiscoveryV1/Models/Term.swift +++ b/Source/DiscoveryV1/Models/Term.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TestDocument.swift b/Source/DiscoveryV1/Models/TestDocument.swift index bd2eccf1f..e51b81f2c 100644 --- a/Source/DiscoveryV1/Models/TestDocument.swift +++ b/Source/DiscoveryV1/Models/TestDocument.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/Timeslice.swift b/Source/DiscoveryV1/Models/Timeslice.swift index 5dc864900..768978e1a 100644 --- a/Source/DiscoveryV1/Models/Timeslice.swift +++ b/Source/DiscoveryV1/Models/Timeslice.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TokenDict.swift b/Source/DiscoveryV1/Models/TokenDict.swift index 75cc60cf2..d01cd3935 100644 --- a/Source/DiscoveryV1/Models/TokenDict.swift +++ b/Source/DiscoveryV1/Models/TokenDict.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TokenDictRule.swift b/Source/DiscoveryV1/Models/TokenDictRule.swift index c53efc30a..66065183a 100644 --- a/Source/DiscoveryV1/Models/TokenDictRule.swift +++ b/Source/DiscoveryV1/Models/TokenDictRule.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TokenDictStatusResponse.swift b/Source/DiscoveryV1/Models/TokenDictStatusResponse.swift index 18fab2312..bac6d7226 100644 --- a/Source/DiscoveryV1/Models/TokenDictStatusResponse.swift +++ b/Source/DiscoveryV1/Models/TokenDictStatusResponse.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TopHits.swift b/Source/DiscoveryV1/Models/TopHits.swift index 40827504d..e29ac8d89 100644 --- a/Source/DiscoveryV1/Models/TopHits.swift +++ b/Source/DiscoveryV1/Models/TopHits.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TopHitsResults.swift b/Source/DiscoveryV1/Models/TopHitsResults.swift index a2689ddbc..966a0403c 100644 --- a/Source/DiscoveryV1/Models/TopHitsResults.swift +++ b/Source/DiscoveryV1/Models/TopHitsResults.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TrainingDataSet.swift b/Source/DiscoveryV1/Models/TrainingDataSet.swift index 89407acd0..7c870bcd4 100644 --- a/Source/DiscoveryV1/Models/TrainingDataSet.swift +++ b/Source/DiscoveryV1/Models/TrainingDataSet.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TrainingExample.swift b/Source/DiscoveryV1/Models/TrainingExample.swift index 02f597384..05a02aa23 100644 --- a/Source/DiscoveryV1/Models/TrainingExample.swift +++ b/Source/DiscoveryV1/Models/TrainingExample.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TrainingExampleList.swift b/Source/DiscoveryV1/Models/TrainingExampleList.swift index 1cdddbefe..9c3655600 100644 --- a/Source/DiscoveryV1/Models/TrainingExampleList.swift +++ b/Source/DiscoveryV1/Models/TrainingExampleList.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TrainingExamplePatch.swift b/Source/DiscoveryV1/Models/TrainingExamplePatch.swift index cb5cb1ee0..fca9e4ea7 100644 --- a/Source/DiscoveryV1/Models/TrainingExamplePatch.swift +++ b/Source/DiscoveryV1/Models/TrainingExamplePatch.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TrainingQuery.swift b/Source/DiscoveryV1/Models/TrainingQuery.swift index e7d4e62ac..ba547379b 100644 --- a/Source/DiscoveryV1/Models/TrainingQuery.swift +++ b/Source/DiscoveryV1/Models/TrainingQuery.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/TrainingStatus.swift b/Source/DiscoveryV1/Models/TrainingStatus.swift index f6b20dcf1..304c07e9e 100644 --- a/Source/DiscoveryV1/Models/TrainingStatus.swift +++ b/Source/DiscoveryV1/Models/TrainingStatus.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/UpdateCollectionRequest.swift b/Source/DiscoveryV1/Models/UpdateCollectionRequest.swift index 67631a324..f59eb19e5 100644 --- a/Source/DiscoveryV1/Models/UpdateCollectionRequest.swift +++ b/Source/DiscoveryV1/Models/UpdateCollectionRequest.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/UpdateEnvironmentRequest.swift b/Source/DiscoveryV1/Models/UpdateEnvironmentRequest.swift index 6f81ea57c..1522567de 100644 --- a/Source/DiscoveryV1/Models/UpdateEnvironmentRequest.swift +++ b/Source/DiscoveryV1/Models/UpdateEnvironmentRequest.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/WordHeadingDetection.swift b/Source/DiscoveryV1/Models/WordHeadingDetection.swift index f5e9386a6..edf15b79a 100644 --- a/Source/DiscoveryV1/Models/WordHeadingDetection.swift +++ b/Source/DiscoveryV1/Models/WordHeadingDetection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/WordSettings.swift b/Source/DiscoveryV1/Models/WordSettings.swift index e77f18271..e1d1572bd 100644 --- a/Source/DiscoveryV1/Models/WordSettings.swift +++ b/Source/DiscoveryV1/Models/WordSettings.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/WordStyle.swift b/Source/DiscoveryV1/Models/WordStyle.swift index 3ed07b803..c8ea7e909 100644 --- a/Source/DiscoveryV1/Models/WordStyle.swift +++ b/Source/DiscoveryV1/Models/WordStyle.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/DiscoveryV1/Models/XPathPatterns.swift b/Source/DiscoveryV1/Models/XPathPatterns.swift index e77bb1dbc..926732ef1 100644 --- a/Source/DiscoveryV1/Models/XPathPatterns.swift +++ b/Source/DiscoveryV1/Models/XPathPatterns.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/LanguageTranslatorV3/LanguageTranslator.swift b/Source/LanguageTranslatorV3/LanguageTranslator.swift index af9cd6ee4..db0ee4368 100644 --- a/Source/LanguageTranslatorV3/LanguageTranslator.swift +++ b/Source/LanguageTranslatorV3/LanguageTranslator.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -197,6 +197,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "translate") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -238,6 +240,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listIdentifiableLanguages") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -286,6 +290,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "identify") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "text/plain" @@ -335,6 +341,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listModels") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -423,6 +431,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType @@ -470,6 +480,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -516,6 +528,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -559,6 +573,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listDocuments") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -644,6 +660,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "translateDocument") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType @@ -686,6 +704,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getDocumentStatus") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -731,6 +751,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteDocument") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct query parameters var queryParameters = [URLQueryItem]() @@ -785,6 +807,8 @@ public class LanguageTranslator { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getTranslatedDocument") + headerParameters.merge(sdkHeaders) { (_, new) in new } if let accept = accept { headerParameters["Accept"] = accept } diff --git a/Source/LanguageTranslatorV3/Models/DeleteModelResult.swift b/Source/LanguageTranslatorV3/Models/DeleteModelResult.swift index 183eccaff..d5d3c9ef3 100644 --- a/Source/LanguageTranslatorV3/Models/DeleteModelResult.swift +++ b/Source/LanguageTranslatorV3/Models/DeleteModelResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/LanguageTranslatorV3/Models/IdentifiableLanguage.swift b/Source/LanguageTranslatorV3/Models/IdentifiableLanguage.swift index d66960fd6..5967d70bc 100644 --- a/Source/LanguageTranslatorV3/Models/IdentifiableLanguage.swift +++ b/Source/LanguageTranslatorV3/Models/IdentifiableLanguage.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/LanguageTranslatorV3/Models/IdentifiableLanguages.swift b/Source/LanguageTranslatorV3/Models/IdentifiableLanguages.swift index 5e69eb2c5..952342a96 100644 --- a/Source/LanguageTranslatorV3/Models/IdentifiableLanguages.swift +++ b/Source/LanguageTranslatorV3/Models/IdentifiableLanguages.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/LanguageTranslatorV3/Models/IdentifiedLanguage.swift b/Source/LanguageTranslatorV3/Models/IdentifiedLanguage.swift index 77d9a9ef2..bd940170e 100644 --- a/Source/LanguageTranslatorV3/Models/IdentifiedLanguage.swift +++ b/Source/LanguageTranslatorV3/Models/IdentifiedLanguage.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/LanguageTranslatorV3/Models/IdentifiedLanguages.swift b/Source/LanguageTranslatorV3/Models/IdentifiedLanguages.swift index 96dc5bd73..ccb64757d 100644 --- a/Source/LanguageTranslatorV3/Models/IdentifiedLanguages.swift +++ b/Source/LanguageTranslatorV3/Models/IdentifiedLanguages.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/LanguageTranslatorV3/Models/TranslateRequest.swift b/Source/LanguageTranslatorV3/Models/TranslateRequest.swift index 65e743743..6b31919b9 100644 --- a/Source/LanguageTranslatorV3/Models/TranslateRequest.swift +++ b/Source/LanguageTranslatorV3/Models/TranslateRequest.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/LanguageTranslatorV3/Models/Translation.swift b/Source/LanguageTranslatorV3/Models/Translation.swift index 3508f8445..31397f499 100644 --- a/Source/LanguageTranslatorV3/Models/Translation.swift +++ b/Source/LanguageTranslatorV3/Models/Translation.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/LanguageTranslatorV3/Models/TranslationModel.swift b/Source/LanguageTranslatorV3/Models/TranslationModel.swift index c8cc6541d..df883c9fe 100644 --- a/Source/LanguageTranslatorV3/Models/TranslationModel.swift +++ b/Source/LanguageTranslatorV3/Models/TranslationModel.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/LanguageTranslatorV3/Models/TranslationModels.swift b/Source/LanguageTranslatorV3/Models/TranslationModels.swift index e3a7a6f63..9476d63e8 100644 --- a/Source/LanguageTranslatorV3/Models/TranslationModels.swift +++ b/Source/LanguageTranslatorV3/Models/TranslationModels.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/LanguageTranslatorV3/Models/TranslationResult.swift b/Source/LanguageTranslatorV3/Models/TranslationResult.swift index e236ce0da..0e7ad94f1 100644 --- a/Source/LanguageTranslatorV3/Models/TranslationResult.swift +++ b/Source/LanguageTranslatorV3/Models/TranslationResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageClassifierV1/Models/Classification.swift b/Source/NaturalLanguageClassifierV1/Models/Classification.swift index b84e7d525..3839560a3 100644 --- a/Source/NaturalLanguageClassifierV1/Models/Classification.swift +++ b/Source/NaturalLanguageClassifierV1/Models/Classification.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageClassifierV1/Models/ClassificationCollection.swift b/Source/NaturalLanguageClassifierV1/Models/ClassificationCollection.swift index d2b9d91c4..6cdb8bf16 100644 --- a/Source/NaturalLanguageClassifierV1/Models/ClassificationCollection.swift +++ b/Source/NaturalLanguageClassifierV1/Models/ClassificationCollection.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageClassifierV1/Models/ClassifiedClass.swift b/Source/NaturalLanguageClassifierV1/Models/ClassifiedClass.swift index b88840f38..f6ac69602 100644 --- a/Source/NaturalLanguageClassifierV1/Models/ClassifiedClass.swift +++ b/Source/NaturalLanguageClassifierV1/Models/ClassifiedClass.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageClassifierV1/Models/Classifier.swift b/Source/NaturalLanguageClassifierV1/Models/Classifier.swift index 444be9230..328a6f8e7 100644 --- a/Source/NaturalLanguageClassifierV1/Models/Classifier.swift +++ b/Source/NaturalLanguageClassifierV1/Models/Classifier.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageClassifierV1/Models/ClassifierList.swift b/Source/NaturalLanguageClassifierV1/Models/ClassifierList.swift index 7b97a8e9d..45a7e7c0b 100644 --- a/Source/NaturalLanguageClassifierV1/Models/ClassifierList.swift +++ b/Source/NaturalLanguageClassifierV1/Models/ClassifierList.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageClassifierV1/Models/ClassifyCollectionInput.swift b/Source/NaturalLanguageClassifierV1/Models/ClassifyCollectionInput.swift index 6160fe99e..e42fd4559 100644 --- a/Source/NaturalLanguageClassifierV1/Models/ClassifyCollectionInput.swift +++ b/Source/NaturalLanguageClassifierV1/Models/ClassifyCollectionInput.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageClassifierV1/Models/ClassifyInput.swift b/Source/NaturalLanguageClassifierV1/Models/ClassifyInput.swift index 5484669c9..a61b20945 100644 --- a/Source/NaturalLanguageClassifierV1/Models/ClassifyInput.swift +++ b/Source/NaturalLanguageClassifierV1/Models/ClassifyInput.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageClassifierV1/Models/CollectionItem.swift b/Source/NaturalLanguageClassifierV1/Models/CollectionItem.swift index 02879f40a..7a397077f 100644 --- a/Source/NaturalLanguageClassifierV1/Models/CollectionItem.swift +++ b/Source/NaturalLanguageClassifierV1/Models/CollectionItem.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageClassifierV1/NaturalLanguageClassifier.swift b/Source/NaturalLanguageClassifierV1/NaturalLanguageClassifier.swift index b28ccbfc9..0555916d0 100644 --- a/Source/NaturalLanguageClassifierV1/NaturalLanguageClassifier.swift +++ b/Source/NaturalLanguageClassifierV1/NaturalLanguageClassifier.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -176,6 +176,8 @@ public class NaturalLanguageClassifier { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "classify") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -230,6 +232,8 @@ public class NaturalLanguageClassifier { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "classifyCollection") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -289,6 +293,8 @@ public class NaturalLanguageClassifier { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createClassifier") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType @@ -324,6 +330,8 @@ public class NaturalLanguageClassifier { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listClassifiers") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -359,6 +367,8 @@ public class NaturalLanguageClassifier { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getClassifier") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -397,6 +407,8 @@ public class NaturalLanguageClassifier { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteClassifier") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request diff --git a/Source/NaturalLanguageUnderstandingV1/Models/AnalysisResults.swift b/Source/NaturalLanguageUnderstandingV1/Models/AnalysisResults.swift index 26f16ef12..177f6c5b6 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/AnalysisResults.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/AnalysisResults.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/Author.swift b/Source/NaturalLanguageUnderstandingV1/Models/Author.swift index 8a26a05f8..b846576a2 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/Author.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/Author.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/CategoriesOptions.swift b/Source/NaturalLanguageUnderstandingV1/Models/CategoriesOptions.swift index 69848ec81..8af1ce192 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/CategoriesOptions.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/CategoriesOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/CategoriesResult.swift b/Source/NaturalLanguageUnderstandingV1/Models/CategoriesResult.swift index f1d6424fa..846b18e77 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/CategoriesResult.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/CategoriesResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/ConceptsOptions.swift b/Source/NaturalLanguageUnderstandingV1/Models/ConceptsOptions.swift index d1cc8ab42..af064a217 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/ConceptsOptions.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/ConceptsOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/ConceptsResult.swift b/Source/NaturalLanguageUnderstandingV1/Models/ConceptsResult.swift index 1219ecc8c..da2f0e390 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/ConceptsResult.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/ConceptsResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/DeleteModelResults.swift b/Source/NaturalLanguageUnderstandingV1/Models/DeleteModelResults.swift index 4b0a692df..511a91a2c 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/DeleteModelResults.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/DeleteModelResults.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/DisambiguationResult.swift b/Source/NaturalLanguageUnderstandingV1/Models/DisambiguationResult.swift index b19fb1769..c5f56dd33 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/DisambiguationResult.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/DisambiguationResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/DocumentEmotionResults.swift b/Source/NaturalLanguageUnderstandingV1/Models/DocumentEmotionResults.swift index bb0b0c4d0..30554ebe9 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/DocumentEmotionResults.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/DocumentEmotionResults.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/DocumentSentimentResults.swift b/Source/NaturalLanguageUnderstandingV1/Models/DocumentSentimentResults.swift index ada426161..b458d77cf 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/DocumentSentimentResults.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/DocumentSentimentResults.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/EmotionOptions.swift b/Source/NaturalLanguageUnderstandingV1/Models/EmotionOptions.swift index 33b4bb3d4..46e15054f 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/EmotionOptions.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/EmotionOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/EmotionResult.swift b/Source/NaturalLanguageUnderstandingV1/Models/EmotionResult.swift index 3f301e744..0e4840349 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/EmotionResult.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/EmotionResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/EmotionScores.swift b/Source/NaturalLanguageUnderstandingV1/Models/EmotionScores.swift index 4ec5c0566..1ef04094e 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/EmotionScores.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/EmotionScores.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/EntitiesOptions.swift b/Source/NaturalLanguageUnderstandingV1/Models/EntitiesOptions.swift index cac13f849..791c9b438 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/EntitiesOptions.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/EntitiesOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/EntitiesResult.swift b/Source/NaturalLanguageUnderstandingV1/Models/EntitiesResult.swift index 2284db992..b55e0ef0b 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/EntitiesResult.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/EntitiesResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/EntityMention.swift b/Source/NaturalLanguageUnderstandingV1/Models/EntityMention.swift index c1b9dd1ce..b79edfccf 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/EntityMention.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/EntityMention.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/FeatureSentimentResults.swift b/Source/NaturalLanguageUnderstandingV1/Models/FeatureSentimentResults.swift index 8b5968357..5b28b3e9a 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/FeatureSentimentResults.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/FeatureSentimentResults.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/Features.swift b/Source/NaturalLanguageUnderstandingV1/Models/Features.swift index 165848f38..432e6cf4f 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/Features.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/Features.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/Feed.swift b/Source/NaturalLanguageUnderstandingV1/Models/Feed.swift index a6321fe9f..cb14574da 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/Feed.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/Feed.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/KeywordsOptions.swift b/Source/NaturalLanguageUnderstandingV1/Models/KeywordsOptions.swift index 2eade8bf7..d145e2c35 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/KeywordsOptions.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/KeywordsOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/KeywordsResult.swift b/Source/NaturalLanguageUnderstandingV1/Models/KeywordsResult.swift index 9b686b009..ba36d133d 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/KeywordsResult.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/KeywordsResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/ListModelsResults.swift b/Source/NaturalLanguageUnderstandingV1/Models/ListModelsResults.swift index edd9eddda..b10ba5fb5 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/ListModelsResults.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/ListModelsResults.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/MetadataOptions.swift b/Source/NaturalLanguageUnderstandingV1/Models/MetadataOptions.swift index b765c8f56..95c7e89a5 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/MetadataOptions.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/MetadataOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/Model.swift b/Source/NaturalLanguageUnderstandingV1/Models/Model.swift index fe13315f5..fb89e113b 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/Model.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/Model.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/Parameters.swift b/Source/NaturalLanguageUnderstandingV1/Models/Parameters.swift index 63f667158..357540c2b 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/Parameters.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/Parameters.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/RelationArgument.swift b/Source/NaturalLanguageUnderstandingV1/Models/RelationArgument.swift index e031e0251..acfd7df44 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/RelationArgument.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/RelationArgument.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/RelationEntity.swift b/Source/NaturalLanguageUnderstandingV1/Models/RelationEntity.swift index 63c441b5c..8a0b309ba 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/RelationEntity.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/RelationEntity.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/RelationsOptions.swift b/Source/NaturalLanguageUnderstandingV1/Models/RelationsOptions.swift index 44b2f6ec7..818413dd5 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/RelationsOptions.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/RelationsOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/RelationsResult.swift b/Source/NaturalLanguageUnderstandingV1/Models/RelationsResult.swift index b0a204817..3f7627666 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/RelationsResult.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/RelationsResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesEntity.swift b/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesEntity.swift index 63adaac79..fc7ec2cff 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesEntity.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesEntity.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesKeyword.swift b/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesKeyword.swift index a49995646..641b456fd 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesKeyword.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesKeyword.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesOptions.swift b/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesOptions.swift index d5a060ab7..821a7a24c 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesOptions.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesResult.swift b/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesResult.swift index 42882a36f..167024aaa 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesResult.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesVerb.swift b/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesVerb.swift index 5b33c0ed4..0244ef3ad 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesVerb.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/SemanticRolesVerb.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/SentimentOptions.swift b/Source/NaturalLanguageUnderstandingV1/Models/SentimentOptions.swift index 44f33cbc9..c8283dd1d 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/SentimentOptions.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/SentimentOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/SentimentResult.swift b/Source/NaturalLanguageUnderstandingV1/Models/SentimentResult.swift index b11231c35..7e7be890c 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/SentimentResult.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/SentimentResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/TargetedEmotionResults.swift b/Source/NaturalLanguageUnderstandingV1/Models/TargetedEmotionResults.swift index 18f61e519..5c4a2b306 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/TargetedEmotionResults.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/TargetedEmotionResults.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/Models/TargetedSentimentResults.swift b/Source/NaturalLanguageUnderstandingV1/Models/TargetedSentimentResults.swift index ae6d3171a..7b5f20dcb 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/TargetedSentimentResults.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/TargetedSentimentResults.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/NaturalLanguageUnderstandingV1/NaturalLanguageUnderstanding.swift b/Source/NaturalLanguageUnderstandingV1/NaturalLanguageUnderstanding.swift index 380090869..39f301f97 100644 --- a/Source/NaturalLanguageUnderstandingV1/NaturalLanguageUnderstanding.swift +++ b/Source/NaturalLanguageUnderstandingV1/NaturalLanguageUnderstanding.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -235,6 +235,8 @@ public class NaturalLanguageUnderstanding { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "analyze") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -277,6 +279,8 @@ public class NaturalLanguageUnderstanding { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listModels") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -317,6 +321,8 @@ public class NaturalLanguageUnderstanding { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters diff --git a/Source/PersonalityInsightsV3/Models/Behavior.swift b/Source/PersonalityInsightsV3/Models/Behavior.swift index 980d4c71d..498ca52c7 100644 --- a/Source/PersonalityInsightsV3/Models/Behavior.swift +++ b/Source/PersonalityInsightsV3/Models/Behavior.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/PersonalityInsightsV3/Models/ConsumptionPreferences.swift b/Source/PersonalityInsightsV3/Models/ConsumptionPreferences.swift index ab44941f1..344af97e5 100644 --- a/Source/PersonalityInsightsV3/Models/ConsumptionPreferences.swift +++ b/Source/PersonalityInsightsV3/Models/ConsumptionPreferences.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/PersonalityInsightsV3/Models/ConsumptionPreferencesCategory.swift b/Source/PersonalityInsightsV3/Models/ConsumptionPreferencesCategory.swift index 690ee4ac0..7704717a9 100644 --- a/Source/PersonalityInsightsV3/Models/ConsumptionPreferencesCategory.swift +++ b/Source/PersonalityInsightsV3/Models/ConsumptionPreferencesCategory.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/PersonalityInsightsV3/Models/Content.swift b/Source/PersonalityInsightsV3/Models/Content.swift index c4b339fec..f582dd319 100644 --- a/Source/PersonalityInsightsV3/Models/Content.swift +++ b/Source/PersonalityInsightsV3/Models/Content.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/PersonalityInsightsV3/Models/ContentItem.swift b/Source/PersonalityInsightsV3/Models/ContentItem.swift index 6aaac4398..091fc71f8 100644 --- a/Source/PersonalityInsightsV3/Models/ContentItem.swift +++ b/Source/PersonalityInsightsV3/Models/ContentItem.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/PersonalityInsightsV3/Models/Profile.swift b/Source/PersonalityInsightsV3/Models/Profile.swift index 392a2c422..b9052fa1e 100644 --- a/Source/PersonalityInsightsV3/Models/Profile.swift +++ b/Source/PersonalityInsightsV3/Models/Profile.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/PersonalityInsightsV3/Models/ProfileContent.swift b/Source/PersonalityInsightsV3/Models/ProfileContent.swift index 66e8b8464..0018ea737 100644 --- a/Source/PersonalityInsightsV3/Models/ProfileContent.swift +++ b/Source/PersonalityInsightsV3/Models/ProfileContent.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/PersonalityInsightsV3/Models/Trait.swift b/Source/PersonalityInsightsV3/Models/Trait.swift index 4f84dc840..c6cac75d2 100644 --- a/Source/PersonalityInsightsV3/Models/Trait.swift +++ b/Source/PersonalityInsightsV3/Models/Trait.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/PersonalityInsightsV3/Models/Warning.swift b/Source/PersonalityInsightsV3/Models/Warning.swift index f2a61a3e6..ad38bd459 100644 --- a/Source/PersonalityInsightsV3/Models/Warning.swift +++ b/Source/PersonalityInsightsV3/Models/Warning.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/PersonalityInsightsV3/PersonalityInsights.swift b/Source/PersonalityInsightsV3/PersonalityInsights.swift index 24a1f53fe..fc7923909 100644 --- a/Source/PersonalityInsightsV3/PersonalityInsights.swift +++ b/Source/PersonalityInsightsV3/PersonalityInsights.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -244,6 +244,8 @@ public class PersonalityInsights { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "profile") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = profileContent.contentType if let contentLanguage = contentLanguage { @@ -358,6 +360,8 @@ public class PersonalityInsights { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "profileAsCSV") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "text/csv" headerParameters["Content-Type"] = profileContent.contentType if let contentLanguage = contentLanguage { diff --git a/Source/SpeechToTextV1/Models/AcousticModel.swift b/Source/SpeechToTextV1/Models/AcousticModel.swift index 9a060c04d..6ea00194b 100644 --- a/Source/SpeechToTextV1/Models/AcousticModel.swift +++ b/Source/SpeechToTextV1/Models/AcousticModel.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/AcousticModels.swift b/Source/SpeechToTextV1/Models/AcousticModels.swift index 6dae3b33a..a03909df1 100644 --- a/Source/SpeechToTextV1/Models/AcousticModels.swift +++ b/Source/SpeechToTextV1/Models/AcousticModels.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/AudioDetails.swift b/Source/SpeechToTextV1/Models/AudioDetails.swift index bc2b85e4e..60ab3af7b 100644 --- a/Source/SpeechToTextV1/Models/AudioDetails.swift +++ b/Source/SpeechToTextV1/Models/AudioDetails.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/AudioListing.swift b/Source/SpeechToTextV1/Models/AudioListing.swift index 28126fb2d..1042785a5 100644 --- a/Source/SpeechToTextV1/Models/AudioListing.swift +++ b/Source/SpeechToTextV1/Models/AudioListing.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/AudioResource.swift b/Source/SpeechToTextV1/Models/AudioResource.swift index 73136667a..c27eaa686 100644 --- a/Source/SpeechToTextV1/Models/AudioResource.swift +++ b/Source/SpeechToTextV1/Models/AudioResource.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/AudioResources.swift b/Source/SpeechToTextV1/Models/AudioResources.swift index e968b9dd8..9fef02463 100644 --- a/Source/SpeechToTextV1/Models/AudioResources.swift +++ b/Source/SpeechToTextV1/Models/AudioResources.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/Corpora.swift b/Source/SpeechToTextV1/Models/Corpora.swift index 1cd7384fc..6d1c64b13 100644 --- a/Source/SpeechToTextV1/Models/Corpora.swift +++ b/Source/SpeechToTextV1/Models/Corpora.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/Corpus.swift b/Source/SpeechToTextV1/Models/Corpus.swift index 49055246e..440588325 100644 --- a/Source/SpeechToTextV1/Models/Corpus.swift +++ b/Source/SpeechToTextV1/Models/Corpus.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/CreateAcousticModel.swift b/Source/SpeechToTextV1/Models/CreateAcousticModel.swift index 278bae4ad..23b98ae04 100644 --- a/Source/SpeechToTextV1/Models/CreateAcousticModel.swift +++ b/Source/SpeechToTextV1/Models/CreateAcousticModel.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/CreateLanguageModel.swift b/Source/SpeechToTextV1/Models/CreateLanguageModel.swift index 284012033..dc098f5b0 100644 --- a/Source/SpeechToTextV1/Models/CreateLanguageModel.swift +++ b/Source/SpeechToTextV1/Models/CreateLanguageModel.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/CustomWord.swift b/Source/SpeechToTextV1/Models/CustomWord.swift index 1964ec9a6..dd4ce522b 100644 --- a/Source/SpeechToTextV1/Models/CustomWord.swift +++ b/Source/SpeechToTextV1/Models/CustomWord.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/CustomWords.swift b/Source/SpeechToTextV1/Models/CustomWords.swift index 304d52c6d..25eec38e5 100644 --- a/Source/SpeechToTextV1/Models/CustomWords.swift +++ b/Source/SpeechToTextV1/Models/CustomWords.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/KeywordResult.swift b/Source/SpeechToTextV1/Models/KeywordResult.swift index b653809a7..ad74f0194 100644 --- a/Source/SpeechToTextV1/Models/KeywordResult.swift +++ b/Source/SpeechToTextV1/Models/KeywordResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/LanguageModel.swift b/Source/SpeechToTextV1/Models/LanguageModel.swift index be478baee..9d4830ffe 100644 --- a/Source/SpeechToTextV1/Models/LanguageModel.swift +++ b/Source/SpeechToTextV1/Models/LanguageModel.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/LanguageModels.swift b/Source/SpeechToTextV1/Models/LanguageModels.swift index 586b25b4e..e10ddcc48 100644 --- a/Source/SpeechToTextV1/Models/LanguageModels.swift +++ b/Source/SpeechToTextV1/Models/LanguageModels.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/RecognitionJob.swift b/Source/SpeechToTextV1/Models/RecognitionJob.swift index f95164292..86a72a6a4 100644 --- a/Source/SpeechToTextV1/Models/RecognitionJob.swift +++ b/Source/SpeechToTextV1/Models/RecognitionJob.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/RecognitionJobs.swift b/Source/SpeechToTextV1/Models/RecognitionJobs.swift index 4bf3e2ec4..24bf67e8b 100644 --- a/Source/SpeechToTextV1/Models/RecognitionJobs.swift +++ b/Source/SpeechToTextV1/Models/RecognitionJobs.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/RegisterStatus.swift b/Source/SpeechToTextV1/Models/RegisterStatus.swift index 53fe068b1..fbdb0c47a 100644 --- a/Source/SpeechToTextV1/Models/RegisterStatus.swift +++ b/Source/SpeechToTextV1/Models/RegisterStatus.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/SpeakerLabelsResult.swift b/Source/SpeechToTextV1/Models/SpeakerLabelsResult.swift index 396115d55..9029a0b03 100644 --- a/Source/SpeechToTextV1/Models/SpeakerLabelsResult.swift +++ b/Source/SpeechToTextV1/Models/SpeakerLabelsResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/SpeechModel.swift b/Source/SpeechToTextV1/Models/SpeechModel.swift index a38c42126..c1bd9ee14 100644 --- a/Source/SpeechToTextV1/Models/SpeechModel.swift +++ b/Source/SpeechToTextV1/Models/SpeechModel.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/SpeechModels.swift b/Source/SpeechToTextV1/Models/SpeechModels.swift index 6f6c97941..18acb54d4 100644 --- a/Source/SpeechToTextV1/Models/SpeechModels.swift +++ b/Source/SpeechToTextV1/Models/SpeechModels.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/SpeechRecognitionAlternative.swift b/Source/SpeechToTextV1/Models/SpeechRecognitionAlternative.swift index b482be09e..6802419fa 100644 --- a/Source/SpeechToTextV1/Models/SpeechRecognitionAlternative.swift +++ b/Source/SpeechToTextV1/Models/SpeechRecognitionAlternative.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/SpeechRecognitionResult.swift b/Source/SpeechToTextV1/Models/SpeechRecognitionResult.swift index 2023c7bf9..82bdff13d 100644 --- a/Source/SpeechToTextV1/Models/SpeechRecognitionResult.swift +++ b/Source/SpeechToTextV1/Models/SpeechRecognitionResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/SpeechRecognitionResults.swift b/Source/SpeechToTextV1/Models/SpeechRecognitionResults.swift index 8e34a7e78..700d6e262 100644 --- a/Source/SpeechToTextV1/Models/SpeechRecognitionResults.swift +++ b/Source/SpeechToTextV1/Models/SpeechRecognitionResults.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/SupportedFeatures.swift b/Source/SpeechToTextV1/Models/SupportedFeatures.swift index 5e2dbb652..dadb635e7 100644 --- a/Source/SpeechToTextV1/Models/SupportedFeatures.swift +++ b/Source/SpeechToTextV1/Models/SupportedFeatures.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/Word.swift b/Source/SpeechToTextV1/Models/Word.swift index f55fcc677..9bfa8ee8c 100644 --- a/Source/SpeechToTextV1/Models/Word.swift +++ b/Source/SpeechToTextV1/Models/Word.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2017, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/WordAlternativeResult.swift b/Source/SpeechToTextV1/Models/WordAlternativeResult.swift index 5d9aa184f..92fbb98c5 100644 --- a/Source/SpeechToTextV1/Models/WordAlternativeResult.swift +++ b/Source/SpeechToTextV1/Models/WordAlternativeResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/WordAlternativeResults.swift b/Source/SpeechToTextV1/Models/WordAlternativeResults.swift index 046a3131b..c8bf1cb78 100644 --- a/Source/SpeechToTextV1/Models/WordAlternativeResults.swift +++ b/Source/SpeechToTextV1/Models/WordAlternativeResults.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/WordError.swift b/Source/SpeechToTextV1/Models/WordError.swift index 235a0fc78..480bf27ea 100644 --- a/Source/SpeechToTextV1/Models/WordError.swift +++ b/Source/SpeechToTextV1/Models/WordError.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/Models/Words.swift b/Source/SpeechToTextV1/Models/Words.swift index 14cecf491..a38110407 100644 --- a/Source/SpeechToTextV1/Models/Words.swift +++ b/Source/SpeechToTextV1/Models/Words.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/SpeechToTextV1/SpeechToText.swift b/Source/SpeechToTextV1/SpeechToText.swift index f587225ca..0170aaafb 100644 --- a/Source/SpeechToTextV1/SpeechToText.swift +++ b/Source/SpeechToTextV1/SpeechToText.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -177,6 +177,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listModels") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -216,6 +218,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -433,6 +437,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "recognize") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" if let contentType = contentType { headerParameters["Content-Type"] = contentType @@ -577,6 +583,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "registerCallback") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -624,6 +632,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "unregisterCallback") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct query parameters var queryParameters = [URLQueryItem]() @@ -892,6 +902,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createJob") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" if let contentType = contentType { headerParameters["Content-Type"] = contentType @@ -1036,6 +1048,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "checkJobs") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -1080,6 +1094,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "checkJob") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -1125,6 +1141,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteJob") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct REST request let path = "/v1/recognitions/\(id)" @@ -1199,6 +1217,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createLanguageModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -1243,6 +1263,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listLanguageModels") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1290,6 +1312,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getLanguageModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -1335,6 +1359,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteLanguageModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -1415,6 +1441,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "trainLanguageModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1473,6 +1501,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "resetLanguageModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -1525,6 +1555,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "upgradeLanguageModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -1570,6 +1602,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listCorpora") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -1672,6 +1706,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "addCorpus") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType @@ -1729,6 +1765,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getCorpus") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -1778,6 +1816,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteCorpus") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -1838,6 +1878,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listWords") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -1937,6 +1979,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "addWords") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -2038,6 +2082,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "addWord") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -2088,6 +2134,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getWord") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -2139,6 +2187,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteWord") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -2184,6 +2234,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listGrammars") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -2285,6 +2337,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "addGrammar") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = contentType @@ -2342,6 +2396,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getGrammar") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -2391,6 +2447,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteGrammar") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -2456,6 +2514,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createAcousticModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -2500,6 +2560,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listAcousticModels") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2547,6 +2609,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getAcousticModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -2592,6 +2656,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteAcousticModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -2673,6 +2739,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "trainAcousticModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2729,6 +2797,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "resetAcousticModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -2797,6 +2867,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "upgradeAcousticModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -2856,6 +2928,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listAudio") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -3001,6 +3075,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "addAudio") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" if let containedContentType = containedContentType { headerParameters["Contained-Content-Type"] = containedContentType @@ -3073,6 +3149,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getAudio") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -3123,6 +3201,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteAudio") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -3170,6 +3250,8 @@ public class SpeechToText { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteUserData") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct query parameters var queryParameters = [URLQueryItem]() diff --git a/Source/TextToSpeechV1/Models/CreateVoiceModel.swift b/Source/TextToSpeechV1/Models/CreateVoiceModel.swift index 123f5cfe6..cbc470a2f 100644 --- a/Source/TextToSpeechV1/Models/CreateVoiceModel.swift +++ b/Source/TextToSpeechV1/Models/CreateVoiceModel.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/Models/Pronunciation.swift b/Source/TextToSpeechV1/Models/Pronunciation.swift index 6c1d276e5..d6ffe3743 100644 --- a/Source/TextToSpeechV1/Models/Pronunciation.swift +++ b/Source/TextToSpeechV1/Models/Pronunciation.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/Models/SupportedFeatures.swift b/Source/TextToSpeechV1/Models/SupportedFeatures.swift index c9011cf69..841642670 100644 --- a/Source/TextToSpeechV1/Models/SupportedFeatures.swift +++ b/Source/TextToSpeechV1/Models/SupportedFeatures.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/Models/Text.swift b/Source/TextToSpeechV1/Models/Text.swift index 08b19073c..3c75c39cd 100644 --- a/Source/TextToSpeechV1/Models/Text.swift +++ b/Source/TextToSpeechV1/Models/Text.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/Models/Translation.swift b/Source/TextToSpeechV1/Models/Translation.swift index f7107b9bc..79fb43741 100644 --- a/Source/TextToSpeechV1/Models/Translation.swift +++ b/Source/TextToSpeechV1/Models/Translation.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/Models/UpdateVoiceModel.swift b/Source/TextToSpeechV1/Models/UpdateVoiceModel.swift index f2f1b7379..be69c86f8 100644 --- a/Source/TextToSpeechV1/Models/UpdateVoiceModel.swift +++ b/Source/TextToSpeechV1/Models/UpdateVoiceModel.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/Models/Voice.swift b/Source/TextToSpeechV1/Models/Voice.swift index d7e2f2ac4..28d94ce0a 100644 --- a/Source/TextToSpeechV1/Models/Voice.swift +++ b/Source/TextToSpeechV1/Models/Voice.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/Models/VoiceModel.swift b/Source/TextToSpeechV1/Models/VoiceModel.swift index 94485a975..5d5da5360 100644 --- a/Source/TextToSpeechV1/Models/VoiceModel.swift +++ b/Source/TextToSpeechV1/Models/VoiceModel.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/Models/VoiceModels.swift b/Source/TextToSpeechV1/Models/VoiceModels.swift index 5cfdf6502..c88f55666 100644 --- a/Source/TextToSpeechV1/Models/VoiceModels.swift +++ b/Source/TextToSpeechV1/Models/VoiceModels.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/Models/Voices.swift b/Source/TextToSpeechV1/Models/Voices.swift index 60682ea81..355d64717 100644 --- a/Source/TextToSpeechV1/Models/Voices.swift +++ b/Source/TextToSpeechV1/Models/Voices.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/Models/Word.swift b/Source/TextToSpeechV1/Models/Word.swift index bb818701d..0ab237d7b 100644 --- a/Source/TextToSpeechV1/Models/Word.swift +++ b/Source/TextToSpeechV1/Models/Word.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/Models/Words.swift b/Source/TextToSpeechV1/Models/Words.swift index 517e7e308..447942877 100644 --- a/Source/TextToSpeechV1/Models/Words.swift +++ b/Source/TextToSpeechV1/Models/Words.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/TextToSpeechV1/TextToSpeech.swift b/Source/TextToSpeechV1/TextToSpeech.swift index 199881dca..11250d63f 100644 --- a/Source/TextToSpeechV1/TextToSpeech.swift +++ b/Source/TextToSpeechV1/TextToSpeech.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -174,6 +174,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listVoices") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -217,6 +219,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getVoice") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -335,6 +339,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "synthesize") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Content-Type"] = "application/json" if let accept = accept { headerParameters["Accept"] = accept @@ -434,6 +440,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getPronunciation") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -506,6 +514,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createVoiceModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -550,6 +560,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listVoiceModels") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -629,6 +641,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateVoiceModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -677,6 +691,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getVoiceModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -722,6 +738,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteVoiceModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct REST request let path = "/v1/customizations/\(customizationID)" @@ -793,6 +811,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "addWords") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" @@ -841,6 +861,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listWords") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -920,6 +942,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "addWord") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Content-Type"] = "application/json" // construct REST request @@ -968,6 +992,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getWord") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct REST request @@ -1015,6 +1041,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteWord") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct REST request let path = "/v1/customizations/\(customizationID)/words/\(word)" @@ -1061,6 +1089,8 @@ public class TextToSpeech { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteUserData") + headerParameters.merge(sdkHeaders) { (_, new) in new } // construct query parameters var queryParameters = [URLQueryItem]() diff --git a/Source/ToneAnalyzerV3/Models/DocumentAnalysis.swift b/Source/ToneAnalyzerV3/Models/DocumentAnalysis.swift index 692e0b2ce..e53ea01c8 100644 --- a/Source/ToneAnalyzerV3/Models/DocumentAnalysis.swift +++ b/Source/ToneAnalyzerV3/Models/DocumentAnalysis.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/Models/SentenceAnalysis.swift b/Source/ToneAnalyzerV3/Models/SentenceAnalysis.swift index 3a2e5c256..2abdb8ef7 100644 --- a/Source/ToneAnalyzerV3/Models/SentenceAnalysis.swift +++ b/Source/ToneAnalyzerV3/Models/SentenceAnalysis.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/Models/ToneAnalysis.swift b/Source/ToneAnalyzerV3/Models/ToneAnalysis.swift index aa24a5c1d..894687e58 100644 --- a/Source/ToneAnalyzerV3/Models/ToneAnalysis.swift +++ b/Source/ToneAnalyzerV3/Models/ToneAnalysis.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/Models/ToneCategory.swift b/Source/ToneAnalyzerV3/Models/ToneCategory.swift index 4ee47c40c..cc209eac8 100644 --- a/Source/ToneAnalyzerV3/Models/ToneCategory.swift +++ b/Source/ToneAnalyzerV3/Models/ToneCategory.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/Models/ToneChatInput.swift b/Source/ToneAnalyzerV3/Models/ToneChatInput.swift index 6e63ae964..d461889f4 100644 --- a/Source/ToneAnalyzerV3/Models/ToneChatInput.swift +++ b/Source/ToneAnalyzerV3/Models/ToneChatInput.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/Models/ToneChatScore.swift b/Source/ToneAnalyzerV3/Models/ToneChatScore.swift index 239c75877..a2f5a7aee 100644 --- a/Source/ToneAnalyzerV3/Models/ToneChatScore.swift +++ b/Source/ToneAnalyzerV3/Models/ToneChatScore.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/Models/ToneContent.swift b/Source/ToneAnalyzerV3/Models/ToneContent.swift index 17a59194e..b50683224 100644 --- a/Source/ToneAnalyzerV3/Models/ToneContent.swift +++ b/Source/ToneAnalyzerV3/Models/ToneContent.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/Models/ToneInput.swift b/Source/ToneAnalyzerV3/Models/ToneInput.swift index a43a61c4b..905f0835f 100644 --- a/Source/ToneAnalyzerV3/Models/ToneInput.swift +++ b/Source/ToneAnalyzerV3/Models/ToneInput.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/Models/ToneScore.swift b/Source/ToneAnalyzerV3/Models/ToneScore.swift index 324c04870..8fd1f922e 100644 --- a/Source/ToneAnalyzerV3/Models/ToneScore.swift +++ b/Source/ToneAnalyzerV3/Models/ToneScore.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/Models/Utterance.swift b/Source/ToneAnalyzerV3/Models/Utterance.swift index b5e1ad884..c0208a5f4 100644 --- a/Source/ToneAnalyzerV3/Models/Utterance.swift +++ b/Source/ToneAnalyzerV3/Models/Utterance.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/Models/UtteranceAnalyses.swift b/Source/ToneAnalyzerV3/Models/UtteranceAnalyses.swift index 65fff66be..38a3aa18b 100644 --- a/Source/ToneAnalyzerV3/Models/UtteranceAnalyses.swift +++ b/Source/ToneAnalyzerV3/Models/UtteranceAnalyses.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/Models/UtteranceAnalysis.swift b/Source/ToneAnalyzerV3/Models/UtteranceAnalysis.swift index aa96ff5c4..b028ef9b0 100644 --- a/Source/ToneAnalyzerV3/Models/UtteranceAnalysis.swift +++ b/Source/ToneAnalyzerV3/Models/UtteranceAnalysis.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/ToneAnalyzerV3/ToneAnalyzer.swift b/Source/ToneAnalyzerV3/ToneAnalyzer.swift index 15d6a0826..3f3e8c3b0 100644 --- a/Source/ToneAnalyzerV3/ToneAnalyzer.swift +++ b/Source/ToneAnalyzerV3/ToneAnalyzer.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -216,6 +216,8 @@ public class ToneAnalyzer { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "tone") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = toneContent.contentType if let contentLanguage = contentLanguage { @@ -297,6 +299,8 @@ public class ToneAnalyzer { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "toneChat") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = "application/json" if let contentLanguage = contentLanguage { diff --git a/Source/VisualRecognitionV3/Models/Class.swift b/Source/VisualRecognitionV3/Models/Class.swift index c539a7fc3..38b5310d0 100644 --- a/Source/VisualRecognitionV3/Models/Class.swift +++ b/Source/VisualRecognitionV3/Models/Class.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/ClassResult.swift b/Source/VisualRecognitionV3/Models/ClassResult.swift index 0cca830ee..c0869280f 100644 --- a/Source/VisualRecognitionV3/Models/ClassResult.swift +++ b/Source/VisualRecognitionV3/Models/ClassResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/ClassifiedImage.swift b/Source/VisualRecognitionV3/Models/ClassifiedImage.swift index 32c431777..e6edcc194 100644 --- a/Source/VisualRecognitionV3/Models/ClassifiedImage.swift +++ b/Source/VisualRecognitionV3/Models/ClassifiedImage.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/ClassifiedImages.swift b/Source/VisualRecognitionV3/Models/ClassifiedImages.swift index dce64e8b5..11decfac9 100644 --- a/Source/VisualRecognitionV3/Models/ClassifiedImages.swift +++ b/Source/VisualRecognitionV3/Models/ClassifiedImages.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/Classifier.swift b/Source/VisualRecognitionV3/Models/Classifier.swift index b7c9cf1a0..c57a9bb05 100644 --- a/Source/VisualRecognitionV3/Models/Classifier.swift +++ b/Source/VisualRecognitionV3/Models/Classifier.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/ClassifierResult.swift b/Source/VisualRecognitionV3/Models/ClassifierResult.swift index 3f3d902fd..900430d43 100644 --- a/Source/VisualRecognitionV3/Models/ClassifierResult.swift +++ b/Source/VisualRecognitionV3/Models/ClassifierResult.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/Classifiers.swift b/Source/VisualRecognitionV3/Models/Classifiers.swift index dc9aa0b61..583e596a7 100644 --- a/Source/VisualRecognitionV3/Models/Classifiers.swift +++ b/Source/VisualRecognitionV3/Models/Classifiers.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/DetectedFaces.swift b/Source/VisualRecognitionV3/Models/DetectedFaces.swift index c580d2c6a..397abc992 100644 --- a/Source/VisualRecognitionV3/Models/DetectedFaces.swift +++ b/Source/VisualRecognitionV3/Models/DetectedFaces.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/ErrorInfo.swift b/Source/VisualRecognitionV3/Models/ErrorInfo.swift index 955e8334d..b683ea46c 100644 --- a/Source/VisualRecognitionV3/Models/ErrorInfo.swift +++ b/Source/VisualRecognitionV3/Models/ErrorInfo.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/Face.swift b/Source/VisualRecognitionV3/Models/Face.swift index fb9c5812b..6966bf178 100644 --- a/Source/VisualRecognitionV3/Models/Face.swift +++ b/Source/VisualRecognitionV3/Models/Face.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/FaceAge.swift b/Source/VisualRecognitionV3/Models/FaceAge.swift index a29ec9275..3cad60b6a 100644 --- a/Source/VisualRecognitionV3/Models/FaceAge.swift +++ b/Source/VisualRecognitionV3/Models/FaceAge.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/FaceGender.swift b/Source/VisualRecognitionV3/Models/FaceGender.swift index 5e69a07d9..d295b32be 100644 --- a/Source/VisualRecognitionV3/Models/FaceGender.swift +++ b/Source/VisualRecognitionV3/Models/FaceGender.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/FaceLocation.swift b/Source/VisualRecognitionV3/Models/FaceLocation.swift index e87427fc4..b073b2842 100644 --- a/Source/VisualRecognitionV3/Models/FaceLocation.swift +++ b/Source/VisualRecognitionV3/Models/FaceLocation.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/ImageWithFaces.swift b/Source/VisualRecognitionV3/Models/ImageWithFaces.swift index 9c572757a..53a3f7a40 100644 --- a/Source/VisualRecognitionV3/Models/ImageWithFaces.swift +++ b/Source/VisualRecognitionV3/Models/ImageWithFaces.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/Models/WarningInfo.swift b/Source/VisualRecognitionV3/Models/WarningInfo.swift index 36690249d..25c733e94 100644 --- a/Source/VisualRecognitionV3/Models/WarningInfo.swift +++ b/Source/VisualRecognitionV3/Models/WarningInfo.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2018. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Source/VisualRecognitionV3/VisualRecognition.swift b/Source/VisualRecognitionV3/VisualRecognition.swift index 99960d1fd..901c1861e 100644 --- a/Source/VisualRecognitionV3/VisualRecognition.swift +++ b/Source/VisualRecognitionV3/VisualRecognition.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2019 + * (C) Copyright IBM Corp. 2016, 2019. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -238,6 +238,8 @@ public class VisualRecognition { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "classify") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType if let acceptLanguage = acceptLanguage { @@ -322,6 +324,8 @@ public class VisualRecognition { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "detectFaces") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType if let acceptLanguage = acceptLanguage { @@ -403,6 +407,8 @@ public class VisualRecognition { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "createClassifier") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType @@ -444,6 +450,8 @@ public class VisualRecognition { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "listClassifiers") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -488,6 +496,8 @@ public class VisualRecognition { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getClassifier") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -571,6 +581,8 @@ public class VisualRecognition { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "updateClassifier") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" headerParameters["Content-Type"] = multipartFormData.contentType @@ -616,6 +628,8 @@ public class VisualRecognition { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteClassifier") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters @@ -662,6 +676,8 @@ public class VisualRecognition { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "getCoreMLModel") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/octet-stream" // construct query parameters @@ -711,6 +727,8 @@ public class VisualRecognition { if let headers = headers { headerParameters.merge(headers) { (_, new) in new } } + let sdkHeaders = Shared.getSDKHeaders(serviceName: serviceName, serviceVersion: serviceVersion, methodName: "deleteUserData") + headerParameters.merge(sdkHeaders) { (_, new) in new } headerParameters["Accept"] = "application/json" // construct query parameters