Add support to designate models and enums as internal (#311)
* Support --internal-models for objects and enums. * Rename to `--remap-models` * Support aliasing all names. * Replace azure-sdk-for-ios.git references with SwiftPM-AzureCore.git * Prevent overwriting certain files if they already exist. * Fix exists check. * Fix for options visibility. * Generate options files outside an extension. * Apply remapping to parameter types and return types. * Alias PagedCollection types. * Restore logging back to warning. * Regenerate tests * Regenerate file and update. * Update tests. * Change `--remap-models` to `--generate-as-internal`
This commit is contained in:
Родитель
513e77b7e5
Коммит
582c848219
|
@ -133,11 +133,9 @@
|
||||||
0A47434C2582919700CA86E5 /* Import_Snippet.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0A22B07024CB71E100EC018E /* Import_Snippet.stencil */; };
|
0A47434C2582919700CA86E5 /* Import_Snippet.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0A22B07024CB71E100EC018E /* Import_Snippet.stencil */; };
|
||||||
0A47434D2582919700CA86E5 /* Jazzy_File.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0A22B46324E1E64900EC018E /* Jazzy_File.stencil */; };
|
0A47434D2582919700CA86E5 /* Jazzy_File.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0A22B46324E1E64900EC018E /* Jazzy_File.stencil */; };
|
||||||
0A47434E2582919700CA86E5 /* Method_Options_File.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0A22B0C024D32F2E00EC018E /* Method_Options_File.stencil */; };
|
0A47434E2582919700CA86E5 /* Method_Options_File.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0A22B0C024D32F2E00EC018E /* Method_Options_File.stencil */; };
|
||||||
0A47434F2582919700CA86E5 /* Method_Options_Snippet.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = F1731F2E2522E4D8006CDED8 /* Method_Options_Snippet.stencil */; };
|
|
||||||
0A4743502582919700CA86E5 /* Model_Codable_Snippet.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = F1A5FD7A24DCFECB00A5CC6C /* Model_Codable_Snippet.stencil */; };
|
0A4743502582919700CA86E5 /* Model_Codable_Snippet.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = F1A5FD7A24DCFECB00A5CC6C /* Model_Codable_Snippet.stencil */; };
|
||||||
0A4743552582919700CA86E5 /* Model_File.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0A22B07324CB71E100EC018E /* Model_File.stencil */; };
|
0A4743552582919700CA86E5 /* Model_File.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0A22B07324CB71E100EC018E /* Model_File.stencil */; };
|
||||||
0A4743562582919700CA86E5 /* Named_OperationGroup_File.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = F1587DA8251A965900A89B98 /* Named_OperationGroup_File.stencil */; };
|
0A4743562582919700CA86E5 /* Named_OperationGroup_File.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = F1587DA8251A965900A89B98 /* Named_OperationGroup_File.stencil */; };
|
||||||
0A4743572582919700CA86E5 /* NamedMethod_Options_File.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = F1731F2F2522E4F0006CDED8 /* NamedMethod_Options_File.stencil */; };
|
|
||||||
0A4743582582919700CA86E5 /* Operation_BodyParam_Snippet.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0A22B46124DCE50400EC018E /* Operation_BodyParam_Snippet.stencil */; };
|
0A4743582582919700CA86E5 /* Operation_BodyParam_Snippet.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0A22B46124DCE50400EC018E /* Operation_BodyParam_Snippet.stencil */; };
|
||||||
0A4743592582919700CA86E5 /* Operation_DefaultException_Snippet.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = F187186C250C2B3F00318867 /* Operation_DefaultException_Snippet.stencil */; };
|
0A4743592582919700CA86E5 /* Operation_DefaultException_Snippet.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = F187186C250C2B3F00318867 /* Operation_DefaultException_Snippet.stencil */; };
|
||||||
0A47435A2582919700CA86E5 /* Operation_Request_Body_Snippet.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = F1068F3C24D484A90082793F /* Operation_Request_Body_Snippet.stencil */; };
|
0A47435A2582919700CA86E5 /* Operation_Request_Body_Snippet.stencil in CopyFiles */ = {isa = PBXBuildFile; fileRef = F1068F3C24D484A90082793F /* Operation_Request_Body_Snippet.stencil */; };
|
||||||
|
@ -239,8 +237,6 @@
|
||||||
61408633D6F295F6BEB082F0 /* libPods-AutorestSwift.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A3FDFDBC61B301CB1982C7A8 /* libPods-AutorestSwift.a */; };
|
61408633D6F295F6BEB082F0 /* libPods-AutorestSwift.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A3FDFDBC61B301CB1982C7A8 /* libPods-AutorestSwift.a */; };
|
||||||
F106826D24CF5B9C007EB4D5 /* .swiftlint.yml in CopyFiles */ = {isa = PBXBuildFile; fileRef = F106826C24CF5B7C007EB4D5 /* .swiftlint.yml */; };
|
F106826D24CF5B9C007EB4D5 /* .swiftlint.yml in CopyFiles */ = {isa = PBXBuildFile; fileRef = F106826C24CF5B7C007EB4D5 /* .swiftlint.yml */; };
|
||||||
F106826E24CF5B9C007EB4D5 /* .swiftformat in CopyFiles */ = {isa = PBXBuildFile; fileRef = F106826B24CF5B71007EB4D5 /* .swiftformat */; };
|
F106826E24CF5B9C007EB4D5 /* .swiftformat in CopyFiles */ = {isa = PBXBuildFile; fileRef = F106826B24CF5B71007EB4D5 /* .swiftformat */; };
|
||||||
F106830424CF93C5007EB4D5 /* swiftformat in CopyFiles */ = {isa = PBXBuildFile; fileRef = F106830324CF9244007EB4D5 /* swiftformat */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
|
|
||||||
F106830524CF93CD007EB4D5 /* swiftlint in CopyFiles */ = {isa = PBXBuildFile; fileRef = F106830124CF9220007EB4D5 /* swiftlint */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
|
|
||||||
F10B1F6325414556007DA581 /* Dictionary+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = F10B1F6125414556007DA581 /* Dictionary+Extension.swift */; };
|
F10B1F6325414556007DA581 /* Dictionary+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = F10B1F6125414556007DA581 /* Dictionary+Extension.swift */; };
|
||||||
F15D30EF2548F38700265366 /* AutoRestUrlPathItemsTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = F15D30EC2548F38700265366 /* AutoRestUrlPathItemsTest.swift */; };
|
F15D30EF2548F38700265366 /* AutoRestUrlPathItemsTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = F15D30EC2548F38700265366 /* AutoRestUrlPathItemsTest.swift */; };
|
||||||
F15D30F02548F38700265366 /* AutoRestUrlQueriesTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = F15D30ED2548F38700265366 /* AutoRestUrlQueriesTest.swift */; };
|
F15D30F02548F38700265366 /* AutoRestUrlQueriesTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = F15D30ED2548F38700265366 /* AutoRestUrlQueriesTest.swift */; };
|
||||||
|
@ -266,8 +262,6 @@
|
||||||
dstPath = "";
|
dstPath = "";
|
||||||
dstSubfolderSpec = 6;
|
dstSubfolderSpec = 6;
|
||||||
files = (
|
files = (
|
||||||
F106830524CF93CD007EB4D5 /* swiftlint in CopyFiles */,
|
|
||||||
F106830424CF93C5007EB4D5 /* swiftformat in CopyFiles */,
|
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -296,11 +290,9 @@
|
||||||
0A47434C2582919700CA86E5 /* Import_Snippet.stencil in CopyFiles */,
|
0A47434C2582919700CA86E5 /* Import_Snippet.stencil in CopyFiles */,
|
||||||
0A47434D2582919700CA86E5 /* Jazzy_File.stencil in CopyFiles */,
|
0A47434D2582919700CA86E5 /* Jazzy_File.stencil in CopyFiles */,
|
||||||
0A47434E2582919700CA86E5 /* Method_Options_File.stencil in CopyFiles */,
|
0A47434E2582919700CA86E5 /* Method_Options_File.stencil in CopyFiles */,
|
||||||
0A47434F2582919700CA86E5 /* Method_Options_Snippet.stencil in CopyFiles */,
|
|
||||||
0A4743502582919700CA86E5 /* Model_Codable_Snippet.stencil in CopyFiles */,
|
0A4743502582919700CA86E5 /* Model_Codable_Snippet.stencil in CopyFiles */,
|
||||||
0A4743552582919700CA86E5 /* Model_File.stencil in CopyFiles */,
|
0A4743552582919700CA86E5 /* Model_File.stencil in CopyFiles */,
|
||||||
0A4743562582919700CA86E5 /* Named_OperationGroup_File.stencil in CopyFiles */,
|
0A4743562582919700CA86E5 /* Named_OperationGroup_File.stencil in CopyFiles */,
|
||||||
0A4743572582919700CA86E5 /* NamedMethod_Options_File.stencil in CopyFiles */,
|
|
||||||
0A4743582582919700CA86E5 /* Operation_BodyParam_Snippet.stencil in CopyFiles */,
|
0A4743582582919700CA86E5 /* Operation_BodyParam_Snippet.stencil in CopyFiles */,
|
||||||
0A4743592582919700CA86E5 /* Operation_DefaultException_Snippet.stencil in CopyFiles */,
|
0A4743592582919700CA86E5 /* Operation_DefaultException_Snippet.stencil in CopyFiles */,
|
||||||
0A47435A2582919700CA86E5 /* Operation_Request_Body_Snippet.stencil in CopyFiles */,
|
0A47435A2582919700CA86E5 /* Operation_Request_Body_Snippet.stencil in CopyFiles */,
|
||||||
|
@ -458,8 +450,6 @@
|
||||||
BE64E2670A1CB8357C872FB4 /* Pods-AutorestSwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AutorestSwift.release.xcconfig"; path = "Target Support Files/Pods-AutorestSwift/Pods-AutorestSwift.release.xcconfig"; sourceTree = "<group>"; };
|
BE64E2670A1CB8357C872FB4 /* Pods-AutorestSwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AutorestSwift.release.xcconfig"; path = "Target Support Files/Pods-AutorestSwift/Pods-AutorestSwift.release.xcconfig"; sourceTree = "<group>"; };
|
||||||
F106826B24CF5B71007EB4D5 /* .swiftformat */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .swiftformat; sourceTree = SOURCE_ROOT; };
|
F106826B24CF5B71007EB4D5 /* .swiftformat */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .swiftformat; sourceTree = SOURCE_ROOT; };
|
||||||
F106826C24CF5B7C007EB4D5 /* .swiftlint.yml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.yaml; path = .swiftlint.yml; sourceTree = SOURCE_ROOT; };
|
F106826C24CF5B7C007EB4D5 /* .swiftlint.yml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.yaml; path = .swiftlint.yml; sourceTree = SOURCE_ROOT; };
|
||||||
F106830124CF9220007EB4D5 /* swiftlint */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; name = swiftlint; path = ../Pods/SwiftLint/swiftlint; sourceTree = "<group>"; };
|
|
||||||
F106830324CF9244007EB4D5 /* swiftformat */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; name = swiftformat; path = ../Pods/SwiftFormat/CommandLineTool/swiftformat; sourceTree = "<group>"; };
|
|
||||||
F106830624CF9E0A007EB4D5 /* PackageFileViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PackageFileViewModel.swift; sourceTree = "<group>"; };
|
F106830624CF9E0A007EB4D5 /* PackageFileViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PackageFileViewModel.swift; sourceTree = "<group>"; };
|
||||||
F1068F3C24D484A90082793F /* Operation_Request_Body_Snippet.stencil */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Operation_Request_Body_Snippet.stencil; sourceTree = "<group>"; };
|
F1068F3C24D484A90082793F /* Operation_Request_Body_Snippet.stencil */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Operation_Request_Body_Snippet.stencil; sourceTree = "<group>"; };
|
||||||
F10B1F6125414556007DA581 /* Dictionary+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Dictionary+Extension.swift"; sourceTree = "<group>"; };
|
F10B1F6125414556007DA581 /* Dictionary+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Dictionary+Extension.swift"; sourceTree = "<group>"; };
|
||||||
|
@ -482,8 +472,6 @@
|
||||||
F16CDA162568765700FD0817 /* AutoRestDateTimeTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AutoRestDateTimeTest.swift; sourceTree = "<group>"; };
|
F16CDA162568765700FD0817 /* AutoRestDateTimeTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AutoRestDateTimeTest.swift; sourceTree = "<group>"; };
|
||||||
F16CDA172568765800FD0817 /* AutoRestDateTimeRfc1123Test.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AutoRestDateTimeRfc1123Test.swift; sourceTree = "<group>"; };
|
F16CDA172568765800FD0817 /* AutoRestDateTimeRfc1123Test.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AutoRestDateTimeRfc1123Test.swift; sourceTree = "<group>"; };
|
||||||
F170D321253F786800A569A0 /* Util.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Util.swift; sourceTree = "<group>"; };
|
F170D321253F786800A569A0 /* Util.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Util.swift; sourceTree = "<group>"; };
|
||||||
F1731F2E2522E4D8006CDED8 /* Method_Options_Snippet.stencil */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Method_Options_Snippet.stencil; sourceTree = "<group>"; };
|
|
||||||
F1731F2F2522E4F0006CDED8 /* NamedMethod_Options_File.stencil */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = NamedMethod_Options_File.stencil; sourceTree = "<group>"; };
|
|
||||||
F187186C250C2B3F00318867 /* Operation_DefaultException_Snippet.stencil */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Operation_DefaultException_Snippet.stencil; sourceTree = "<group>"; };
|
F187186C250C2B3F00318867 /* Operation_DefaultException_Snippet.stencil */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Operation_DefaultException_Snippet.stencil; sourceTree = "<group>"; };
|
||||||
F19B01D02507E21100121831 /* ExceptionResponseViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ExceptionResponseViewModel.swift; sourceTree = "<group>"; };
|
F19B01D02507E21100121831 /* ExceptionResponseViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ExceptionResponseViewModel.swift; sourceTree = "<group>"; };
|
||||||
F19B01D62507EA1300121831 /* Operation_Response_StatusCode_Snippet.stencil */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Operation_Response_StatusCode_Snippet.stencil; sourceTree = "<group>"; };
|
F19B01D62507EA1300121831 /* Operation_Response_StatusCode_Snippet.stencil */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Operation_Response_StatusCode_Snippet.stencil; sourceTree = "<group>"; };
|
||||||
|
@ -682,11 +670,9 @@
|
||||||
0A22B07024CB71E100EC018E /* Import_Snippet.stencil */,
|
0A22B07024CB71E100EC018E /* Import_Snippet.stencil */,
|
||||||
0A22B46324E1E64900EC018E /* Jazzy_File.stencil */,
|
0A22B46324E1E64900EC018E /* Jazzy_File.stencil */,
|
||||||
0A22B0C024D32F2E00EC018E /* Method_Options_File.stencil */,
|
0A22B0C024D32F2E00EC018E /* Method_Options_File.stencil */,
|
||||||
F1731F2E2522E4D8006CDED8 /* Method_Options_Snippet.stencil */,
|
|
||||||
F1A5FD7A24DCFECB00A5CC6C /* Model_Codable_Snippet.stencil */,
|
F1A5FD7A24DCFECB00A5CC6C /* Model_Codable_Snippet.stencil */,
|
||||||
0A22B07324CB71E100EC018E /* Model_File.stencil */,
|
0A22B07324CB71E100EC018E /* Model_File.stencil */,
|
||||||
F1587DA8251A965900A89B98 /* Named_OperationGroup_File.stencil */,
|
F1587DA8251A965900A89B98 /* Named_OperationGroup_File.stencil */,
|
||||||
F1731F2F2522E4F0006CDED8 /* NamedMethod_Options_File.stencil */,
|
|
||||||
0A22B46124DCE50400EC018E /* Operation_BodyParam_Snippet.stencil */,
|
0A22B46124DCE50400EC018E /* Operation_BodyParam_Snippet.stencil */,
|
||||||
F187186C250C2B3F00318867 /* Operation_DefaultException_Snippet.stencil */,
|
F187186C250C2B3F00318867 /* Operation_DefaultException_Snippet.stencil */,
|
||||||
F1068F3C24D484A90082793F /* Operation_Request_Body_Snippet.stencil */,
|
F1068F3C24D484A90082793F /* Operation_Request_Body_Snippet.stencil */,
|
||||||
|
@ -804,15 +790,6 @@
|
||||||
path = configs;
|
path = configs;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
F106830224CF9226007EB4D5 /* tools */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
F106830324CF9244007EB4D5 /* swiftformat */,
|
|
||||||
F106830124CF9220007EB4D5 /* swiftlint */,
|
|
||||||
);
|
|
||||||
path = tools;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
F1A6719324F5CCCC00C2712C /* AutorestSwiftTest */ = {
|
F1A6719324F5CCCC00C2712C /* AutorestSwiftTest */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
@ -842,7 +819,6 @@
|
||||||
0ADDD29225915C1300BD5E58 /* validation */,
|
0ADDD29225915C1300BD5E58 /* validation */,
|
||||||
0ADDD0FD258D656A00BD5E58 /* extensible-enums-swagger */,
|
0ADDD0FD258D656A00BD5E58 /* extensible-enums-swagger */,
|
||||||
0AB80BBA257982D7008506CD /* xms-error-responses */,
|
0AB80BBA257982D7008506CD /* xms-error-responses */,
|
||||||
F1A6719624F5CCCC00C2712C /* Info.plist */,
|
|
||||||
F15A9283254B089700E2D9C2 /* AutoRestBodyIntegerTest.swift */,
|
F15A9283254B089700E2D9C2 /* AutoRestBodyIntegerTest.swift */,
|
||||||
F16CDA152568765700FD0817 /* AutoRestDateTest.swift */,
|
F16CDA152568765700FD0817 /* AutoRestDateTest.swift */,
|
||||||
F16CDA172568765800FD0817 /* AutoRestDateTimeRfc1123Test.swift */,
|
F16CDA172568765800FD0817 /* AutoRestDateTimeRfc1123Test.swift */,
|
||||||
|
@ -965,13 +941,13 @@
|
||||||
0AA2B98824E5FD6500CEA1D6 /* package.json */,
|
0AA2B98824E5FD6500CEA1D6 /* package.json */,
|
||||||
0A22B09524D09C2900EC018E /* Makefile */,
|
0A22B09524D09C2900EC018E /* Makefile */,
|
||||||
OBJ_6 /* Package.swift */,
|
OBJ_6 /* Package.swift */,
|
||||||
|
F1A6719624F5CCCC00C2712C /* Info.plist */,
|
||||||
OBJ_7 /* Sources */,
|
OBJ_7 /* Sources */,
|
||||||
F1A6719324F5CCCC00C2712C /* AutorestSwiftTest */,
|
F1A6719324F5CCCC00C2712C /* AutorestSwiftTest */,
|
||||||
OBJ_114 /* Products */,
|
OBJ_114 /* Products */,
|
||||||
0A97DC5025D5BE7D00E38BF8 /* eng */,
|
0A97DC5025D5BE7D00E38BF8 /* eng */,
|
||||||
OBJ_120 /* scripts */,
|
OBJ_120 /* scripts */,
|
||||||
0A22B06F24CB71E100EC018E /* templates */,
|
0A22B06F24CB71E100EC018E /* templates */,
|
||||||
F106830224CF9226007EB4D5 /* tools */,
|
|
||||||
F106826A24CF5AB9007EB4D5 /* configs */,
|
F106826A24CF5AB9007EB4D5 /* configs */,
|
||||||
OBJ_122 /* LICENSE */,
|
OBJ_122 /* LICENSE */,
|
||||||
OBJ_124 /* README.md */,
|
OBJ_124 /* README.md */,
|
||||||
|
@ -1497,7 +1473,7 @@
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
INFOPLIST_FILE = AutorestSwiftTest/Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/../Frameworks",
|
"@executable_path/../Frameworks",
|
||||||
|
@ -1562,7 +1538,7 @@
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
INFOPLIST_FILE = AutorestSwiftTest/Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/../Frameworks",
|
"@executable_path/../Frameworks",
|
||||||
|
@ -1593,7 +1569,7 @@
|
||||||
"$(PROJECT_DIR)/Carthage/Build/Mac",
|
"$(PROJECT_DIR)/Carthage/Build/Mac",
|
||||||
);
|
);
|
||||||
HEADER_SEARCH_PATHS = "$(inherited)";
|
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||||
INFOPLIST_FILE = AutorestSwift.xcodeproj/AutorestSwift_Info.plist;
|
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
|
@ -1604,6 +1580,7 @@
|
||||||
OTHER_CFLAGS = "$(inherited)";
|
OTHER_CFLAGS = "$(inherited)";
|
||||||
OTHER_LDFLAGS = "$(inherited)";
|
OTHER_LDFLAGS = "$(inherited)";
|
||||||
OTHER_SWIFT_FLAGS = "$(inherited)";
|
OTHER_SWIFT_FLAGS = "$(inherited)";
|
||||||
|
SUPPORTED_PLATFORMS = macosx;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)";
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)";
|
||||||
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
|
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
|
||||||
SWIFT_FORCE_STATIC_LINK_STDLIB = NO;
|
SWIFT_FORCE_STATIC_LINK_STDLIB = NO;
|
||||||
|
@ -1626,7 +1603,7 @@
|
||||||
"$(PROJECT_DIR)/Carthage/Build/Mac",
|
"$(PROJECT_DIR)/Carthage/Build/Mac",
|
||||||
);
|
);
|
||||||
HEADER_SEARCH_PATHS = "$(inherited)";
|
HEADER_SEARCH_PATHS = "$(inherited)";
|
||||||
INFOPLIST_FILE = AutorestSwift.xcodeproj/AutorestSwift_Info.plist;
|
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
|
@ -1637,6 +1614,7 @@
|
||||||
OTHER_CFLAGS = "$(inherited)";
|
OTHER_CFLAGS = "$(inherited)";
|
||||||
OTHER_LDFLAGS = "$(inherited)";
|
OTHER_LDFLAGS = "$(inherited)";
|
||||||
OTHER_SWIFT_FLAGS = "$(inherited)";
|
OTHER_SWIFT_FLAGS = "$(inherited)";
|
||||||
|
SUPPORTED_PLATFORMS = macosx;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)";
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)";
|
||||||
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
|
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
|
||||||
SWIFT_FORCE_STATIC_LINK_STDLIB = NO;
|
SWIFT_FORCE_STATIC_LINK_STDLIB = NO;
|
||||||
|
@ -1667,7 +1645,7 @@
|
||||||
OTHER_SWIFT_FLAGS = "$(inherited) -DXcode";
|
OTHER_SWIFT_FLAGS = "$(inherited) -DXcode";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SUPPORTED_PLATFORMS = "macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator";
|
SUPPORTED_PLATFORMS = macosx;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SWIFT_PACKAGE DEBUG";
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SWIFT_PACKAGE DEBUG";
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
USE_HEADERMAP = NO;
|
USE_HEADERMAP = NO;
|
||||||
|
@ -1691,7 +1669,7 @@
|
||||||
OTHER_SWIFT_FLAGS = "$(inherited) -DXcode";
|
OTHER_SWIFT_FLAGS = "$(inherited) -DXcode";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SUPPORTED_PLATFORMS = "macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator";
|
SUPPORTED_PLATFORMS = macosx;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SWIFT_PACKAGE";
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SWIFT_PACKAGE";
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-O";
|
SWIFT_OPTIMIZATION_LEVEL = "-O";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Scheme
|
<Scheme
|
||||||
LastUpgradeVersion = "1220"
|
LastUpgradeVersion = "1240"
|
||||||
version = "1.3">
|
version = "1.3">
|
||||||
<BuildAction
|
<BuildAction
|
||||||
parallelizeBuildables = "YES"
|
parallelizeBuildables = "YES"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Scheme
|
<Scheme
|
||||||
LastUpgradeVersion = "1220"
|
LastUpgradeVersion = "1240"
|
||||||
version = "1.3">
|
version = "1.3">
|
||||||
<BuildAction
|
<BuildAction
|
||||||
parallelizeBuildables = "YES"
|
parallelizeBuildables = "YES"
|
||||||
|
|
|
@ -311,7 +311,7 @@ class AutoRestSwaggerBatHeaderTest: XCTestCase {
|
||||||
func test_header_paramString200() throws {
|
func test_header_paramString200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call header.paramString")
|
let expectation = XCTestExpectation(description: "Call header.paramString")
|
||||||
|
|
||||||
let options = Header.ParamStringOptions(
|
let options = ParamStringOptions(
|
||||||
value: "The quick brown fox jumps over the lazy dog"
|
value: "The quick brown fox jumps over the lazy dog"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -326,7 +326,7 @@ class AutoRestSwaggerBatHeaderTest: XCTestCase {
|
||||||
expectation.fulfill()
|
expectation.fulfill()
|
||||||
}
|
}
|
||||||
|
|
||||||
let emptyOptions = Header.ParamStringOptions(
|
let emptyOptions = ParamStringOptions(
|
||||||
value: ""
|
value: ""
|
||||||
)
|
)
|
||||||
client.header.paramString(scenario: "empty", withOptions: emptyOptions) { result, httpResponse in
|
client.header.paramString(scenario: "empty", withOptions: emptyOptions) { result, httpResponse in
|
||||||
|
@ -494,7 +494,7 @@ class AutoRestSwaggerBatHeaderTest: XCTestCase {
|
||||||
|
|
||||||
let dateString = "Wed, 01 Jan 2010 12:34:56 GMT"
|
let dateString = "Wed, 01 Jan 2010 12:34:56 GMT"
|
||||||
let date = Rfc1123Date(string: dateString)!
|
let date = Rfc1123Date(string: dateString)!
|
||||||
let options = Header.ParamDatetimeRfc1123Options(
|
let options = ParamDatetimeRfc1123Options(
|
||||||
value: date
|
value: date
|
||||||
)
|
)
|
||||||
client.header.paramDatetimeRfc1123(scenario: "valid", withOptions: options) { result, httpResponse in
|
client.header.paramDatetimeRfc1123(scenario: "valid", withOptions: options) { result, httpResponse in
|
||||||
|
@ -541,7 +541,7 @@ class AutoRestSwaggerBatHeaderTest: XCTestCase {
|
||||||
func test_header_paramEnum200() throws {
|
func test_header_paramEnum200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call header.paramEnum")
|
let expectation = XCTestExpectation(description: "Call header.paramEnum")
|
||||||
|
|
||||||
let options = Header.ParamEnumOptions(
|
let options = ParamEnumOptions(
|
||||||
value: .grey
|
value: .grey
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ class AutoRestParameterizedCustomHostTest: XCTestCase {
|
||||||
func test_getEmpty200() throws {
|
func test_getEmpty200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call paths.getEmpty")
|
let expectation = XCTestExpectation(description: "Call paths.getEmpty")
|
||||||
|
|
||||||
let options = Paths.GetEmptyOptions(
|
let options = GetEmptyOptions(
|
||||||
keyVersion: "v1"
|
keyVersion: "v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ class AutoRestUrlMutliCollectionFormatTest: XCTestCase {
|
||||||
func test_queries_arrayStringMultiEmpty_200() throws {
|
func test_queries_arrayStringMultiEmpty_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call queries.arrayStringMultiEmpty")
|
let expectation = XCTestExpectation(description: "Call queries.arrayStringMultiEmpty")
|
||||||
|
|
||||||
let options = Queries.ArrayStringMultiEmptyOptions(
|
let options = ArrayStringMultiEmptyOptions(
|
||||||
arrayQuery: []
|
arrayQuery: []
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ class AutoRestUrlMutliCollectionFormatTest: XCTestCase {
|
||||||
func test_queries_arrayStringMultiValid_200() throws {
|
func test_queries_arrayStringMultiValid_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call queries.arrayStringMultiValid")
|
let expectation = XCTestExpectation(description: "Call queries.arrayStringMultiValid")
|
||||||
|
|
||||||
let options = Queries.ArrayStringMultiValidOptions(
|
let options = ArrayStringMultiValidOptions(
|
||||||
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
|
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ class AutoRestUrlPathItemsTest: XCTestCase {
|
||||||
func test_Pathitems_getGlobalQueryNull_200() throws {
|
func test_Pathitems_getGlobalQueryNull_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call pathitems_getGlobalQueryNull")
|
let expectation = XCTestExpectation(description: "Call pathitems_getGlobalQueryNull")
|
||||||
|
|
||||||
let options = PathItems.GetGlobalQueryNullOptions(
|
let options = GetGlobalQueryNullOptions(
|
||||||
pathItemStringQuery: "pathItemStringQuery",
|
pathItemStringQuery: "pathItemStringQuery",
|
||||||
localStringQuery: "localStringQuery"
|
localStringQuery: "localStringQuery"
|
||||||
)
|
)
|
||||||
|
@ -71,7 +71,7 @@ class AutoRestUrlPathItemsTest: XCTestCase {
|
||||||
func test_Pathitems_getGlobalAndLocalQueryNull_200() throws {
|
func test_Pathitems_getGlobalAndLocalQueryNull_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call pathitems.getGlobalAndLocalQueryNull")
|
let expectation = XCTestExpectation(description: "Call pathitems.getGlobalAndLocalQueryNull")
|
||||||
|
|
||||||
let options = PathItems.GetGlobalAndLocalQueryNullOptions(pathItemStringQuery: "pathItemStringQuery")
|
let options = GetGlobalAndLocalQueryNullOptions(pathItemStringQuery: "pathItemStringQuery")
|
||||||
client.pathItems.getGlobalAndLocalQueryNull(
|
client.pathItems.getGlobalAndLocalQueryNull(
|
||||||
pathItemStringPath: "pathItemStringPath",
|
pathItemStringPath: "pathItemStringPath",
|
||||||
localStringPath: "localStringPath",
|
localStringPath: "localStringPath",
|
||||||
|
@ -113,7 +113,7 @@ class AutoRestUrlPathItemsTest: XCTestCase {
|
||||||
func test_Pathitems_listAllWithValues_200() throws {
|
func test_Pathitems_listAllWithValues_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call pathitems_listAllWithValues")
|
let expectation = XCTestExpectation(description: "Call pathitems_listAllWithValues")
|
||||||
client.globalStringQuery = "globalStringQuery"
|
client.globalStringQuery = "globalStringQuery"
|
||||||
let options = PathItems.GetAllWithValuesOptions(
|
let options = GetAllWithValuesOptions(
|
||||||
pathItemStringQuery: "pathItemStringQuery",
|
pathItemStringQuery: "pathItemStringQuery",
|
||||||
localStringQuery: "localStringQuery"
|
localStringQuery: "localStringQuery"
|
||||||
)
|
)
|
||||||
|
|
|
@ -81,7 +81,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
|
||||||
guard let byteQuery = "啊齄丂狛狜隣郎隣兀﨩".data(using: .utf8)?.base64EncodedData() else {
|
guard let byteQuery = "啊齄丂狛狜隣郎隣兀﨩".data(using: .utf8)?.base64EncodedData() else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let options = Queries.ByteMultiByteOptions(byteQuery: byteQuery)
|
let options = ByteMultiByteOptions(byteQuery: byteQuery)
|
||||||
client.queries.byteMultiByte(withOptions: options) { result, httpResponse in
|
client.queries.byteMultiByte(withOptions: options) { result, httpResponse in
|
||||||
switch result {
|
switch result {
|
||||||
case .success:
|
case .success:
|
||||||
|
@ -148,7 +148,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
|
||||||
func test_Queries_enumValid_200() throws {
|
func test_Queries_enumValid_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call queries.enumValid")
|
let expectation = XCTestExpectation(description: "Call queries.enumValid")
|
||||||
|
|
||||||
let options = Queries.EnumValidOptions(enumQuery: .greenColor)
|
let options = EnumValidOptions(enumQuery: .greenColor)
|
||||||
client.queries.enumValid(withOptions: options) { result, httpResponse in
|
client.queries.enumValid(withOptions: options) { result, httpResponse in
|
||||||
switch result {
|
switch result {
|
||||||
case .success:
|
case .success:
|
||||||
|
@ -472,7 +472,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
|
||||||
func test_Queries_arrayStringCsvValid_200() throws {
|
func test_Queries_arrayStringCsvValid_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call queries.arrayStringCsvValid")
|
let expectation = XCTestExpectation(description: "Call queries.arrayStringCsvValid")
|
||||||
|
|
||||||
let options = Queries.ArrayStringCsvValidOptions(
|
let options = ArrayStringCsvValidOptions(
|
||||||
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
|
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -493,7 +493,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
|
||||||
func test_Queries_arrayStringPipesValid_200() throws {
|
func test_Queries_arrayStringPipesValid_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call queries.arrayStringPipesValid")
|
let expectation = XCTestExpectation(description: "Call queries.arrayStringPipesValid")
|
||||||
|
|
||||||
let options = Queries.ArrayStringPipesValidOptions(
|
let options = ArrayStringPipesValidOptions(
|
||||||
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
|
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -514,7 +514,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
|
||||||
func test_Queries_arrayStringSsvValid_200() throws {
|
func test_Queries_arrayStringSsvValid_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call queries.arrayStringSsvValid")
|
let expectation = XCTestExpectation(description: "Call queries.arrayStringSsvValid")
|
||||||
|
|
||||||
let options = Queries.ArrayStringSsvValidOptions(
|
let options = ArrayStringSsvValidOptions(
|
||||||
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
|
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -535,7 +535,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
|
||||||
func test_Queries_arrayStringTsvValid_200() throws {
|
func test_Queries_arrayStringTsvValid_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call queries.arrayStringTsvValid")
|
let expectation = XCTestExpectation(description: "Call queries.arrayStringTsvValid")
|
||||||
|
|
||||||
let options = Queries.ArrayStringTsvValidOptions(
|
let options = ArrayStringTsvValidOptions(
|
||||||
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
|
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -556,7 +556,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
|
||||||
func test_Queries_arrayStringNoCollectionFormatEmpty_200() throws {
|
func test_Queries_arrayStringNoCollectionFormatEmpty_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call queries.arrayStringNoCollectionFormatEmpty")
|
let expectation = XCTestExpectation(description: "Call queries.arrayStringNoCollectionFormatEmpty")
|
||||||
|
|
||||||
let options = Queries.ArrayStringNoCollectionFormatEmptyOptions(
|
let options = ArrayStringNoCollectionFormatEmptyOptions(
|
||||||
arrayQuery: ["hello", "nihao", "bonjour"]
|
arrayQuery: ["hello", "nihao", "bonjour"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -577,7 +577,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
|
||||||
func test_Queries_arrayStringCsvEmpty_200() throws {
|
func test_Queries_arrayStringCsvEmpty_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call queries.arrayStringCsvEmpty")
|
let expectation = XCTestExpectation(description: "Call queries.arrayStringCsvEmpty")
|
||||||
|
|
||||||
let options = Queries.ArrayStringCsvEmptyOptions(
|
let options = ArrayStringCsvEmptyOptions(
|
||||||
arrayQuery: []
|
arrayQuery: []
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -598,7 +598,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
|
||||||
func test_Queries_arrayStringCsvNull_200() throws {
|
func test_Queries_arrayStringCsvNull_200() throws {
|
||||||
let expectation = XCTestExpectation(description: "Call queries.arrayStringCsvNull")
|
let expectation = XCTestExpectation(description: "Call queries.arrayStringCsvNull")
|
||||||
|
|
||||||
let options = Queries.ArrayStringCsvNullOptions(
|
let options = ArrayStringCsvNullOptions(
|
||||||
arrayQuery: nil
|
arrayQuery: nil
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// swift-tools-version:5.2
|
// swift-tools-version:5.3
|
||||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
@ -14,8 +14,8 @@ let package = Package(
|
||||||
.package(url: "https://github.com/stencilproject/Stencil.git", .branch("trim_whitespace")),
|
.package(url: "https://github.com/stencilproject/Stencil.git", .branch("trim_whitespace")),
|
||||||
.package(url: "https://github.com/apple/swift-nio", from: "2.0.0"),
|
.package(url: "https://github.com/apple/swift-nio", from: "2.0.0"),
|
||||||
.package(
|
.package(
|
||||||
name: "AzureSDK",
|
name: "AzureCore",
|
||||||
url: "https://github.com/Azure/azure-sdk-for-ios.git",
|
url: "https://github.com/Azure/SwiftPM-AzureCore.git",
|
||||||
.branch("dev/AzureCore")
|
.branch("dev/AzureCore")
|
||||||
),
|
),
|
||||||
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.45.6"),
|
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.45.6"),
|
||||||
|
@ -62,7 +62,7 @@ let package = Package(
|
||||||
.testTarget(
|
.testTarget(
|
||||||
name: "AutorestSwiftTest",
|
name: "AutorestSwiftTest",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.product(name: "AzureCore", package: "AzureSDK"),
|
.product(name: "AzureCore", package: "AzureCore"),
|
||||||
"AutoRestBoolTest",
|
"AutoRestBoolTest",
|
||||||
"AutoRestDurationTest",
|
"AutoRestDurationTest",
|
||||||
"AutoRestHeadTest",
|
"AutoRestHeadTest",
|
||||||
|
|
|
@ -33,9 +33,9 @@ class CommandLineArguments: Encodable {
|
||||||
/// Keys which are supported by Autorest.Swift
|
/// Keys which are supported by Autorest.Swift
|
||||||
private let supportedKeys: [String] = [
|
private let supportedKeys: [String] = [
|
||||||
"input-filename",
|
"input-filename",
|
||||||
"output-directory",
|
"output-folder",
|
||||||
"clear-output-folder",
|
"clear-output-folder",
|
||||||
"project-directory",
|
"project-folder",
|
||||||
"add-credential",
|
"add-credential",
|
||||||
"credential-scopes",
|
"credential-scopes",
|
||||||
"license-header",
|
"license-header",
|
||||||
|
@ -46,7 +46,8 @@ class CommandLineArguments: Encodable {
|
||||||
"description",
|
"description",
|
||||||
"client-side-validation",
|
"client-side-validation",
|
||||||
"package-name",
|
"package-name",
|
||||||
"package-version"
|
"package-version",
|
||||||
|
"generate-as-internal"
|
||||||
]
|
]
|
||||||
|
|
||||||
/// Keys which are explicitly unsupported and should throw and error if supplied
|
/// Keys which are explicitly unsupported and should throw and error if supplied
|
||||||
|
@ -62,9 +63,9 @@ class CommandLineArguments: Encodable {
|
||||||
return rawArgs["input-filename"]
|
return rawArgs["input-filename"]
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The desired output directory for code
|
/// The desired output folder for code
|
||||||
var outputDirectory: String? {
|
var outputFolder: String? {
|
||||||
return rawArgs["output-directory"]
|
return rawArgs["output-folder"]
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Whether the output folder should be cleared before generating code.
|
/// Whether the output folder should be cleared before generating code.
|
||||||
|
@ -73,8 +74,8 @@ class CommandLineArguments: Encodable {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The root of the project if the code will be generated in a subfolder
|
/// The root of the project if the code will be generated in a subfolder
|
||||||
var projectDirectory: String? {
|
var projectFolder: String? {
|
||||||
return rawArgs["project-directory"]
|
return rawArgs["project-folder"]
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Whether to include a credential object in the generated code
|
/// Whether to include a credential object in the generated code
|
||||||
|
@ -84,7 +85,7 @@ class CommandLineArguments: Encodable {
|
||||||
|
|
||||||
/// The scopes to use for generated credentials
|
/// The scopes to use for generated credentials
|
||||||
var credentialScopes: [String]? {
|
var credentialScopes: [String]? {
|
||||||
return rawArgs["credential-scopes"]?.components(separatedBy: " ")
|
return split(string: rawArgs["credential-scopes"])
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Which license header to use for generated files.
|
/// Which license header to use for generated files.
|
||||||
|
@ -132,6 +133,11 @@ class CommandLineArguments: Encodable {
|
||||||
return rawArgs["package-version"]
|
return rawArgs["package-version"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Transforms for model types
|
||||||
|
var generateAsInternal: ModelMap {
|
||||||
|
return ModelMap(with: rawArgs["generate-as-internal"])
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: Initializers
|
// MARK: Initializers
|
||||||
|
|
||||||
init(client: ChannelClient?, sessionId: String?, completion: @escaping () -> Void) {
|
init(client: ChannelClient?, sessionId: String?, completion: @escaping () -> Void) {
|
||||||
|
@ -206,3 +212,38 @@ class CommandLineArguments: Encodable {
|
||||||
try rawArgs.encode(to: encoder)
|
try rawArgs.encode(to: encoder)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal struct ModelMap {
|
||||||
|
internal var map: [String: String]
|
||||||
|
|
||||||
|
init(with string: String?) {
|
||||||
|
self.map = [String: String]()
|
||||||
|
guard let splitVals = split(string: string) else { return }
|
||||||
|
for item in splitVals {
|
||||||
|
let comps = item.split(separator: "=", maxSplits: 1).map { String($0) }
|
||||||
|
if comps.count != 2 {
|
||||||
|
SharedLogger.fail("Incorrect usage: --generate-as-internal NAME=ALIAS ...")
|
||||||
|
}
|
||||||
|
map[comps[0]] = comps[1]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns internal for models which are aliased. Otherwise, public.
|
||||||
|
internal func visibility(for name: String) -> String {
|
||||||
|
return map[name] != nil ? "internal" : "public"
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns the alias for a model or the original model name if no alias present
|
||||||
|
internal func aliasOrName(for name: String) -> String {
|
||||||
|
if let alias = map[name] {
|
||||||
|
return alias
|
||||||
|
} else {
|
||||||
|
return name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private func split(string val: String?) -> [String]? {
|
||||||
|
guard let value = val else { return nil }
|
||||||
|
return value.components(separatedBy: .whitespacesAndNewlines).filter { $0.count > 0 }
|
||||||
|
}
|
||||||
|
|
|
@ -42,15 +42,15 @@ class Manager {
|
||||||
|
|
||||||
// MARK: Methods
|
// MARK: Methods
|
||||||
|
|
||||||
/// Initialize with an input file URL (i.e. running locally).
|
/// Initialize with an input file URL (i.e. running from Xcode).
|
||||||
func configure(input: URL, destination: URL) throws {
|
func configure(input: URL, destination: URL) throws {
|
||||||
guard config == nil else {
|
guard config == nil else {
|
||||||
SharedLogger.warn("Manager is already configured.")
|
SharedLogger.warn("Manager is already configured.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// FIXME: Make this configurable
|
// TODO: Make this configurable?
|
||||||
let destUrl = destination.appendingPathComponent("generated").appendingPathComponent("sdk")
|
let destUrl = destination.appendingPathComponent("generated").appendingPathComponent("sdk")
|
||||||
config?.destinationRootUrl = destUrl
|
config?.tempRootUrl = destUrl
|
||||||
do {
|
do {
|
||||||
try destUrl.ensureExists()
|
try destUrl.ensureExists()
|
||||||
} catch {
|
} catch {
|
||||||
|
@ -73,11 +73,12 @@ class Manager {
|
||||||
SharedLogger.warn("Manager is already configured.")
|
SharedLogger.warn("Manager is already configured.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// for autorest mode, create a temp directory using a random Guid as the directory name
|
|
||||||
let destUrl = URL(fileURLWithPath: NSTemporaryDirectory(), isDirectory: true)
|
|
||||||
.appendingPathComponent(UUID().uuidString)
|
|
||||||
config = ManagerConfig(withInput: input, destinationRootUrl: destUrl)
|
|
||||||
args = CommandLineArguments(client: client, sessionId: sessionId) {
|
args = CommandLineArguments(client: client, sessionId: sessionId) {
|
||||||
|
let destUrl: URL
|
||||||
|
// generate to a temp directory
|
||||||
|
destUrl = URL(fileURLWithPath: NSTemporaryDirectory(), isDirectory: true)
|
||||||
|
.appendingPathComponent(UUID().uuidString)
|
||||||
|
self.config = ManagerConfig(withInput: input, destinationRootUrl: destUrl)
|
||||||
completion()
|
completion()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -92,10 +93,10 @@ class Manager {
|
||||||
|
|
||||||
// Create folder structure
|
// Create folder structure
|
||||||
let packageName = model.packageName
|
let packageName = model.packageName
|
||||||
let packageUrl = config.destinationRootUrl.appendingPathComponent(packageName)
|
let packageUrl = config.tempRootUrl.appendingPathComponent(packageName)
|
||||||
try packageUrl.ensureExists()
|
try packageUrl.ensureExists()
|
||||||
|
|
||||||
config.packageUrl = packageUrl
|
config.tempPackageUrl = packageUrl
|
||||||
|
|
||||||
// Generate Swift code files
|
// Generate Swift code files
|
||||||
SharedLogger.info("Generating code at: \(packageUrl.path)")
|
SharedLogger.info("Generating code at: \(packageUrl.path)")
|
||||||
|
@ -148,8 +149,8 @@ class Manager {
|
||||||
// If JSON strings don't match, there must be a problem in the modeling.
|
// If JSON strings don't match, there must be a problem in the modeling.
|
||||||
// Dump both files so they can be diffed.
|
// Dump both files so they can be diffed.
|
||||||
if beforeJsonString != afterJsonString {
|
if beforeJsonString != afterJsonString {
|
||||||
let beforeJsonUrl = config.destinationRootUrl.appendingPathComponent("before.json")
|
let beforeJsonUrl = config.tempRootUrl.appendingPathComponent("before.json")
|
||||||
let afterJsonUrl = config.destinationRootUrl.appendingPathComponent("after.json")
|
let afterJsonUrl = config.tempRootUrl.appendingPathComponent("after.json")
|
||||||
SharedLogger.debug("before.json url=\(beforeJsonUrl)")
|
SharedLogger.debug("before.json url=\(beforeJsonUrl)")
|
||||||
SharedLogger.debug("after.json url=\(afterJsonUrl)")
|
SharedLogger.debug("after.json url=\(afterJsonUrl)")
|
||||||
do {
|
do {
|
||||||
|
|
|
@ -29,9 +29,16 @@ import Foundation
|
||||||
import NIO
|
import NIO
|
||||||
|
|
||||||
class ManagerConfig {
|
class ManagerConfig {
|
||||||
|
/// The YAML input string from Modeler4
|
||||||
var inputString: String
|
var inputString: String
|
||||||
var destinationRootUrl: URL!
|
|
||||||
var packageUrl: URL?
|
/// The local root URL for where files will be written before being sent to autorest
|
||||||
|
/// to be written in their final destination
|
||||||
|
var tempRootUrl: URL!
|
||||||
|
|
||||||
|
/// The local URL to the package where files will be written before being sent to
|
||||||
|
/// autorest to be written in their final destination
|
||||||
|
var tempPackageUrl: URL?
|
||||||
|
|
||||||
/// Initialize Manager configuration
|
/// Initialize Manager configuration
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
@ -39,6 +46,6 @@ class ManagerConfig {
|
||||||
/// - destinationRootUrl: `URL` for the destination root.
|
/// - destinationRootUrl: `URL` for the destination root.
|
||||||
init(withInput input: String, destinationRootUrl: URL) {
|
init(withInput input: String, destinationRootUrl: URL) {
|
||||||
self.inputString = input
|
self.inputString = input
|
||||||
self.destinationRootUrl = destinationRootUrl
|
self.tempRootUrl = destinationRootUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ class SwiftGenerator: CodeGenerator {
|
||||||
|
|
||||||
// Create model files
|
// Create model files
|
||||||
for object in model.schemas.objects ?? [] {
|
for object in model.schemas.objects ?? [] {
|
||||||
let name = object.modelName
|
let name = Manager.shared.args!.generateAsInternal.aliasOrName(for: object.modelName)
|
||||||
|
|
||||||
guard modelsWritten[name] == nil else {
|
guard modelsWritten[name] == nil else {
|
||||||
SharedLogger.warn("\(name) has already been generated once this run. Skipping...")
|
SharedLogger.warn("\(name) has already been generated once this run. Skipping...")
|
||||||
|
@ -70,7 +70,7 @@ class SwiftGenerator: CodeGenerator {
|
||||||
if let immediates = object.parents?.immediate {
|
if let immediates = object.parents?.immediate {
|
||||||
// render any immediate parents of the object schema
|
// render any immediate parents of the object schema
|
||||||
for parent in immediates {
|
for parent in immediates {
|
||||||
let name = object.name
|
let name = Manager.shared.args!.generateAsInternal.aliasOrName(for: object.name)
|
||||||
guard modelsWritten[name] == nil else {
|
guard modelsWritten[name] == nil else {
|
||||||
SharedLogger.warn("\(name) has already been generated once this run. Skipping...")
|
SharedLogger.warn("\(name) has already been generated once this run. Skipping...")
|
||||||
modelsWritten[name]! += 1
|
modelsWritten[name]! += 1
|
||||||
|
@ -93,7 +93,7 @@ class SwiftGenerator: CodeGenerator {
|
||||||
|
|
||||||
// Create group model files
|
// Create group model files
|
||||||
for group in model.schemas.groups ?? [] {
|
for group in model.schemas.groups ?? [] {
|
||||||
let name = group.name
|
let name = Manager.shared.args!.generateAsInternal.aliasOrName(for: group.name)
|
||||||
guard modelsWritten[name] == nil else {
|
guard modelsWritten[name] == nil else {
|
||||||
SharedLogger.warn("\(name) has already been generated once this run. Skipping...")
|
SharedLogger.warn("\(name) has already been generated once this run. Skipping...")
|
||||||
modelsWritten[name]! += 1
|
modelsWritten[name]! += 1
|
||||||
|
@ -116,6 +116,13 @@ class SwiftGenerator: CodeGenerator {
|
||||||
let optionsUrl = baseUrl.with(subfolder: .options)
|
let optionsUrl = baseUrl.with(subfolder: .options)
|
||||||
let utilUrl = baseUrl.with(subfolder: .util)
|
let utilUrl = baseUrl.with(subfolder: .util)
|
||||||
let jazzyUrl = baseUrl.with(subfolder: .jazzy)
|
let jazzyUrl = baseUrl.with(subfolder: .jazzy)
|
||||||
|
|
||||||
|
// clear the generated folder to ensure renames are caught
|
||||||
|
if let outputFolder = Manager.shared.args?.outputFolder {
|
||||||
|
let generatedUrl = URL(fileURLWithPath: outputFolder).with(subfolder: .generated)
|
||||||
|
try? FileManager.default.removeItem(at: generatedUrl)
|
||||||
|
}
|
||||||
|
|
||||||
try modelUrl.ensureExists()
|
try modelUrl.ensureExists()
|
||||||
try optionsUrl.ensureExists()
|
try optionsUrl.ensureExists()
|
||||||
try utilUrl.ensureExists()
|
try utilUrl.ensureExists()
|
||||||
|
@ -167,7 +174,8 @@ class SwiftGenerator: CodeGenerator {
|
||||||
withFilename: "\(groupName)",
|
withFilename: "\(groupName)",
|
||||||
andParams: ["model": clientViewModel, "group": operationGroup]
|
andParams: ["model": clientViewModel, "group": operationGroup]
|
||||||
)
|
)
|
||||||
try renderClientMethodOptionsFile(for: operationGroup, with: groupName, using: "NamedMethod_Options_File")
|
// TODO: Find alternative to resolve naming conflicts
|
||||||
|
try renderClientMethodOptionsFile(for: operationGroup, with: groupName, using: "Method_Options_File")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create ClientOptions.swift file
|
// Create ClientOptions.swift file
|
||||||
|
@ -221,9 +229,18 @@ class SwiftGenerator: CodeGenerator {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func exists(filename: String, inSubfolder subfolder: FileDestination) -> Bool {
|
private func exists(filename: String, inSubfolder subfolder: FileDestination) -> Bool {
|
||||||
|
let destRoot: URL
|
||||||
|
// When using autorest, we must check the output folder for existence of the file, not
|
||||||
|
// the temp directory (which will obviously never contain the file!).
|
||||||
|
if let outputFolder = Manager.shared.args?.outputFolder {
|
||||||
|
destRoot = URL(fileURLWithPath: outputFolder)
|
||||||
|
} else {
|
||||||
|
destRoot = baseUrl
|
||||||
|
}
|
||||||
let fname = filename.lowercased().contains(".") ? filename : "\(filename).swift"
|
let fname = filename.lowercased().contains(".") ? filename : "\(filename).swift"
|
||||||
let fileUrl = baseUrl.with(subfolder: subfolder).appendingPathComponent(fname)
|
let fileUrl = destRoot.with(subfolder: subfolder).appendingPathComponent(fname)
|
||||||
return FileManager.default.fileExists(atPath: fileUrl.path)
|
let result = FileManager.default.fileExists(atPath: fileUrl.path)
|
||||||
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
private func render(
|
private func render(
|
||||||
|
@ -241,16 +258,12 @@ class SwiftGenerator: CodeGenerator {
|
||||||
|
|
||||||
private func renderClientMethodOptionsFile(
|
private func renderClientMethodOptionsFile(
|
||||||
for operationGroup: OperationGroupViewModel,
|
for operationGroup: OperationGroupViewModel,
|
||||||
with groupName: String? = nil,
|
with _: String? = nil,
|
||||||
using template: String
|
using template: String
|
||||||
) throws {
|
) throws {
|
||||||
for operation in operationGroup.operations {
|
for operation in operationGroup.operations {
|
||||||
let clientMethodOptions = operation.clientMethodOptions
|
let clientMethodOptions = operation.clientMethodOptions
|
||||||
var fileName = ""
|
var fileName = ""
|
||||||
if let groupName = groupName {
|
|
||||||
fileName = "\(groupName + "+")"
|
|
||||||
}
|
|
||||||
|
|
||||||
fileName += "\(clientMethodOptions.name).swift"
|
fileName += "\(clientMethodOptions.name).swift"
|
||||||
|
|
||||||
try render(
|
try render(
|
||||||
|
|
|
@ -175,7 +175,7 @@ class AutorestPlugin {
|
||||||
do {
|
do {
|
||||||
try Manager.shared.run()
|
try Manager.shared.run()
|
||||||
|
|
||||||
guard let packageUrl = Manager.shared.config?.packageUrl else {
|
guard let packageUrl = Manager.shared.config?.tempPackageUrl else {
|
||||||
SharedLogger.fail("Unable to get packageUrl")
|
SharedLogger.fail("Unable to get packageUrl")
|
||||||
}
|
}
|
||||||
let generatedFileList = self.iterateDirectory(directory: packageUrl)
|
let generatedFileList = self.iterateDirectory(directory: packageUrl)
|
||||||
|
|
|
@ -29,7 +29,6 @@ import Foundation
|
||||||
/// An operation group represents a container around set of operations
|
/// An operation group represents a container around set of operations
|
||||||
class OperationGroup: Metadata {
|
class OperationGroup: Metadata {
|
||||||
let key: String
|
let key: String
|
||||||
|
|
||||||
let operations: [Operation]
|
let operations: [Operation]
|
||||||
|
|
||||||
enum CodingKeys: String, CodingKey {
|
enum CodingKeys: String, CodingKey {
|
||||||
|
|
|
@ -157,7 +157,8 @@ class Schema: Codable, LanguageShortcut {
|
||||||
}
|
}
|
||||||
|
|
||||||
var modelName: String {
|
var modelName: String {
|
||||||
return name.isReservedType ? name + "Type" : name
|
let rawName = Manager.shared.args!.generateAsInternal.aliasOrName(for: name)
|
||||||
|
return rawName.isReservedType ? rawName + "Type" : rawName
|
||||||
}
|
}
|
||||||
|
|
||||||
var bodyParamStrategy: BodyParamStrategy {
|
var bodyParamStrategy: BodyParamStrategy {
|
||||||
|
|
|
@ -42,8 +42,11 @@ struct ClientMethodOptionsViewModel {
|
||||||
|
|
||||||
let extensionName: String
|
let extensionName: String
|
||||||
|
|
||||||
|
let visibility: String
|
||||||
|
|
||||||
init(from operation: Operation, with model: CodeModel, parameters: [ParameterType], groupName: String) {
|
init(from operation: Operation, with model: CodeModel, parameters: [ParameterType], groupName: String) {
|
||||||
self.clientName = model.name
|
self.clientName = model.name
|
||||||
|
self.visibility = Manager.shared.args!.generateAsInternal.visibility(for: clientName)
|
||||||
self.operationName = operation.name
|
self.operationName = operation.name
|
||||||
self.name = "\(operation.name)Options"
|
self.name = "\(operation.name)Options"
|
||||||
if model.object(for: groupName) != nil {
|
if model.object(for: groupName) != nil {
|
||||||
|
|
|
@ -33,13 +33,16 @@ import Foundation
|
||||||
struct EnumerationViewModel {
|
struct EnumerationViewModel {
|
||||||
let name: String
|
let name: String
|
||||||
let comment: ViewModelComment
|
let comment: ViewModelComment
|
||||||
|
let visibility: String
|
||||||
let type: String
|
let type: String
|
||||||
let choices: [EnumerationChoiceViewModel]
|
let choices: [EnumerationChoiceViewModel]
|
||||||
let isExtensible: Bool
|
let isExtensible: Bool
|
||||||
|
|
||||||
init(from schema: EnumerableSchema) {
|
init(from schema: EnumerableSchema) {
|
||||||
self.name = schema.name
|
self.name = Manager.shared.args!.generateAsInternal.aliasOrName(for: schema.name)
|
||||||
|
self.visibility = Manager.shared.args!.generateAsInternal.visibility(for: schema.name)
|
||||||
self.comment = ViewModelComment(from: schema.description)
|
self.comment = ViewModelComment(from: schema.description)
|
||||||
|
|
||||||
self.type = schema.choiceType.name
|
self.type = schema.choiceType.name
|
||||||
var items = [EnumerationChoiceViewModel]()
|
var items = [EnumerationChoiceViewModel]()
|
||||||
for choice in schema.choices {
|
for choice in schema.choices {
|
||||||
|
|
|
@ -36,13 +36,15 @@ struct ObjectViewModel {
|
||||||
let properties: [PropertyViewModel]
|
let properties: [PropertyViewModel]
|
||||||
let constants: [ConstantViewModel]
|
let constants: [ConstantViewModel]
|
||||||
let hasConstants: Bool
|
let hasConstants: Bool
|
||||||
|
let visibility: String
|
||||||
|
|
||||||
var inheritance = "NSObject"
|
var inheritance = "NSObject"
|
||||||
var typeKeywords = "struct"
|
var typeKeywords = "struct"
|
||||||
var isErrorType = false
|
var isErrorType = false
|
||||||
|
|
||||||
init(from schema: ObjectSchema) {
|
init(from schema: ObjectSchema) {
|
||||||
self.name = schema.modelName
|
self.name = Manager.shared.args!.generateAsInternal.aliasOrName(for: schema.modelName)
|
||||||
|
self.visibility = Manager.shared.args!.generateAsInternal.visibility(for: schema.modelName)
|
||||||
self.comment = ViewModelComment(from: schema.description)
|
self.comment = ViewModelComment(from: schema.description)
|
||||||
|
|
||||||
// flatten out inheritance hierarchies so we can use structs
|
// flatten out inheritance hierarchies so we can use structs
|
||||||
|
@ -81,7 +83,8 @@ struct ObjectViewModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
init(from schema: GroupSchema) {
|
init(from schema: GroupSchema) {
|
||||||
self.name = schema.modelName
|
self.name = Manager.shared.args!.generateAsInternal.aliasOrName(for: schema.modelName)
|
||||||
|
self.visibility = Manager.shared.args!.generateAsInternal.visibility(for: schema.modelName)
|
||||||
self.comment = ViewModelComment(from: schema.description)
|
self.comment = ViewModelComment(from: schema.description)
|
||||||
|
|
||||||
// flatten out inheritance hierarchies so we can use structs
|
// flatten out inheritance hierarchies so we can use structs
|
||||||
|
|
|
@ -32,6 +32,7 @@ import Foundation
|
||||||
/// ...
|
/// ...
|
||||||
struct OperationGroupViewModel {
|
struct OperationGroupViewModel {
|
||||||
let name: String
|
let name: String
|
||||||
|
let visibility: String
|
||||||
let operations: [OperationViewModel]
|
let operations: [OperationViewModel]
|
||||||
let comment: ViewModelComment
|
let comment: ViewModelComment
|
||||||
|
|
||||||
|
@ -45,8 +46,11 @@ struct OperationGroupViewModel {
|
||||||
groupName += "Operation"
|
groupName += "Operation"
|
||||||
}
|
}
|
||||||
|
|
||||||
self.name = groupName
|
// Operation group visibility should match that of the client
|
||||||
|
let clientName = Manager.shared.args!.generateAsInternal.aliasOrName(for: "\(model.packageName)Client")
|
||||||
|
self.visibility = Manager.shared.args!.generateAsInternal.visibility(for: clientName)
|
||||||
|
|
||||||
|
self.name = groupName
|
||||||
self.comment = ViewModelComment(from: group.description)
|
self.comment = ViewModelComment(from: group.description)
|
||||||
var items = [OperationViewModel]()
|
var items = [OperationViewModel]()
|
||||||
for operation in group.operations {
|
for operation in group.operations {
|
||||||
|
|
|
@ -112,7 +112,8 @@ struct ResponseViewModel {
|
||||||
self.pagingNames = pagingNames
|
self.pagingNames = pagingNames
|
||||||
self.pagedElementType = arrayElements.first!.elementType.name
|
self.pagedElementType = arrayElements.first!.elementType.name
|
||||||
|
|
||||||
if let elementType = pagedElementType, self.pagingNames != nil {
|
if var elementType = pagedElementType, self.pagingNames != nil {
|
||||||
|
elementType = Manager.shared.args!.generateAsInternal.aliasOrName(for: elementType)
|
||||||
self.type = "PagedCollection<\(elementType)>"
|
self.type = "PagedCollection<\(elementType)>"
|
||||||
} else {
|
} else {
|
||||||
self.type = schemaResponse?.schema.swiftType() ?? "Void"
|
self.type = schemaResponse?.schema.swiftType() ?? "Void"
|
||||||
|
|
|
@ -56,7 +56,8 @@ struct ReturnTypeViewModel {
|
||||||
let hasNoBodyStrategies = strategies.contains { $0 == RequestBodyType.noBody.rawValue }
|
let hasNoBodyStrategies = strategies.contains { $0 == RequestBodyType.noBody.rawValue }
|
||||||
|
|
||||||
// since we only support 1 body/pagePage response, only need to take the first item in types
|
// since we only support 1 body/pagePage response, only need to take the first item in types
|
||||||
if let type = types.first {
|
if var type = types.first {
|
||||||
|
type = Manager.shared.args!.generateAsInternal.aliasOrName(for: type)
|
||||||
self.type = (hasNoBodyStrategies || hasNullableResponse) ? "\(type)?" : type
|
self.type = (hasNoBodyStrategies || hasNullableResponse) ? "\(type)?" : type
|
||||||
self.returnNil = hasNoBodyStrategies
|
self.returnNil = hasNoBodyStrategies
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -30,6 +30,7 @@ import Foundation
|
||||||
struct ServiceClientFileViewModel {
|
struct ServiceClientFileViewModel {
|
||||||
let name: String
|
let name: String
|
||||||
let comment: ViewModelComment
|
let comment: ViewModelComment
|
||||||
|
let visibility: String
|
||||||
let operationGroups: [OperationGroupViewModel]
|
let operationGroups: [OperationGroupViewModel]
|
||||||
let apiVersion: String
|
let apiVersion: String
|
||||||
let apiVersionName: String
|
let apiVersionName: String
|
||||||
|
@ -43,7 +44,9 @@ struct ServiceClientFileViewModel {
|
||||||
let host: String
|
let host: String
|
||||||
|
|
||||||
init(from model: CodeModel) {
|
init(from model: CodeModel) {
|
||||||
self.name = "\(model.packageName)Client"
|
let name = "\(model.packageName)Client"
|
||||||
|
self.name = Manager.shared.args!.generateAsInternal.aliasOrName(for: name)
|
||||||
|
self.visibility = Manager.shared.args!.generateAsInternal.visibility(for: name)
|
||||||
self.comment = ViewModelComment(from: model.description)
|
self.comment = ViewModelComment(from: model.description)
|
||||||
var operationGroups = [OperationGroupViewModel]()
|
var operationGroups = [OperationGroupViewModel]()
|
||||||
var namedOperationGroups = [String: OperationGroupViewModel]()
|
var namedOperationGroups = [String: OperationGroupViewModel]()
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
/// API version of the {{ model.description }} to invoke. Defaults to the latest.
|
/// API version of the {{ model.description }} to invoke. Defaults to the latest.
|
||||||
public enum ApiVersion: RequestStringConvertible {
|
{{ model.visibility }} enum ApiVersion: RequestStringConvertible {
|
||||||
/// Custom value for unrecognized enum values
|
/// Custom value for unrecognized enum values
|
||||||
case custom(String)
|
case custom(String)
|
||||||
/// API version "{{ model.apiVersion }}"
|
/// API version "{{ model.apiVersion }}"
|
||||||
case {{ model.apiVersionName }}
|
case {{ model.apiVersionName }}
|
||||||
|
|
||||||
/// The most recent API version of the {{ model.description }}
|
/// The most recent API version of the {{ model.description }}
|
||||||
public static var latest: ApiVersion {
|
{{ model.visibility }} static var latest: ApiVersion {
|
||||||
return .{{ model.apiVersionName }}
|
return .{{ model.apiVersionName }}
|
||||||
}
|
}
|
||||||
|
|
||||||
public var requestString: String {
|
{{ model.visibility }} var requestString: String {
|
||||||
switch self {
|
switch self {
|
||||||
case let .custom(val):
|
case let .custom(val):
|
||||||
return val
|
return val
|
||||||
|
@ -19,7 +19,7 @@ public enum ApiVersion: RequestStringConvertible {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public init(_ val: String) {
|
{{ model.visibility }} init(_ val: String) {
|
||||||
switch val.lowercased() {
|
switch val.lowercased() {
|
||||||
case "{{ model.apiVersion | lowercase }}":
|
case "{{ model.apiVersion | lowercase }}":
|
||||||
self = .{{ model.apiVersionName }}
|
self = .{{ model.apiVersionName }}
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
// swiftlint:disable type_body_length
|
// swiftlint:disable type_body_length
|
||||||
|
|
||||||
{{ model.comment }}
|
{{ model.comment }}
|
||||||
public final class {{ model.name }}: {{ model.protocols }} {
|
{{ model.visibility }} final class {{ model.name }}: {{ model.protocols }} {
|
||||||
|
|
||||||
{% if model.paging != nil %}
|
{% if model.paging != nil %}
|
||||||
public func continuationUrl(forRequestUrl requestUrl: URL, withContinuationToken token: String) -> URL? {
|
{{ model.visibility }} func continuationUrl(forRequestUrl requestUrl: URL, withContinuationToken token: String) -> URL? {
|
||||||
return URL(string: token)
|
return URL(string: token)
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -19,7 +19,7 @@ public final class {{ model.name }}: {{ model.protocols }} {
|
||||||
{% include "Client_ApiVersion_Snippet.stencil" model %}
|
{% include "Client_ApiVersion_Snippet.stencil" model %}
|
||||||
|
|
||||||
/// Options provided to configure this `{{ model.name }}`.
|
/// Options provided to configure this `{{ model.name }}`.
|
||||||
public let options: {{ model.name }}Options
|
{{ model.visibility }} let options: {{ model.name }}Options
|
||||||
|
|
||||||
// MARK: Initializers
|
// MARK: Initializers
|
||||||
/// Create a {{ model.name }} client.
|
/// Create a {{ model.name }} client.
|
||||||
|
@ -27,7 +27,7 @@ public final class {{ model.name }}: {{ model.protocols }} {
|
||||||
/// - endpoint: Base URL for the {{ model.name }}.
|
/// - endpoint: Base URL for the {{ model.name }}.
|
||||||
/// - authPolicy: An `Authenticating` policy to use for authenticating client requests.
|
/// - authPolicy: An `Authenticating` policy to use for authenticating client requests.
|
||||||
/// - options: Options used to configure the client.
|
/// - options: Options used to configure the client.
|
||||||
public init(
|
{{ model.visibility }} init(
|
||||||
{% for param in model.globalParameters %}
|
{% for param in model.globalParameters %}
|
||||||
{% if param.optional == false %}
|
{% if param.optional == false %}
|
||||||
{{ param.name }} : {{ param.type }},
|
{{ param.name }} : {{ param.type }},
|
||||||
|
@ -72,14 +72,14 @@ public final class {{ model.name }}: {{ model.protocols }} {
|
||||||
|
|
||||||
{% for param in model.globalParameters %}
|
{% for param in model.globalParameters %}
|
||||||
// {{ param.comment }}
|
// {{ param.comment }}
|
||||||
public var {{ param.name }}: {{ param.type }}{{ param.defaultValue }}
|
{{ model.visibility }} var {{ param.name }}: {{ param.type }}{{ param.defaultValue }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% for property in model.namedOperationGroupShortcuts %}
|
{% for property in model.namedOperationGroupShortcuts %}
|
||||||
public lazy var {{ property.name }} = {{ property.type }}(client: self)
|
{{ model.visibility }} lazy var {{ property.name }} = {{ property.type }}(client: self)
|
||||||
{%endfor %}
|
{%endfor %}
|
||||||
|
|
||||||
// MARK: Public Client Methods
|
// MARK: Client Methods
|
||||||
{% for group in model.operationGroups %}
|
{% for group in model.operationGroups %}
|
||||||
// MARK: {{ group.name }}
|
// MARK: {{ group.name }}
|
||||||
{% for op in group.operations %}
|
{% for op in group.operations %}
|
||||||
|
|
|
@ -6,17 +6,17 @@
|
||||||
// swiftlint:disable line_length
|
// swiftlint:disable line_length
|
||||||
|
|
||||||
/// User-configurable options for the `{{ model.name }}`.
|
/// User-configurable options for the `{{ model.name }}`.
|
||||||
public struct {{ model.name }}Options: ClientOptions {
|
{{ model.visibility }} struct {{ model.name }}Options: ClientOptions {
|
||||||
/// The API version of the {{ model.description }} to invoke.
|
/// The API version of the {{ model.description }} to invoke.
|
||||||
public let apiVersion: String
|
{{ model.visibility }} let apiVersion: String
|
||||||
/// The `ClientLogger` to be used by this `{{ model.name }}`.
|
/// The `ClientLogger` to be used by this `{{ model.name }}`.
|
||||||
public let logger: ClientLogger
|
{{ model.visibility }} let logger: ClientLogger
|
||||||
/// Options for configuring telemetry sent by this `{{ model.name }}`.
|
/// Options for configuring telemetry sent by this `{{ model.name }}`.
|
||||||
public let telemetryOptions: TelemetryOptions
|
{{ model.visibility }} let telemetryOptions: TelemetryOptions
|
||||||
/// Global transport options
|
/// Global transport options
|
||||||
public let transportOptions: TransportOptions
|
{{ model.visibility }} let transportOptions: TransportOptions
|
||||||
/// The default dispatch queue on which to call all completion handler. Defaults to `DispatchQueue.main`.
|
/// The default dispatch queue on which to call all completion handler. Defaults to `DispatchQueue.main`.
|
||||||
public let dispatchQueue: DispatchQueue?
|
{{ model.visibility }} let dispatchQueue: DispatchQueue?
|
||||||
|
|
||||||
/// Initialize a `{{ model.name }}Options` structure.
|
/// Initialize a `{{ model.name }}Options` structure.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
@ -25,7 +25,7 @@ public struct {{ model.name }}Options: ClientOptions {
|
||||||
/// - telemetryOptions: Options for configuring telemetry sent by this `{{ model.name }}`.
|
/// - telemetryOptions: Options for configuring telemetry sent by this `{{ model.name }}`.
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
||||||
/// - dispatchQueue: The default dispatch queue on which to call all completion handler. Defaults to `DispatchQueue.main`.
|
/// - dispatchQueue: The default dispatch queue on which to call all completion handler. Defaults to `DispatchQueue.main`.
|
||||||
public init(
|
{{ model.visibility }} init(
|
||||||
apiVersion: {{ model.name }}.ApiVersion = .latest,
|
apiVersion: {{ model.name }}.ApiVersion = .latest,
|
||||||
logger: ClientLogger = ClientLoggers.default(tag: "{{ model.name }}Client"),
|
logger: ClientLogger = ClientLoggers.default(tag: "{{ model.name }}Client"),
|
||||||
telemetryOptions: TelemetryOptions = TelemetryOptions(),
|
telemetryOptions: TelemetryOptions = TelemetryOptions(),
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{% for enum in models.enums %}
|
{% for enum in models.enums %}
|
||||||
{{ enum.comment }}
|
{{ enum.comment }}
|
||||||
{% if enum.isExtensible %}
|
{% if enum.isExtensible %}
|
||||||
public enum {{ enum.name }}: RequestStringConvertible, Codable, Equatable {
|
{{ enum.visibility }} enum {{ enum.name }}: RequestStringConvertible, Codable, Equatable {
|
||||||
/// Custom value for unrecognized enum values
|
/// Custom value for unrecognized enum values
|
||||||
case custom({{ enum.type }})
|
case custom({{ enum.type }})
|
||||||
{% for choice in enum.choices %}
|
{% for choice in enum.choices %}
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
case {{ choice.name }}
|
case {{ choice.name }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
public var requestString: String {
|
{{ enum.visibility }} var requestString: String {
|
||||||
switch self {
|
switch self {
|
||||||
case let .custom(val):
|
case let .custom(val):
|
||||||
return val
|
return val
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public init(_ val: {{ enum.type }}) {
|
{{ enum.visibility }} init(_ val: {{ enum.type }}) {
|
||||||
switch val.lowercased() {
|
switch val.lowercased() {
|
||||||
{% for choice in enum.choices %}
|
{% for choice in enum.choices %}
|
||||||
case "{{ choice.value | lowercase }}":
|
case "{{ choice.value | lowercase }}":
|
||||||
|
@ -49,13 +49,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{% else %}
|
{% else %}
|
||||||
public enum {{ enum.name }}: {{ enum.type }}, Codable, RequestStringConvertible {
|
{{ enum.visibility }} enum {{ enum.name }}: {{ enum.type }}, Codable, RequestStringConvertible {
|
||||||
{% for choice in enum.choices %}
|
{% for choice in enum.choices %}
|
||||||
{{ choice.comment }}
|
{{ choice.comment }}
|
||||||
case {{ choice.name }} = "{{choice.value}}"
|
case {{ choice.name }} = "{{choice.value}}"
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
public var requestString: String {
|
{{ enum.visibility }} var requestString: String {
|
||||||
return rawValue
|
return rawValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,4 +6,51 @@
|
||||||
// swiftlint:disable identifier_name
|
// swiftlint:disable identifier_name
|
||||||
// swiftlint:disable line_length
|
// swiftlint:disable line_length
|
||||||
|
|
||||||
{% include "Method_Options_Snippet.stencil" %}
|
/// User-configurable options for the `{{ model.operationName }}` operation.
|
||||||
|
{{ model.visibility }} struct {{ model.name }}: RequestOptions {
|
||||||
|
|
||||||
|
{% for property in model.properties %}
|
||||||
|
{{ property.comment }}
|
||||||
|
{{ model.visibility }} let {{ property.name }}: {{ property.type }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
||||||
|
/// Highly recommended for correlating client-side activites with requests received by the server.
|
||||||
|
{{ model.visibility }} let clientRequestId: String?
|
||||||
|
|
||||||
|
/// A token used to make a best-effort attempt at canceling a request.
|
||||||
|
{{ model.visibility }} let cancellationToken: CancellationToken?
|
||||||
|
|
||||||
|
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
||||||
|
{{ model.visibility }} var dispatchQueue: DispatchQueue?
|
||||||
|
|
||||||
|
/// A `PipelineContext` object to associate with the request.
|
||||||
|
{{ model.visibility }} var context: PipelineContext?
|
||||||
|
|
||||||
|
/// Initialize a `{{ model.name }}` structure.
|
||||||
|
/// - Parameters:
|
||||||
|
{% for property in model.properties %}
|
||||||
|
/// - {{ property.name }}: {{ property.comment.withoutPrefix }}
|
||||||
|
{% endfor %}
|
||||||
|
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
||||||
|
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
||||||
|
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
||||||
|
/// - context: A `PipelineContext` object to associate with the request.
|
||||||
|
{{ model.visibility }} init(
|
||||||
|
{% for property in model.properties %}
|
||||||
|
{{ property.name }}: {{ property.type }} {{ property.initDefaultValue }},
|
||||||
|
{% endfor %}
|
||||||
|
clientRequestId: String? = nil,
|
||||||
|
cancellationToken: CancellationToken? = nil,
|
||||||
|
dispatchQueue: DispatchQueue? = nil,
|
||||||
|
context: PipelineContext? = nil
|
||||||
|
) {
|
||||||
|
{% for property in model.properties %}
|
||||||
|
self.{{ property.name }} = {{ property.name }}
|
||||||
|
{% endfor %}
|
||||||
|
self.clientRequestId = clientRequestId
|
||||||
|
self.cancellationToken = cancellationToken
|
||||||
|
self.dispatchQueue = dispatchQueue
|
||||||
|
self.context = context
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -7,18 +7,18 @@
|
||||||
// swiftlint:disable cyclomatic_complexity
|
// swiftlint:disable cyclomatic_complexity
|
||||||
|
|
||||||
{{ model.comment }}
|
{{ model.comment }}
|
||||||
public {{ model.typeKeywords }} {{ model.name }} : {{ model.inheritance }} {
|
{{ model.visibility }} {{ model.typeKeywords }} {{ model.name }} : {{ model.inheritance }} {
|
||||||
// MARK: Properties
|
// MARK: Properties
|
||||||
{% for property in model.properties %}
|
{% for property in model.properties %}
|
||||||
{{ property.comment }}
|
{{ property.comment }}
|
||||||
public let {{ property.name }}: {{ property.type }}
|
{{ model.visibility }} let {{ property.name }}: {{ property.type }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if model.hasConstants %}
|
{% if model.hasConstants %}
|
||||||
// MARK: Constants
|
// MARK: Constants
|
||||||
{% for constant in model.constants %}
|
{% for constant in model.constants %}
|
||||||
{{ constant.comment }}
|
{{ constant.comment }}
|
||||||
public let {{ constant.name }}{{constant.defaultValue}}
|
{{ model.visibility }} let {{ constant.name }}{{constant.defaultValue}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ public {{ model.typeKeywords }} {{ model.name }} : {{ model.inheritance }} {
|
||||||
{% for property in model.properties %}
|
{% for property in model.properties %}
|
||||||
/// - {{ property.name }}: {{ property.comment.withoutPrefix }}
|
/// - {{ property.name }}: {{ property.comment.withoutPrefix }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
public init(
|
{{ model.visibility }} init(
|
||||||
{% for property in model.properties %}
|
{% for property in model.properties %}
|
||||||
{{ property.name }}: {{ property.type }} {{ property.initDefaultValue }}{% if not forloop.last %},{% endif%}
|
{{ property.name }}: {{ property.type }} {{ property.initDefaultValue }}{% if not forloop.last %},{% endif%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
{% include "Header_Snippet.stencil" %}
|
|
||||||
|
|
||||||
{% include "Import_Snippet.stencil" %}
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension {{ model.extensionName }}
|
|
||||||
{
|
|
||||||
{% include "Method_Options_Snippet.stencil" %}
|
|
||||||
}
|
|
|
@ -8,9 +8,9 @@
|
||||||
// swiftlint:disable type_body_length
|
// swiftlint:disable type_body_length
|
||||||
|
|
||||||
{{ group.comment }}
|
{{ group.comment }}
|
||||||
public final class {{ group.name }} {
|
{{ model.visibility }} final class {{ group.name }} {
|
||||||
|
|
||||||
public let client: {{ model.name }}
|
{{ model.visibility }} let client: {{ model.name }}
|
||||||
|
|
||||||
init(client: {{ model.name }}) {
|
init(client: {{ model.name }}) {
|
||||||
self.client = client
|
self.client = client
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/// - options: A list of options for the operation
|
/// - options: A list of options for the operation
|
||||||
/// - completionHandler: A completion handler that receives a status code on
|
/// - completionHandler: A completion handler that receives a status code on
|
||||||
/// success.
|
/// success.
|
||||||
public func {{ op.name }}(
|
{{ model.visibility }} func {{ op.name }}(
|
||||||
{% if op.params.body != nil %}
|
{% if op.params.body != nil %}
|
||||||
{% include "Operation_BodyParam_Snippet.stencil" op %}
|
{% include "Operation_BodyParam_Snippet.stencil" op %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -15,7 +15,7 @@ let package = Package(
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(
|
.package(
|
||||||
url: "https://github.com/Azure/azure-sdk-for-ios.git",
|
url: "https://github.com/Azure/SwiftPM-AzureCore.git",
|
||||||
.branch("dev/AzureCore")
|
.branch("dev/AzureCore")
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
|
@ -23,7 +23,7 @@ let package = Package(
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(
|
.package(
|
||||||
url: "https://github.com/Azure/azure-sdk-for-ios.git",
|
url: "https://github.com/Azure/SwiftPM-AzureCore.git",
|
||||||
.branch("dev/AzureCore")
|
.branch("dev/AzureCore")
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
|
@ -87,5 +87,5 @@ public final class AutoRestSwaggerBatArrayClient: PipelineClient {
|
||||||
|
|
||||||
public lazy var arrayOperation = ArrayOperation(client: self)
|
public lazy var arrayOperation = ArrayOperation(client: self)
|
||||||
|
|
||||||
// MARK: Public Client Methods
|
// MARK: Client Methods
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetArrayEmpty` operation.
|
|
||||||
public struct GetArrayEmptyOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetArrayEmptyOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetArrayItemEmpty` operation.
|
|
||||||
public struct GetArrayItemEmptyOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetArrayItemEmptyOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetArrayItemNull` operation.
|
|
||||||
public struct GetArrayItemNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetArrayItemNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetArrayNull` operation.
|
|
||||||
public struct GetArrayNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetArrayNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetArrayValid` operation.
|
|
||||||
public struct GetArrayValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetArrayValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetBase64Url` operation.
|
|
||||||
public struct GetBase64UrlOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetBase64UrlOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetBooleanInvalidNull` operation.
|
|
||||||
public struct GetBooleanInvalidNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetBooleanInvalidNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetBooleanInvalidString` operation.
|
|
||||||
public struct GetBooleanInvalidStringOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetBooleanInvalidStringOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetBooleanTfft` operation.
|
|
||||||
public struct GetBooleanTfftOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetBooleanTfftOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetByteInvalidNull` operation.
|
|
||||||
public struct GetByteInvalidNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetByteInvalidNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetByteValid` operation.
|
|
||||||
public struct GetByteValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetByteValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetComplexEmpty` operation.
|
|
||||||
public struct GetComplexEmptyOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetComplexEmptyOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetComplexItemEmpty` operation.
|
|
||||||
public struct GetComplexItemEmptyOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetComplexItemEmptyOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetComplexItemNull` operation.
|
|
||||||
public struct GetComplexItemNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetComplexItemNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetComplexNull` operation.
|
|
||||||
public struct GetComplexNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetComplexNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetComplexValid` operation.
|
|
||||||
public struct GetComplexValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetComplexValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDateInvalidChars` operation.
|
|
||||||
public struct GetDateInvalidCharsOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDateInvalidCharsOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDateInvalidNull` operation.
|
|
||||||
public struct GetDateInvalidNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDateInvalidNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDateTimeInvalidChars` operation.
|
|
||||||
public struct GetDateTimeInvalidCharsOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDateTimeInvalidCharsOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDateTimeInvalidNull` operation.
|
|
||||||
public struct GetDateTimeInvalidNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDateTimeInvalidNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDateTimeRfc1123Valid` operation.
|
|
||||||
public struct GetDateTimeRfc1123ValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDateTimeRfc1123ValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDateTimeValid` operation.
|
|
||||||
public struct GetDateTimeValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDateTimeValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDateValid` operation.
|
|
||||||
public struct GetDateValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDateValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDictionaryEmpty` operation.
|
|
||||||
public struct GetDictionaryEmptyOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDictionaryEmptyOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDictionaryItemEmpty` operation.
|
|
||||||
public struct GetDictionaryItemEmptyOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDictionaryItemEmptyOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDictionaryItemNull` operation.
|
|
||||||
public struct GetDictionaryItemNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDictionaryItemNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDictionaryNull` operation.
|
|
||||||
public struct GetDictionaryNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDictionaryNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDictionaryValid` operation.
|
|
||||||
public struct GetDictionaryValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDictionaryValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDoubleInvalidNull` operation.
|
|
||||||
public struct GetDoubleInvalidNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDoubleInvalidNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDoubleInvalidString` operation.
|
|
||||||
public struct GetDoubleInvalidStringOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDoubleInvalidStringOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDoubleValid` operation.
|
|
||||||
public struct GetDoubleValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDoubleValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetDurationValid` operation.
|
|
||||||
public struct GetDurationValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetDurationValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetEmpty` operation.
|
|
||||||
public struct GetEmptyOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetEmptyOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetEnumValid` operation.
|
|
||||||
public struct GetEnumValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetEnumValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetFloatInvalidNull` operation.
|
|
||||||
public struct GetFloatInvalidNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetFloatInvalidNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetFloatInvalidString` operation.
|
|
||||||
public struct GetFloatInvalidStringOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetFloatInvalidStringOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetFloatValid` operation.
|
|
||||||
public struct GetFloatValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetFloatValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetIntInvalidNull` operation.
|
|
||||||
public struct GetIntInvalidNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetIntInvalidNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetIntInvalidString` operation.
|
|
||||||
public struct GetIntInvalidStringOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetIntInvalidStringOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetIntegerValid` operation.
|
|
||||||
public struct GetIntegerValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetIntegerValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetInvalid` operation.
|
|
||||||
public struct GetInvalidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetInvalidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetLongInvalidNull` operation.
|
|
||||||
public struct GetLongInvalidNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetLongInvalidNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetLongInvalidString` operation.
|
|
||||||
public struct GetLongInvalidStringOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetLongInvalidStringOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetLongValid` operation.
|
|
||||||
public struct GetLongValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetLongValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetNull` operation.
|
|
||||||
public struct GetNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetStringEnumValid` operation.
|
|
||||||
public struct GetStringEnumValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetStringEnumValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetStringValid` operation.
|
|
||||||
public struct GetStringValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetStringValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetStringWithInvalid` operation.
|
|
||||||
public struct GetStringWithInvalidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetStringWithInvalidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetStringWithNull` operation.
|
|
||||||
public struct GetStringWithNullOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetStringWithNullOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetUuidInvalidChars` operation.
|
|
||||||
public struct GetUuidInvalidCharsOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetUuidInvalidCharsOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.GetUuidValid` operation.
|
|
||||||
public struct GetUuidValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `GetUuidValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutArrayValid` operation.
|
|
||||||
public struct PutArrayValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutArrayValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutBooleanTfft` operation.
|
|
||||||
public struct PutBooleanTfftOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutBooleanTfftOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutByteValid` operation.
|
|
||||||
public struct PutByteValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutByteValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutComplexValid` operation.
|
|
||||||
public struct PutComplexValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutComplexValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutDateTimeRfc1123Valid` operation.
|
|
||||||
public struct PutDateTimeRfc1123ValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutDateTimeRfc1123ValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutDateTimeValid` operation.
|
|
||||||
public struct PutDateTimeValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutDateTimeValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutDateValid` operation.
|
|
||||||
public struct PutDateValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutDateValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutDictionaryValid` operation.
|
|
||||||
public struct PutDictionaryValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutDictionaryValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutDoubleValid` operation.
|
|
||||||
public struct PutDoubleValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutDoubleValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutDurationValid` operation.
|
|
||||||
public struct PutDurationValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutDurationValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutEmpty` operation.
|
|
||||||
public struct PutEmptyOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutEmptyOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutEnumValid` operation.
|
|
||||||
public struct PutEnumValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutEnumValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,52 +0,0 @@
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
// Licensed under the MIT License. See License.txt in the project root for
|
|
||||||
// license information.
|
|
||||||
//
|
|
||||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
||||||
// Changes may cause incorrect behavior and will be lost if the code is
|
|
||||||
// regenerated.
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import AzureCore
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// swiftlint:disable superfluous_disable_command
|
|
||||||
// swiftlint:disable identifier_name
|
|
||||||
// swiftlint:disable line_length
|
|
||||||
|
|
||||||
extension ArrayOperation {
|
|
||||||
/// User-configurable options for the `AutoRestSwaggerBATArrayService.PutFloatValid` operation.
|
|
||||||
public struct PutFloatValidOptions: RequestOptions {
|
|
||||||
/// A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// Highly recommended for correlating client-side activites with requests received by the server.
|
|
||||||
public let clientRequestId: String?
|
|
||||||
|
|
||||||
/// A token used to make a best-effort attempt at canceling a request.
|
|
||||||
public let cancellationToken: CancellationToken?
|
|
||||||
|
|
||||||
/// A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
public var dispatchQueue: DispatchQueue?
|
|
||||||
|
|
||||||
/// A `PipelineContext` object to associate with the request.
|
|
||||||
public var context: PipelineContext?
|
|
||||||
|
|
||||||
/// Initialize a `PutFloatValidOptions` structure.
|
|
||||||
/// - Parameters:
|
|
||||||
/// - clientRequestId: A client-generated, opaque value with 1KB character limit that is recorded in analytics logs.
|
|
||||||
/// - cancellationToken: A token used to make a best-effort attempt at canceling a request.
|
|
||||||
/// - dispatchQueue: A dispatch queue on which to call the completion handler. Defaults to `DispatchQueue.main`.
|
|
||||||
/// - context: A `PipelineContext` object to associate with the request.
|
|
||||||
public init(
|
|
||||||
clientRequestId: String? = nil,
|
|
||||||
cancellationToken: CancellationToken? = nil,
|
|
||||||
dispatchQueue: DispatchQueue? = nil,
|
|
||||||
context: PipelineContext? = nil
|
|
||||||
) {
|
|
||||||
self.clientRequestId = clientRequestId
|
|
||||||
self.cancellationToken = cancellationToken
|
|
||||||
self.dispatchQueue = dispatchQueue
|
|
||||||
self.context = context
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче