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:
Travis Prescott 2021-05-05 14:57:34 -07:00 коммит произвёл GitHub
Родитель 513e77b7e5
Коммит 582c848219
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
911 изменённых файлов: 20635 добавлений и 22588 удалений

Просмотреть файл

@ -133,11 +133,9 @@
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 */; };
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 */; };
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 */; };
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 */; };
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 */; };
@ -239,8 +237,6 @@
61408633D6F295F6BEB082F0 /* libPods-AutorestSwift.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A3FDFDBC61B301CB1982C7A8 /* libPods-AutorestSwift.a */; };
F106826D24CF5B9C007EB4D5 /* .swiftlint.yml in CopyFiles */ = {isa = PBXBuildFile; fileRef = F106826C24CF5B7C007EB4D5 /* .swiftlint.yml */; };
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 */; };
F15D30EF2548F38700265366 /* AutoRestUrlPathItemsTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = F15D30EC2548F38700265366 /* AutoRestUrlPathItemsTest.swift */; };
F15D30F02548F38700265366 /* AutoRestUrlQueriesTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = F15D30ED2548F38700265366 /* AutoRestUrlQueriesTest.swift */; };
@ -266,8 +262,6 @@
dstPath = "";
dstSubfolderSpec = 6;
files = (
F106830524CF93CD007EB4D5 /* swiftlint in CopyFiles */,
F106830424CF93C5007EB4D5 /* swiftformat in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -296,11 +290,9 @@
0A47434C2582919700CA86E5 /* Import_Snippet.stencil in CopyFiles */,
0A47434D2582919700CA86E5 /* Jazzy_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 */,
0A4743552582919700CA86E5 /* Model_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 */,
0A4743592582919700CA86E5 /* Operation_DefaultException_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>"; };
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; };
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>"; };
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>"; };
@ -482,8 +472,6 @@
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>"; };
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>"; };
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>"; };
@ -682,11 +670,9 @@
0A22B07024CB71E100EC018E /* Import_Snippet.stencil */,
0A22B46324E1E64900EC018E /* Jazzy_File.stencil */,
0A22B0C024D32F2E00EC018E /* Method_Options_File.stencil */,
F1731F2E2522E4D8006CDED8 /* Method_Options_Snippet.stencil */,
F1A5FD7A24DCFECB00A5CC6C /* Model_Codable_Snippet.stencil */,
0A22B07324CB71E100EC018E /* Model_File.stencil */,
F1587DA8251A965900A89B98 /* Named_OperationGroup_File.stencil */,
F1731F2F2522E4F0006CDED8 /* NamedMethod_Options_File.stencil */,
0A22B46124DCE50400EC018E /* Operation_BodyParam_Snippet.stencil */,
F187186C250C2B3F00318867 /* Operation_DefaultException_Snippet.stencil */,
F1068F3C24D484A90082793F /* Operation_Request_Body_Snippet.stencil */,
@ -804,15 +790,6 @@
path = configs;
sourceTree = "<group>";
};
F106830224CF9226007EB4D5 /* tools */ = {
isa = PBXGroup;
children = (
F106830324CF9244007EB4D5 /* swiftformat */,
F106830124CF9220007EB4D5 /* swiftlint */,
);
path = tools;
sourceTree = "<group>";
};
F1A6719324F5CCCC00C2712C /* AutorestSwiftTest */ = {
isa = PBXGroup;
children = (
@ -842,7 +819,6 @@
0ADDD29225915C1300BD5E58 /* validation */,
0ADDD0FD258D656A00BD5E58 /* extensible-enums-swagger */,
0AB80BBA257982D7008506CD /* xms-error-responses */,
F1A6719624F5CCCC00C2712C /* Info.plist */,
F15A9283254B089700E2D9C2 /* AutoRestBodyIntegerTest.swift */,
F16CDA152568765700FD0817 /* AutoRestDateTest.swift */,
F16CDA172568765800FD0817 /* AutoRestDateTimeRfc1123Test.swift */,
@ -965,13 +941,13 @@
0AA2B98824E5FD6500CEA1D6 /* package.json */,
0A22B09524D09C2900EC018E /* Makefile */,
OBJ_6 /* Package.swift */,
F1A6719624F5CCCC00C2712C /* Info.plist */,
OBJ_7 /* Sources */,
F1A6719324F5CCCC00C2712C /* AutorestSwiftTest */,
OBJ_114 /* Products */,
0A97DC5025D5BE7D00E38BF8 /* eng */,
OBJ_120 /* scripts */,
0A22B06F24CB71E100EC018E /* templates */,
F106830224CF9226007EB4D5 /* tools */,
F106826A24CF5AB9007EB4D5 /* configs */,
OBJ_122 /* LICENSE */,
OBJ_124 /* README.md */,
@ -1497,7 +1473,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = AutorestSwiftTest/Info.plist;
INFOPLIST_FILE = Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
@ -1562,7 +1538,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = AutorestSwiftTest/Info.plist;
INFOPLIST_FILE = Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
@ -1593,7 +1569,7 @@
"$(PROJECT_DIR)/Carthage/Build/Mac",
);
HEADER_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = AutorestSwift.xcodeproj/AutorestSwift_Info.plist;
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@ -1604,6 +1580,7 @@
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
SUPPORTED_PLATFORMS = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)";
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
SWIFT_FORCE_STATIC_LINK_STDLIB = NO;
@ -1626,7 +1603,7 @@
"$(PROJECT_DIR)/Carthage/Build/Mac",
);
HEADER_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = AutorestSwift.xcodeproj/AutorestSwift_Info.plist;
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@ -1637,6 +1614,7 @@
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
SUPPORTED_PLATFORMS = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)";
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
SWIFT_FORCE_STATIC_LINK_STDLIB = NO;
@ -1667,7 +1645,7 @@
OTHER_SWIFT_FLAGS = "$(inherited) -DXcode";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SUPPORTED_PLATFORMS = "macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator";
SUPPORTED_PLATFORMS = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SWIFT_PACKAGE DEBUG";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
USE_HEADERMAP = NO;
@ -1691,7 +1669,7 @@
OTHER_SWIFT_FLAGS = "$(inherited) -DXcode";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SUPPORTED_PLATFORMS = "macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator";
SUPPORTED_PLATFORMS = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SWIFT_PACKAGE";
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1220"
LastUpgradeVersion = "1240"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1220"
LastUpgradeVersion = "1240"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -311,7 +311,7 @@ class AutoRestSwaggerBatHeaderTest: XCTestCase {
func test_header_paramString200() throws {
let expectation = XCTestExpectation(description: "Call header.paramString")
let options = Header.ParamStringOptions(
let options = ParamStringOptions(
value: "The quick brown fox jumps over the lazy dog"
)
@ -326,7 +326,7 @@ class AutoRestSwaggerBatHeaderTest: XCTestCase {
expectation.fulfill()
}
let emptyOptions = Header.ParamStringOptions(
let emptyOptions = ParamStringOptions(
value: ""
)
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 date = Rfc1123Date(string: dateString)!
let options = Header.ParamDatetimeRfc1123Options(
let options = ParamDatetimeRfc1123Options(
value: date
)
client.header.paramDatetimeRfc1123(scenario: "valid", withOptions: options) { result, httpResponse in
@ -541,7 +541,7 @@ class AutoRestSwaggerBatHeaderTest: XCTestCase {
func test_header_paramEnum200() throws {
let expectation = XCTestExpectation(description: "Call header.paramEnum")
let options = Header.ParamEnumOptions(
let options = ParamEnumOptions(
value: .grey
)

Просмотреть файл

@ -47,7 +47,7 @@ class AutoRestParameterizedCustomHostTest: XCTestCase {
func test_getEmpty200() throws {
let expectation = XCTestExpectation(description: "Call paths.getEmpty")
let options = Paths.GetEmptyOptions(
let options = GetEmptyOptions(
keyVersion: "v1"
)

Просмотреть файл

@ -60,7 +60,7 @@ class AutoRestUrlMutliCollectionFormatTest: XCTestCase {
func test_queries_arrayStringMultiEmpty_200() throws {
let expectation = XCTestExpectation(description: "Call queries.arrayStringMultiEmpty")
let options = Queries.ArrayStringMultiEmptyOptions(
let options = ArrayStringMultiEmptyOptions(
arrayQuery: []
)
@ -81,7 +81,7 @@ class AutoRestUrlMutliCollectionFormatTest: XCTestCase {
func test_queries_arrayStringMultiValid_200() throws {
let expectation = XCTestExpectation(description: "Call queries.arrayStringMultiValid")
let options = Queries.ArrayStringMultiValidOptions(
let options = ArrayStringMultiValidOptions(
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
)

Просмотреть файл

@ -46,7 +46,7 @@ class AutoRestUrlPathItemsTest: XCTestCase {
func test_Pathitems_getGlobalQueryNull_200() throws {
let expectation = XCTestExpectation(description: "Call pathitems_getGlobalQueryNull")
let options = PathItems.GetGlobalQueryNullOptions(
let options = GetGlobalQueryNullOptions(
pathItemStringQuery: "pathItemStringQuery",
localStringQuery: "localStringQuery"
)
@ -71,7 +71,7 @@ class AutoRestUrlPathItemsTest: XCTestCase {
func test_Pathitems_getGlobalAndLocalQueryNull_200() throws {
let expectation = XCTestExpectation(description: "Call pathitems.getGlobalAndLocalQueryNull")
let options = PathItems.GetGlobalAndLocalQueryNullOptions(pathItemStringQuery: "pathItemStringQuery")
let options = GetGlobalAndLocalQueryNullOptions(pathItemStringQuery: "pathItemStringQuery")
client.pathItems.getGlobalAndLocalQueryNull(
pathItemStringPath: "pathItemStringPath",
localStringPath: "localStringPath",
@ -113,7 +113,7 @@ class AutoRestUrlPathItemsTest: XCTestCase {
func test_Pathitems_listAllWithValues_200() throws {
let expectation = XCTestExpectation(description: "Call pathitems_listAllWithValues")
client.globalStringQuery = "globalStringQuery"
let options = PathItems.GetAllWithValuesOptions(
let options = GetAllWithValuesOptions(
pathItemStringQuery: "pathItemStringQuery",
localStringQuery: "localStringQuery"
)

Просмотреть файл

@ -81,7 +81,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
guard let byteQuery = "啊齄丂狛狜隣郎隣兀﨩".data(using: .utf8)?.base64EncodedData() else {
return
}
let options = Queries.ByteMultiByteOptions(byteQuery: byteQuery)
let options = ByteMultiByteOptions(byteQuery: byteQuery)
client.queries.byteMultiByte(withOptions: options) { result, httpResponse in
switch result {
case .success:
@ -148,7 +148,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
func test_Queries_enumValid_200() throws {
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
switch result {
case .success:
@ -472,7 +472,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
func test_Queries_arrayStringCsvValid_200() throws {
let expectation = XCTestExpectation(description: "Call queries.arrayStringCsvValid")
let options = Queries.ArrayStringCsvValidOptions(
let options = ArrayStringCsvValidOptions(
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
)
@ -493,7 +493,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
func test_Queries_arrayStringPipesValid_200() throws {
let expectation = XCTestExpectation(description: "Call queries.arrayStringPipesValid")
let options = Queries.ArrayStringPipesValidOptions(
let options = ArrayStringPipesValidOptions(
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
)
@ -514,7 +514,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
func test_Queries_arrayStringSsvValid_200() throws {
let expectation = XCTestExpectation(description: "Call queries.arrayStringSsvValid")
let options = Queries.ArrayStringSsvValidOptions(
let options = ArrayStringSsvValidOptions(
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
)
@ -535,7 +535,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
func test_Queries_arrayStringTsvValid_200() throws {
let expectation = XCTestExpectation(description: "Call queries.arrayStringTsvValid")
let options = Queries.ArrayStringTsvValidOptions(
let options = ArrayStringTsvValidOptions(
arrayQuery: ["ArrayQuery1", "begin!*'();:@ &=+$,/?#[]end", "", ""]
)
@ -556,7 +556,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
func test_Queries_arrayStringNoCollectionFormatEmpty_200() throws {
let expectation = XCTestExpectation(description: "Call queries.arrayStringNoCollectionFormatEmpty")
let options = Queries.ArrayStringNoCollectionFormatEmptyOptions(
let options = ArrayStringNoCollectionFormatEmptyOptions(
arrayQuery: ["hello", "nihao", "bonjour"]
)
@ -577,7 +577,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
func test_Queries_arrayStringCsvEmpty_200() throws {
let expectation = XCTestExpectation(description: "Call queries.arrayStringCsvEmpty")
let options = Queries.ArrayStringCsvEmptyOptions(
let options = ArrayStringCsvEmptyOptions(
arrayQuery: []
)
@ -598,7 +598,7 @@ class AutoRestUrlQuriesTest: XCTestCase {
func test_Queries_arrayStringCsvNull_200() throws {
let expectation = XCTestExpectation(description: "Call queries.arrayStringCsvNull")
let options = Queries.ArrayStringCsvNullOptions(
let options = ArrayStringCsvNullOptions(
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.
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/apple/swift-nio", from: "2.0.0"),
.package(
name: "AzureSDK",
url: "https://github.com/Azure/azure-sdk-for-ios.git",
name: "AzureCore",
url: "https://github.com/Azure/SwiftPM-AzureCore.git",
.branch("dev/AzureCore")
),
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.45.6"),
@ -62,7 +62,7 @@ let package = Package(
.testTarget(
name: "AutorestSwiftTest",
dependencies: [
.product(name: "AzureCore", package: "AzureSDK"),
.product(name: "AzureCore", package: "AzureCore"),
"AutoRestBoolTest",
"AutoRestDurationTest",
"AutoRestHeadTest",

Просмотреть файл

@ -33,9 +33,9 @@ class CommandLineArguments: Encodable {
/// Keys which are supported by Autorest.Swift
private let supportedKeys: [String] = [
"input-filename",
"output-directory",
"output-folder",
"clear-output-folder",
"project-directory",
"project-folder",
"add-credential",
"credential-scopes",
"license-header",
@ -46,7 +46,8 @@ class CommandLineArguments: Encodable {
"description",
"client-side-validation",
"package-name",
"package-version"
"package-version",
"generate-as-internal"
]
/// Keys which are explicitly unsupported and should throw and error if supplied
@ -62,9 +63,9 @@ class CommandLineArguments: Encodable {
return rawArgs["input-filename"]
}
/// The desired output directory for code
var outputDirectory: String? {
return rawArgs["output-directory"]
/// The desired output folder for code
var outputFolder: String? {
return rawArgs["output-folder"]
}
/// 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
var projectDirectory: String? {
return rawArgs["project-directory"]
var projectFolder: String? {
return rawArgs["project-folder"]
}
/// Whether to include a credential object in the generated code
@ -84,7 +85,7 @@ class CommandLineArguments: Encodable {
/// The scopes to use for generated credentials
var credentialScopes: [String]? {
return rawArgs["credential-scopes"]?.components(separatedBy: " ")
return split(string: rawArgs["credential-scopes"])
}
/// Which license header to use for generated files.
@ -132,6 +133,11 @@ class CommandLineArguments: Encodable {
return rawArgs["package-version"]
}
/// Transforms for model types
var generateAsInternal: ModelMap {
return ModelMap(with: rawArgs["generate-as-internal"])
}
// MARK: Initializers
init(client: ChannelClient?, sessionId: String?, completion: @escaping () -> Void) {
@ -206,3 +212,38 @@ class CommandLineArguments: Encodable {
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
/// 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 {
guard config == nil else {
SharedLogger.warn("Manager is already configured.")
return
}
// FIXME: Make this configurable
// TODO: Make this configurable?
let destUrl = destination.appendingPathComponent("generated").appendingPathComponent("sdk")
config?.destinationRootUrl = destUrl
config?.tempRootUrl = destUrl
do {
try destUrl.ensureExists()
} catch {
@ -73,11 +73,12 @@ class Manager {
SharedLogger.warn("Manager is already configured.")
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) {
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()
}
}
@ -92,10 +93,10 @@ class Manager {
// Create folder structure
let packageName = model.packageName
let packageUrl = config.destinationRootUrl.appendingPathComponent(packageName)
let packageUrl = config.tempRootUrl.appendingPathComponent(packageName)
try packageUrl.ensureExists()
config.packageUrl = packageUrl
config.tempPackageUrl = packageUrl
// Generate Swift code files
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.
// Dump both files so they can be diffed.
if beforeJsonString != afterJsonString {
let beforeJsonUrl = config.destinationRootUrl.appendingPathComponent("before.json")
let afterJsonUrl = config.destinationRootUrl.appendingPathComponent("after.json")
let beforeJsonUrl = config.tempRootUrl.appendingPathComponent("before.json")
let afterJsonUrl = config.tempRootUrl.appendingPathComponent("after.json")
SharedLogger.debug("before.json url=\(beforeJsonUrl)")
SharedLogger.debug("after.json url=\(afterJsonUrl)")
do {

Просмотреть файл

@ -29,9 +29,16 @@ import Foundation
import NIO
class ManagerConfig {
/// The YAML input string from Modeler4
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
/// - Parameters:
@ -39,6 +46,6 @@ class ManagerConfig {
/// - destinationRootUrl: `URL` for the destination root.
init(withInput input: String, destinationRootUrl: URL) {
self.inputString = input
self.destinationRootUrl = destinationRootUrl
self.tempRootUrl = destinationRootUrl
}
}

Просмотреть файл

@ -51,7 +51,7 @@ class SwiftGenerator: CodeGenerator {
// Create model files
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 {
SharedLogger.warn("\(name) has already been generated once this run. Skipping...")
@ -70,7 +70,7 @@ class SwiftGenerator: CodeGenerator {
if let immediates = object.parents?.immediate {
// render any immediate parents of the object schema
for parent in immediates {
let name = object.name
let name = Manager.shared.args!.generateAsInternal.aliasOrName(for: object.name)
guard modelsWritten[name] == nil else {
SharedLogger.warn("\(name) has already been generated once this run. Skipping...")
modelsWritten[name]! += 1
@ -93,7 +93,7 @@ class SwiftGenerator: CodeGenerator {
// Create group model files
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 {
SharedLogger.warn("\(name) has already been generated once this run. Skipping...")
modelsWritten[name]! += 1
@ -116,6 +116,13 @@ class SwiftGenerator: CodeGenerator {
let optionsUrl = baseUrl.with(subfolder: .options)
let utilUrl = baseUrl.with(subfolder: .util)
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 optionsUrl.ensureExists()
try utilUrl.ensureExists()
@ -167,7 +174,8 @@ class SwiftGenerator: CodeGenerator {
withFilename: "\(groupName)",
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
@ -221,9 +229,18 @@ class SwiftGenerator: CodeGenerator {
}
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 fileUrl = baseUrl.with(subfolder: subfolder).appendingPathComponent(fname)
return FileManager.default.fileExists(atPath: fileUrl.path)
let fileUrl = destRoot.with(subfolder: subfolder).appendingPathComponent(fname)
let result = FileManager.default.fileExists(atPath: fileUrl.path)
return result
}
private func render(
@ -241,16 +258,12 @@ class SwiftGenerator: CodeGenerator {
private func renderClientMethodOptionsFile(
for operationGroup: OperationGroupViewModel,
with groupName: String? = nil,
with _: String? = nil,
using template: String
) throws {
for operation in operationGroup.operations {
let clientMethodOptions = operation.clientMethodOptions
var fileName = ""
if let groupName = groupName {
fileName = "\(groupName + "+")"
}
fileName += "\(clientMethodOptions.name).swift"
try render(

Просмотреть файл

@ -175,7 +175,7 @@ class AutorestPlugin {
do {
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")
}
let generatedFileList = self.iterateDirectory(directory: packageUrl)

Просмотреть файл

@ -29,7 +29,6 @@ import Foundation
/// An operation group represents a container around set of operations
class OperationGroup: Metadata {
let key: String
let operations: [Operation]
enum CodingKeys: String, CodingKey {

Просмотреть файл

@ -157,7 +157,8 @@ class Schema: Codable, LanguageShortcut {
}
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 {

Просмотреть файл

@ -42,8 +42,11 @@ struct ClientMethodOptionsViewModel {
let extensionName: String
let visibility: String
init(from operation: Operation, with model: CodeModel, parameters: [ParameterType], groupName: String) {
self.clientName = model.name
self.visibility = Manager.shared.args!.generateAsInternal.visibility(for: clientName)
self.operationName = operation.name
self.name = "\(operation.name)Options"
if model.object(for: groupName) != nil {

Просмотреть файл

@ -33,13 +33,16 @@ import Foundation
struct EnumerationViewModel {
let name: String
let comment: ViewModelComment
let visibility: String
let type: String
let choices: [EnumerationChoiceViewModel]
let isExtensible: Bool
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.type = schema.choiceType.name
var items = [EnumerationChoiceViewModel]()
for choice in schema.choices {

Просмотреть файл

@ -36,13 +36,15 @@ struct ObjectViewModel {
let properties: [PropertyViewModel]
let constants: [ConstantViewModel]
let hasConstants: Bool
let visibility: String
var inheritance = "NSObject"
var typeKeywords = "struct"
var isErrorType = false
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)
// flatten out inheritance hierarchies so we can use structs
@ -81,7 +83,8 @@ struct ObjectViewModel {
}
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)
// flatten out inheritance hierarchies so we can use structs

Просмотреть файл

@ -32,6 +32,7 @@ import Foundation
/// ...
struct OperationGroupViewModel {
let name: String
let visibility: String
let operations: [OperationViewModel]
let comment: ViewModelComment
@ -45,8 +46,11 @@ struct OperationGroupViewModel {
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)
var items = [OperationViewModel]()
for operation in group.operations {

Просмотреть файл

@ -112,7 +112,8 @@ struct ResponseViewModel {
self.pagingNames = pagingNames
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)>"
} else {
self.type = schemaResponse?.schema.swiftType() ?? "Void"

Просмотреть файл

@ -56,7 +56,8 @@ struct ReturnTypeViewModel {
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
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.returnNil = hasNoBodyStrategies
} else {

Просмотреть файл

@ -30,6 +30,7 @@ import Foundation
struct ServiceClientFileViewModel {
let name: String
let comment: ViewModelComment
let visibility: String
let operationGroups: [OperationGroupViewModel]
let apiVersion: String
let apiVersionName: String
@ -43,7 +44,9 @@ struct ServiceClientFileViewModel {
let host: String
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)
var operationGroups = [OperationGroupViewModel]()
var namedOperationGroups = [String: OperationGroupViewModel]()

Просмотреть файл

@ -1,16 +1,16 @@
/// 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
case custom(String)
/// API version "{{ model.apiVersion }}"
case {{ model.apiVersionName }}
/// The most recent API version of the {{ model.description }}
public static var latest: ApiVersion {
{{ model.visibility }} static var latest: ApiVersion {
return .{{ model.apiVersionName }}
}
public var requestString: String {
{{ model.visibility }} var requestString: String {
switch self {
case let .custom(val):
return val
@ -19,7 +19,7 @@ public enum ApiVersion: RequestStringConvertible {
}
}
public init(_ val: String) {
{{ model.visibility }} init(_ val: String) {
switch val.lowercased() {
case "{{ model.apiVersion | lowercase }}":
self = .{{ model.apiVersionName }}

Просмотреть файл

@ -8,10 +8,10 @@
// swiftlint:disable type_body_length
{{ model.comment }}
public final class {{ model.name }}: {{ model.protocols }} {
{{ model.visibility }} final class {{ model.name }}: {{ model.protocols }} {
{% 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)
}
{% endif %}
@ -19,7 +19,7 @@ public final class {{ model.name }}: {{ model.protocols }} {
{% include "Client_ApiVersion_Snippet.stencil" model %}
/// Options provided to configure this `{{ model.name }}`.
public let options: {{ model.name }}Options
{{ model.visibility }} let options: {{ model.name }}Options
// MARK: Initializers
/// Create a {{ model.name }} client.
@ -27,7 +27,7 @@ public final class {{ model.name }}: {{ model.protocols }} {
/// - endpoint: Base URL for the {{ model.name }}.
/// - authPolicy: An `Authenticating` policy to use for authenticating client requests.
/// - options: Options used to configure the client.
public init(
{{ model.visibility }} init(
{% for param in model.globalParameters %}
{% if param.optional == false %}
{{ param.name }} : {{ param.type }},
@ -72,14 +72,14 @@ public final class {{ model.name }}: {{ model.protocols }} {
{% for param in model.globalParameters %}
// {{ param.comment }}
public var {{ param.name }}: {{ param.type }}{{ param.defaultValue }}
{{ model.visibility }} var {{ param.name }}: {{ param.type }}{{ param.defaultValue }}
{% endfor %}
{% 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 %}
// MARK: Public Client Methods
// MARK: Client Methods
{% for group in model.operationGroups %}
// MARK: {{ group.name }}
{% for op in group.operations %}

Просмотреть файл

@ -6,17 +6,17 @@
// swiftlint:disable line_length
/// 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.
public let apiVersion: String
{{ model.visibility }} let apiVersion: String
/// 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 }}`.
public let telemetryOptions: TelemetryOptions
{{ model.visibility }} let telemetryOptions: TelemetryOptions
/// 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`.
public let dispatchQueue: DispatchQueue?
{{ model.visibility }} let dispatchQueue: DispatchQueue?
/// Initialize a `{{ model.name }}Options` structure.
/// - Parameters:
@ -25,7 +25,7 @@ public struct {{ model.name }}Options: ClientOptions {
/// - telemetryOptions: Options for configuring telemetry sent by this `{{ model.name }}`.
/// - 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`.
public init(
{{ model.visibility }} init(
apiVersion: {{ model.name }}.ApiVersion = .latest,
logger: ClientLogger = ClientLoggers.default(tag: "{{ model.name }}Client"),
telemetryOptions: TelemetryOptions = TelemetryOptions(),

Просмотреть файл

@ -5,7 +5,7 @@
{% for enum in models.enums %}
{{ enum.comment }}
{% if enum.isExtensible %}
public enum {{ enum.name }}: RequestStringConvertible, Codable, Equatable {
{{ enum.visibility }} enum {{ enum.name }}: RequestStringConvertible, Codable, Equatable {
/// Custom value for unrecognized enum values
case custom({{ enum.type }})
{% for choice in enum.choices %}
@ -13,7 +13,7 @@
case {{ choice.name }}
{% endfor %}
public var requestString: String {
{{ enum.visibility }} var requestString: String {
switch self {
case let .custom(val):
return val
@ -24,7 +24,7 @@
}
}
public init(_ val: {{ enum.type }}) {
{{ enum.visibility }} init(_ val: {{ enum.type }}) {
switch val.lowercased() {
{% for choice in enum.choices %}
case "{{ choice.value | lowercase }}":
@ -49,13 +49,13 @@
}
}
{% else %}
public enum {{ enum.name }}: {{ enum.type }}, Codable, RequestStringConvertible {
{{ enum.visibility }} enum {{ enum.name }}: {{ enum.type }}, Codable, RequestStringConvertible {
{% for choice in enum.choices %}
{{ choice.comment }}
case {{ choice.name }} = "{{choice.value}}"
{% endfor %}
public var requestString: String {
{{ enum.visibility }} var requestString: String {
return rawValue
}
}

Просмотреть файл

@ -6,4 +6,51 @@
// swiftlint:disable identifier_name
// 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
{{ model.comment }}
public {{ model.typeKeywords }} {{ model.name }} : {{ model.inheritance }} {
{{ model.visibility }} {{ model.typeKeywords }} {{ model.name }} : {{ model.inheritance }} {
// MARK: Properties
{% for property in model.properties %}
{{ property.comment }}
public let {{ property.name }}: {{ property.type }}
{{ model.visibility }} let {{ property.name }}: {{ property.type }}
{% endfor %}
{% if model.hasConstants %}
// MARK: Constants
{% for constant in model.constants %}
{{ constant.comment }}
public let {{ constant.name }}{{constant.defaultValue}}
{{ model.visibility }} let {{ constant.name }}{{constant.defaultValue}}
{% endfor %}
{% endif %}
@ -29,7 +29,7 @@ public {{ model.typeKeywords }} {{ model.name }} : {{ model.inheritance }} {
{% for property in model.properties %}
/// - {{ property.name }}: {{ property.comment.withoutPrefix }}
{% endfor %}
public init(
{{ model.visibility }} init(
{% for property in model.properties %}
{{ property.name }}: {{ property.type }} {{ property.initDefaultValue }}{% if not forloop.last %},{% endif%}
{% 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
{{ 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 }}) {
self.client = client

Просмотреть файл

@ -4,7 +4,7 @@
/// - options: A list of options for the operation
/// - completionHandler: A completion handler that receives a status code on
/// success.
public func {{ op.name }}(
{{ model.visibility }} func {{ op.name }}(
{% if op.params.body != nil %}
{% include "Operation_BodyParam_Snippet.stencil" op %}
{% endif %}

Просмотреть файл

@ -15,7 +15,7 @@ let package = Package(
],
dependencies: [
.package(
url: "https://github.com/Azure/azure-sdk-for-ios.git",
url: "https://github.com/Azure/SwiftPM-AzureCore.git",
.branch("dev/AzureCore")
)
],

Просмотреть файл

@ -23,7 +23,7 @@ let package = Package(
],
dependencies: [
.package(
url: "https://github.com/Azure/azure-sdk-for-ios.git",
url: "https://github.com/Azure/SwiftPM-AzureCore.git",
.branch("dev/AzureCore")
)
],

Просмотреть файл

@ -87,5 +87,5 @@ public final class AutoRestSwaggerBatArrayClient: PipelineClient {
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
}
}
}

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше