diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 0ee40a4c51f81..271bbce4e36ca 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -228,7 +228,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index c70a172a3801e..76c6c33de0927 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20241007.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20241009.1" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.46.0", @@ -22,9 +22,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20241007.1", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20241007.1.tgz", - "integrity": "sha512-p63AmGFSIeGO7KWZCoopXmOG7D5dlk0WG7PLipXMa1OvhIm7y8zD4+MFfTxwG9mLRZlEPHWgceZvG7nw8RnMlw==" + "version": "3.0.0-beta.20241009.1", + "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20241009.1.tgz", + "integrity": "sha512-ELTmhuE+Wk7pWkmcK5X0Sn5ovs4M9fncL02uvvANDVaWfae3iBJY+jfPIjbDaIcZsSxrrnXP2iy+8n0xSRyNPg==" }, "node_modules/@azure-tools/typespec-autorest": { "version": "0.46.0", @@ -117,11 +117,11 @@ } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-beta.20241007.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20241007.1.tgz", - "integrity": "sha512-7RNc2V40NA2jj7LA30ZM1fH9pgzDJJUIGmlt+EjfZN8g257KU1yRlbIZseFbFYg/XDjM3udopEg/uAOfMjVACA==", + "version": "0.2.0-beta.20241009.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20241009.1.tgz", + "integrity": "sha512-n+3U0ZUZZGwClVkbwyK+Zbs9jcQt5PyrMDhh98R+WQrVgyuHFUEtUMEz8VW5IaryGiFQ7CgRluh9OzkUc2ZViA==", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20241007.1", + "@autorest/csharp": "3.0.0-beta.20241009.1", "@typespec/http-client-csharp": "0.1.9-alpha.20240925.1", "json-serialize-refs": "0.1.0-0" }, diff --git a/eng/emitter-package.json b/eng/emitter-package.json index a1fa1296afdad..a9cca2a962467 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,7 +1,7 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20241007.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20241009.1" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.46.0", diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/Multivariate.xml b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/Multivariate.xml index e6b90304283cd..36f0861211bba 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/Multivariate.xml +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/Multivariate.xml @@ -78,7 +78,7 @@ ModelInfo modelInfo = new ModelInfo(new Uri("https://multiadsample.blob.core.win { AlignMode = AlignMode.Outer, FillNAMethod = FillNAMethod.Linear, - PaddingValue = 0, + PaddingValue = 0F, }, }; Response response = await client.TrainMultivariateModelAsync(modelInfo); @@ -101,7 +101,7 @@ ModelInfo modelInfo = new ModelInfo(new Uri("https://multiadsample.blob.core.win { AlignMode = AlignMode.Outer, FillNAMethod = FillNAMethod.Linear, - PaddingValue = 0, + PaddingValue = 0F, }, }; Response response = client.TrainMultivariateModel(modelInfo); @@ -122,7 +122,7 @@ using RequestContent content = RequestContent.Create(new { alignMode = "Outer", fillNAMethod = "Linear", - paddingValue = 0, + paddingValue = 0F, }, dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", dataSchema = "OneTable", @@ -153,7 +153,7 @@ using RequestContent content = RequestContent.Create(new { alignMode = "Outer", fillNAMethod = "Linear", - paddingValue = 0, + paddingValue = 0F, }, dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", dataSchema = "OneTable", @@ -341,9 +341,9 @@ Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultiva MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[] { - new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4551378545933972, (float)0.7388603950488748, (float)0.201088255984052, (float)0.7462812245891899, (float)0.07308128850401663, (float)0.33090474587393537, (float)0.7544925268153315, (float)0.987506336316328, (float)0.6665932993421468, (float)0.6308351543168672, (float)0.08083310161466228, (float)0.8414415588668442, (float)0.514583545640453, (float)0.0954489875193526, (float)0.7786793231920507, (float)0.41646133667960994, (float)0.030176187583339287, (float)0.3474214937189324, (float)0.508530173413991, (float)0.42451199127255046, (float)0.2115944222725208, (float)0.24733519545833516, (float)0.8791022110982156, (float)0.9479621899884665, (float)0.26702703121252136, (float)0.6954503497669413, (float)0.1235728391488995, (float)0.8214915473050647, (float)0.11813002444192677, (float)0.8579045951076123}), - new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.9617871613964145, (float)0.24903311574778408, (float)0.4920561254118613, (float)0.9895601049618598, (float)0.9171759283128094, (float)0.5754204711105273, (float)0.1811033296265634, (float)0.8852311981742577, (float)0.9543231904644779, (float)0.7088012446094262, (float)0.7843572237149014, (float)0.7664787010700046, (float)0.3699552325387093, (float)0.504519908266789, (float)0.5848930929950164, (float)0.7628913396089576, (float)0.8148405868900065, (float)0.08540458873739332, (float)0.03481976727525682, (float)0.21275099339467762, (float)0.9836175579199806, (float)0.9321441483364282, (float)0.038466608085469534, (float)0.1723138437622782, (float)0.8626383410218382, (float)0.35053229974224254, (float)0.631141662835182, (float)0.0730352607990088, (float)0.08886179043386, (float)0.7488606040971179}), - new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4030756879437628, (float)0.15526889968448554, (float)0.36352226408981103, (float)0.6051200637229004, (float)0.8516795018476276, (float)0.2645605735279929, (float)0.6810875830037345, (float)0.9165894221681316, (float)0.700783245230424, (float)0.5624155469940331, (float)0.6277289685127893, (float)0.15992056539730204, (float)0.6020964482827594, (float)0.35937967753105915, (float)0.8731686034848609, (float)0.20301549117588935, (float)0.029261872151168933, (float)0.6261499548828445, (float)0.45850782028563386, (float)0.8275006940083313, (float)0.032760268834037376, (float)0.4485202784055029, (float)0.8915691008748384, (float)0.891669051517807, (float)0.9469979353323046, (float)0.115293087370132, (float)0.08818772518459506, (float)0.7426286620589166, (float)0.32372247468990756, (float)0.936268139507417}) + new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.45513785F, 0.73886037F, 0.20108825F, 0.7462812F, 0.07308129F, 0.33090475F, 0.7544925F, 0.98750633F, 0.6665933F, 0.6308352F, 0.0808331F, 0.8414416F, 0.5145835F, 0.095448986F, 0.7786793F, 0.41646135F, 0.030176187F, 0.3474215F, 0.5085302F, 0.424512F, 0.21159442F, 0.2473352F, 0.87910223F, 0.94796216F, 0.26702702F, 0.69545037F, 0.12357284F, 0.82149154F, 0.11813002F, 0.8579046F}), + new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.96178716F, 0.24903311F, 0.49205613F, 0.9895601F, 0.91717595F, 0.5754205F, 0.18110333F, 0.8852312F, 0.9543232F, 0.70880127F, 0.78435725F, 0.7664787F, 0.36995524F, 0.5045199F, 0.5848931F, 0.76289135F, 0.8148406F, 0.08540459F, 0.034819767F, 0.21275099F, 0.98361754F, 0.93214417F, 0.038466606F, 0.17231384F, 0.86263835F, 0.3505323F, 0.63114166F, 0.07303526F, 0.08886179F, 0.7488606F}), + new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.4030757F, 0.1552689F, 0.36352226F, 0.60512006F, 0.8516795F, 0.26456058F, 0.68108755F, 0.91658944F, 0.70078325F, 0.56241554F, 0.62772894F, 0.15992056F, 0.60209644F, 0.35937968F, 0.8731686F, 0.20301549F, 0.029261872F, 0.62614995F, 0.4585078F, 0.8275007F, 0.03276027F, 0.44852027F, 0.8915691F, 0.89166903F, 0.94699794F, 0.115293086F, 0.088187724F, 0.74262863F, 0.32372248F, 0.93626815F}) }) { TopContributorCount = 10, @@ -361,9 +361,9 @@ Multivariate client = new AnomalyDetectorClient(endpoint, credential).GetMultiva MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[] { - new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4551378545933972, (float)0.7388603950488748, (float)0.201088255984052, (float)0.7462812245891899, (float)0.07308128850401663, (float)0.33090474587393537, (float)0.7544925268153315, (float)0.987506336316328, (float)0.6665932993421468, (float)0.6308351543168672, (float)0.08083310161466228, (float)0.8414415588668442, (float)0.514583545640453, (float)0.0954489875193526, (float)0.7786793231920507, (float)0.41646133667960994, (float)0.030176187583339287, (float)0.3474214937189324, (float)0.508530173413991, (float)0.42451199127255046, (float)0.2115944222725208, (float)0.24733519545833516, (float)0.8791022110982156, (float)0.9479621899884665, (float)0.26702703121252136, (float)0.6954503497669413, (float)0.1235728391488995, (float)0.8214915473050647, (float)0.11813002444192677, (float)0.8579045951076123}), - new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.9617871613964145, (float)0.24903311574778408, (float)0.4920561254118613, (float)0.9895601049618598, (float)0.9171759283128094, (float)0.5754204711105273, (float)0.1811033296265634, (float)0.8852311981742577, (float)0.9543231904644779, (float)0.7088012446094262, (float)0.7843572237149014, (float)0.7664787010700046, (float)0.3699552325387093, (float)0.504519908266789, (float)0.5848930929950164, (float)0.7628913396089576, (float)0.8148405868900065, (float)0.08540458873739332, (float)0.03481976727525682, (float)0.21275099339467762, (float)0.9836175579199806, (float)0.9321441483364282, (float)0.038466608085469534, (float)0.1723138437622782, (float)0.8626383410218382, (float)0.35053229974224254, (float)0.631141662835182, (float)0.0730352607990088, (float)0.08886179043386, (float)0.7488606040971179}), - new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4030756879437628, (float)0.15526889968448554, (float)0.36352226408981103, (float)0.6051200637229004, (float)0.8516795018476276, (float)0.2645605735279929, (float)0.6810875830037345, (float)0.9165894221681316, (float)0.700783245230424, (float)0.5624155469940331, (float)0.6277289685127893, (float)0.15992056539730204, (float)0.6020964482827594, (float)0.35937967753105915, (float)0.8731686034848609, (float)0.20301549117588935, (float)0.029261872151168933, (float)0.6261499548828445, (float)0.45850782028563386, (float)0.8275006940083313, (float)0.032760268834037376, (float)0.4485202784055029, (float)0.8915691008748384, (float)0.891669051517807, (float)0.9469979353323046, (float)0.115293087370132, (float)0.08818772518459506, (float)0.7426286620589166, (float)0.32372247468990756, (float)0.936268139507417}) + new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.45513785F, 0.73886037F, 0.20108825F, 0.7462812F, 0.07308129F, 0.33090475F, 0.7544925F, 0.98750633F, 0.6665933F, 0.6308352F, 0.0808331F, 0.8414416F, 0.5145835F, 0.095448986F, 0.7786793F, 0.41646135F, 0.030176187F, 0.3474215F, 0.5085302F, 0.424512F, 0.21159442F, 0.2473352F, 0.87910223F, 0.94796216F, 0.26702702F, 0.69545037F, 0.12357284F, 0.82149154F, 0.11813002F, 0.8579046F}), + new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.96178716F, 0.24903311F, 0.49205613F, 0.9895601F, 0.91717595F, 0.5754205F, 0.18110333F, 0.8852312F, 0.9543232F, 0.70880127F, 0.78435725F, 0.7664787F, 0.36995524F, 0.5045199F, 0.5848931F, 0.76289135F, 0.8148406F, 0.08540459F, 0.034819767F, 0.21275099F, 0.98361754F, 0.93214417F, 0.038466606F, 0.17231384F, 0.86263835F, 0.3505323F, 0.63114166F, 0.07303526F, 0.08886179F, 0.7488606F}), + new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.4030757F, 0.1552689F, 0.36352226F, 0.60512006F, 0.8516795F, 0.26456058F, 0.68108755F, 0.91658944F, 0.70078325F, 0.56241554F, 0.62772894F, 0.15992056F, 0.60209644F, 0.35937968F, 0.8731686F, 0.20301549F, 0.029261872F, 0.62614995F, 0.4585078F, 0.8275007F, 0.03276027F, 0.44852027F, 0.8915691F, 0.89166903F, 0.94699794F, 0.115293086F, 0.088187724F, 0.74262863F, 0.32372248F, 0.93626815F}) }) { TopContributorCount = 10, @@ -421,36 +421,36 @@ using RequestContent content = RequestContent.Create(new }, values = new object[] { - 0.4551378545933972, - 0.7388603950488748, - 0.201088255984052, - 0.7462812245891899, - 0.07308128850401663, - 0.33090474587393537, - 0.7544925268153315, - 0.987506336316328, - 0.6665932993421468, - 0.6308351543168672, - 0.08083310161466228, - 0.8414415588668442, - 0.514583545640453, - 0.0954489875193526, - 0.7786793231920507, - 0.41646133667960994, - 0.030176187583339287, - 0.3474214937189324, - 0.508530173413991, - 0.42451199127255046, - 0.2115944222725208, - 0.24733519545833516, - 0.8791022110982156, - 0.9479621899884665, - 0.26702703121252136, - 0.6954503497669413, - 0.1235728391488995, - 0.8214915473050647, - 0.11813002444192677, - 0.8579045951076123 + 0.45513785F, + 0.73886037F, + 0.20108825F, + 0.7462812F, + 0.07308129F, + 0.33090475F, + 0.7544925F, + 0.98750633F, + 0.6665933F, + 0.6308352F, + 0.0808331F, + 0.8414416F, + 0.5145835F, + 0.095448986F, + 0.7786793F, + 0.41646135F, + 0.030176187F, + 0.3474215F, + 0.5085302F, + 0.424512F, + 0.21159442F, + 0.2473352F, + 0.87910223F, + 0.94796216F, + 0.26702702F, + 0.69545037F, + 0.12357284F, + 0.82149154F, + 0.11813002F, + 0.8579046F }, }, new @@ -491,36 +491,36 @@ using RequestContent content = RequestContent.Create(new }, values = new object[] { - 0.9617871613964145, - 0.24903311574778408, - 0.4920561254118613, - 0.9895601049618598, - 0.9171759283128094, - 0.5754204711105273, - 0.1811033296265634, - 0.8852311981742577, - 0.9543231904644779, - 0.7088012446094262, - 0.7843572237149014, - 0.7664787010700046, - 0.3699552325387093, - 0.504519908266789, - 0.5848930929950164, - 0.7628913396089576, - 0.8148405868900065, - 0.08540458873739332, - 0.03481976727525682, - 0.21275099339467762, - 0.9836175579199806, - 0.9321441483364282, - 0.038466608085469534, - 0.1723138437622782, - 0.8626383410218382, - 0.35053229974224254, - 0.631141662835182, - 0.0730352607990088, - 0.08886179043386, - 0.7488606040971179 + 0.96178716F, + 0.24903311F, + 0.49205613F, + 0.9895601F, + 0.91717595F, + 0.5754205F, + 0.18110333F, + 0.8852312F, + 0.9543232F, + 0.70880127F, + 0.78435725F, + 0.7664787F, + 0.36995524F, + 0.5045199F, + 0.5848931F, + 0.76289135F, + 0.8148406F, + 0.08540459F, + 0.034819767F, + 0.21275099F, + 0.98361754F, + 0.93214417F, + 0.038466606F, + 0.17231384F, + 0.86263835F, + 0.3505323F, + 0.63114166F, + 0.07303526F, + 0.08886179F, + 0.7488606F }, }, new @@ -561,36 +561,36 @@ using RequestContent content = RequestContent.Create(new }, values = new object[] { - 0.4030756879437628, - 0.15526889968448554, - 0.36352226408981103, - 0.6051200637229004, - 0.8516795018476276, - 0.2645605735279929, - 0.6810875830037345, - 0.9165894221681316, - 0.700783245230424, - 0.5624155469940331, - 0.6277289685127893, - 0.15992056539730204, - 0.6020964482827594, - 0.35937967753105915, - 0.8731686034848609, - 0.20301549117588935, - 0.029261872151168933, - 0.6261499548828445, - 0.45850782028563386, - 0.8275006940083313, - 0.032760268834037376, - 0.4485202784055029, - 0.8915691008748384, - 0.891669051517807, - 0.9469979353323046, - 0.115293087370132, - 0.08818772518459506, - 0.7426286620589166, - 0.32372247468990756, - 0.936268139507417 + 0.4030757F, + 0.1552689F, + 0.36352226F, + 0.60512006F, + 0.8516795F, + 0.26456058F, + 0.68108755F, + 0.91658944F, + 0.70078325F, + 0.56241554F, + 0.62772894F, + 0.15992056F, + 0.60209644F, + 0.35937968F, + 0.8731686F, + 0.20301549F, + 0.029261872F, + 0.62614995F, + 0.4585078F, + 0.8275007F, + 0.03276027F, + 0.44852027F, + 0.8915691F, + 0.89166903F, + 0.94699794F, + 0.115293086F, + 0.088187724F, + 0.74262863F, + 0.32372248F, + 0.93626815F }, } }, @@ -652,36 +652,36 @@ using RequestContent content = RequestContent.Create(new }, values = new object[] { - 0.4551378545933972, - 0.7388603950488748, - 0.201088255984052, - 0.7462812245891899, - 0.07308128850401663, - 0.33090474587393537, - 0.7544925268153315, - 0.987506336316328, - 0.6665932993421468, - 0.6308351543168672, - 0.08083310161466228, - 0.8414415588668442, - 0.514583545640453, - 0.0954489875193526, - 0.7786793231920507, - 0.41646133667960994, - 0.030176187583339287, - 0.3474214937189324, - 0.508530173413991, - 0.42451199127255046, - 0.2115944222725208, - 0.24733519545833516, - 0.8791022110982156, - 0.9479621899884665, - 0.26702703121252136, - 0.6954503497669413, - 0.1235728391488995, - 0.8214915473050647, - 0.11813002444192677, - 0.8579045951076123 + 0.45513785F, + 0.73886037F, + 0.20108825F, + 0.7462812F, + 0.07308129F, + 0.33090475F, + 0.7544925F, + 0.98750633F, + 0.6665933F, + 0.6308352F, + 0.0808331F, + 0.8414416F, + 0.5145835F, + 0.095448986F, + 0.7786793F, + 0.41646135F, + 0.030176187F, + 0.3474215F, + 0.5085302F, + 0.424512F, + 0.21159442F, + 0.2473352F, + 0.87910223F, + 0.94796216F, + 0.26702702F, + 0.69545037F, + 0.12357284F, + 0.82149154F, + 0.11813002F, + 0.8579046F }, }, new @@ -722,36 +722,36 @@ using RequestContent content = RequestContent.Create(new }, values = new object[] { - 0.9617871613964145, - 0.24903311574778408, - 0.4920561254118613, - 0.9895601049618598, - 0.9171759283128094, - 0.5754204711105273, - 0.1811033296265634, - 0.8852311981742577, - 0.9543231904644779, - 0.7088012446094262, - 0.7843572237149014, - 0.7664787010700046, - 0.3699552325387093, - 0.504519908266789, - 0.5848930929950164, - 0.7628913396089576, - 0.8148405868900065, - 0.08540458873739332, - 0.03481976727525682, - 0.21275099339467762, - 0.9836175579199806, - 0.9321441483364282, - 0.038466608085469534, - 0.1723138437622782, - 0.8626383410218382, - 0.35053229974224254, - 0.631141662835182, - 0.0730352607990088, - 0.08886179043386, - 0.7488606040971179 + 0.96178716F, + 0.24903311F, + 0.49205613F, + 0.9895601F, + 0.91717595F, + 0.5754205F, + 0.18110333F, + 0.8852312F, + 0.9543232F, + 0.70880127F, + 0.78435725F, + 0.7664787F, + 0.36995524F, + 0.5045199F, + 0.5848931F, + 0.76289135F, + 0.8148406F, + 0.08540459F, + 0.034819767F, + 0.21275099F, + 0.98361754F, + 0.93214417F, + 0.038466606F, + 0.17231384F, + 0.86263835F, + 0.3505323F, + 0.63114166F, + 0.07303526F, + 0.08886179F, + 0.7488606F }, }, new @@ -792,36 +792,36 @@ using RequestContent content = RequestContent.Create(new }, values = new object[] { - 0.4030756879437628, - 0.15526889968448554, - 0.36352226408981103, - 0.6051200637229004, - 0.8516795018476276, - 0.2645605735279929, - 0.6810875830037345, - 0.9165894221681316, - 0.700783245230424, - 0.5624155469940331, - 0.6277289685127893, - 0.15992056539730204, - 0.6020964482827594, - 0.35937967753105915, - 0.8731686034848609, - 0.20301549117588935, - 0.029261872151168933, - 0.6261499548828445, - 0.45850782028563386, - 0.8275006940083313, - 0.032760268834037376, - 0.4485202784055029, - 0.8915691008748384, - 0.891669051517807, - 0.9469979353323046, - 0.115293087370132, - 0.08818772518459506, - 0.7426286620589166, - 0.32372247468990756, - 0.936268139507417 + 0.4030757F, + 0.1552689F, + 0.36352226F, + 0.60512006F, + 0.8516795F, + 0.26456058F, + 0.68108755F, + 0.91658944F, + 0.70078325F, + 0.56241554F, + 0.62772894F, + 0.15992056F, + 0.60209644F, + 0.35937968F, + 0.8731686F, + 0.20301549F, + 0.029261872F, + 0.62614995F, + 0.4585078F, + 0.8275007F, + 0.03276027F, + 0.44852027F, + 0.8915691F, + 0.89166903F, + 0.94699794F, + 0.115293086F, + 0.088187724F, + 0.74262863F, + 0.32372248F, + 0.93626815F }, } }, diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/Univariate.xml b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/Univariate.xml index 974f79ca9b40d..0dcbb1d28219b 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/Univariate.xml +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/Univariate.xml @@ -16,245 +16,245 @@ using RequestContent content = RequestContent.Create(new new { timestamp = "1972-01-01T00:00:00Z", - value = 826, + value = 826F, }, new { timestamp = "1972-02-01T00:00:00Z", - value = 799, + value = 799F, }, new { timestamp = "1972-03-01T00:00:00Z", - value = 890, + value = 890F, }, new { timestamp = "1972-04-01T00:00:00Z", - value = 900, + value = 900F, }, new { timestamp = "1972-05-01T00:00:00Z", - value = 961, + value = 961F, }, new { timestamp = "1972-06-01T00:00:00Z", - value = 935, + value = 935F, }, new { timestamp = "1972-07-01T00:00:00Z", - value = 894, + value = 894F, }, new { timestamp = "1972-08-01T00:00:00Z", - value = 855, + value = 855F, }, new { timestamp = "1972-09-01T00:00:00Z", - value = 809, + value = 809F, }, new { timestamp = "1972-10-01T00:00:00Z", - value = 810, + value = 810F, }, new { timestamp = "1972-11-01T00:00:00Z", - value = 766, + value = 766F, }, new { timestamp = "1972-12-01T00:00:00Z", - value = 805, + value = 805F, }, new { timestamp = "1973-01-01T00:00:00Z", - value = 821, + value = 821F, }, new { timestamp = "1973-02-01T00:00:00Z", - value = 773, + value = 773F, }, new { timestamp = "1973-03-01T00:00:00Z", - value = 883, + value = 883F, }, new { timestamp = "1973-04-01T00:00:00Z", - value = 898, + value = 898F, }, new { timestamp = "1973-05-01T00:00:00Z", - value = 957, + value = 957F, }, new { timestamp = "1973-06-01T00:00:00Z", - value = 924, + value = 924F, }, new { timestamp = "1973-07-01T00:00:00Z", - value = 881, + value = 881F, }, new { timestamp = "1973-08-01T00:00:00Z", - value = 837, + value = 837F, }, new { timestamp = "1973-09-01T00:00:00Z", - value = 784, + value = 784F, }, new { timestamp = "1973-10-01T00:00:00Z", - value = 791, + value = 791F, }, new { timestamp = "1973-11-01T00:00:00Z", - value = 760, + value = 760F, }, new { timestamp = "1973-12-01T00:00:00Z", - value = 802, + value = 802F, }, new { timestamp = "1974-01-01T00:00:00Z", - value = 828, + value = 828F, }, new { timestamp = "1974-02-01T00:00:00Z", - value = 1030, + value = 1030F, }, new { timestamp = "1974-03-01T00:00:00Z", - value = 889, + value = 889F, }, new { timestamp = "1974-04-01T00:00:00Z", - value = 902, + value = 902F, }, new { timestamp = "1974-05-01T00:00:00Z", - value = 969, + value = 969F, }, new { timestamp = "1974-06-01T00:00:00Z", - value = 947, + value = 947F, }, new { timestamp = "1974-07-01T00:00:00Z", - value = 908, + value = 908F, }, new { timestamp = "1974-08-01T00:00:00Z", - value = 867, + value = 867F, }, new { timestamp = "1974-09-01T00:00:00Z", - value = 815, + value = 815F, }, new { timestamp = "1974-10-01T00:00:00Z", - value = 812, + value = 812F, }, new { timestamp = "1974-11-01T00:00:00Z", - value = 773, + value = 773F, }, new { timestamp = "1974-12-01T00:00:00Z", - value = 813, + value = 813F, }, new { timestamp = "1975-01-01T00:00:00Z", - value = 834, + value = 834F, }, new { timestamp = "1975-02-01T00:00:00Z", - value = 782, + value = 782F, }, new { timestamp = "1975-03-01T00:00:00Z", - value = 892, + value = 892F, }, new { timestamp = "1975-04-01T00:00:00Z", - value = 903, + value = 903F, }, new { timestamp = "1975-05-01T00:00:00Z", - value = 966, + value = 966F, }, new { timestamp = "1975-06-01T00:00:00Z", - value = 937, + value = 937F, }, new { timestamp = "1975-07-01T00:00:00Z", - value = 896, + value = 896F, }, new { timestamp = "1975-08-01T00:00:00Z", - value = 858, + value = 858F, }, new { timestamp = "1975-09-01T00:00:00Z", - value = 817, + value = 817F, }, new { timestamp = "1975-10-01T00:00:00Z", - value = 827, + value = 827F, }, new { timestamp = "1975-11-01T00:00:00Z", - value = 797, + value = 797F, }, new { timestamp = "1975-12-01T00:00:00Z", - value = 843, + value = 843F, } }, - maxAnomalyRatio = 0.25, + maxAnomalyRatio = 0.25F, sensitivity = 95, granularity = "monthly", imputeMode = "auto", @@ -286,245 +286,245 @@ using RequestContent content = RequestContent.Create(new new { timestamp = "1972-01-01T00:00:00Z", - value = 826, + value = 826F, }, new { timestamp = "1972-02-01T00:00:00Z", - value = 799, + value = 799F, }, new { timestamp = "1972-03-01T00:00:00Z", - value = 890, + value = 890F, }, new { timestamp = "1972-04-01T00:00:00Z", - value = 900, + value = 900F, }, new { timestamp = "1972-05-01T00:00:00Z", - value = 961, + value = 961F, }, new { timestamp = "1972-06-01T00:00:00Z", - value = 935, + value = 935F, }, new { timestamp = "1972-07-01T00:00:00Z", - value = 894, + value = 894F, }, new { timestamp = "1972-08-01T00:00:00Z", - value = 855, + value = 855F, }, new { timestamp = "1972-09-01T00:00:00Z", - value = 809, + value = 809F, }, new { timestamp = "1972-10-01T00:00:00Z", - value = 810, + value = 810F, }, new { timestamp = "1972-11-01T00:00:00Z", - value = 766, + value = 766F, }, new { timestamp = "1972-12-01T00:00:00Z", - value = 805, + value = 805F, }, new { timestamp = "1973-01-01T00:00:00Z", - value = 821, + value = 821F, }, new { timestamp = "1973-02-01T00:00:00Z", - value = 773, + value = 773F, }, new { timestamp = "1973-03-01T00:00:00Z", - value = 883, + value = 883F, }, new { timestamp = "1973-04-01T00:00:00Z", - value = 898, + value = 898F, }, new { timestamp = "1973-05-01T00:00:00Z", - value = 957, + value = 957F, }, new { timestamp = "1973-06-01T00:00:00Z", - value = 924, + value = 924F, }, new { timestamp = "1973-07-01T00:00:00Z", - value = 881, + value = 881F, }, new { timestamp = "1973-08-01T00:00:00Z", - value = 837, + value = 837F, }, new { timestamp = "1973-09-01T00:00:00Z", - value = 784, + value = 784F, }, new { timestamp = "1973-10-01T00:00:00Z", - value = 791, + value = 791F, }, new { timestamp = "1973-11-01T00:00:00Z", - value = 760, + value = 760F, }, new { timestamp = "1973-12-01T00:00:00Z", - value = 802, + value = 802F, }, new { timestamp = "1974-01-01T00:00:00Z", - value = 828, + value = 828F, }, new { timestamp = "1974-02-01T00:00:00Z", - value = 1030, + value = 1030F, }, new { timestamp = "1974-03-01T00:00:00Z", - value = 889, + value = 889F, }, new { timestamp = "1974-04-01T00:00:00Z", - value = 902, + value = 902F, }, new { timestamp = "1974-05-01T00:00:00Z", - value = 969, + value = 969F, }, new { timestamp = "1974-06-01T00:00:00Z", - value = 947, + value = 947F, }, new { timestamp = "1974-07-01T00:00:00Z", - value = 908, + value = 908F, }, new { timestamp = "1974-08-01T00:00:00Z", - value = 867, + value = 867F, }, new { timestamp = "1974-09-01T00:00:00Z", - value = 815, + value = 815F, }, new { timestamp = "1974-10-01T00:00:00Z", - value = 812, + value = 812F, }, new { timestamp = "1974-11-01T00:00:00Z", - value = 773, + value = 773F, }, new { timestamp = "1974-12-01T00:00:00Z", - value = 813, + value = 813F, }, new { timestamp = "1975-01-01T00:00:00Z", - value = 834, + value = 834F, }, new { timestamp = "1975-02-01T00:00:00Z", - value = 782, + value = 782F, }, new { timestamp = "1975-03-01T00:00:00Z", - value = 892, + value = 892F, }, new { timestamp = "1975-04-01T00:00:00Z", - value = 903, + value = 903F, }, new { timestamp = "1975-05-01T00:00:00Z", - value = 966, + value = 966F, }, new { timestamp = "1975-06-01T00:00:00Z", - value = 937, + value = 937F, }, new { timestamp = "1975-07-01T00:00:00Z", - value = 896, + value = 896F, }, new { timestamp = "1975-08-01T00:00:00Z", - value = 858, + value = 858F, }, new { timestamp = "1975-09-01T00:00:00Z", - value = 817, + value = 817F, }, new { timestamp = "1975-10-01T00:00:00Z", - value = 827, + value = 827F, }, new { timestamp = "1975-11-01T00:00:00Z", - value = 797, + value = 797F, }, new { timestamp = "1975-12-01T00:00:00Z", - value = 843, + value = 843F, } }, - maxAnomalyRatio = 0.25, + maxAnomalyRatio = 0.25F, sensitivity = 95, granularity = "monthly", imputeMode = "auto", @@ -551,205 +551,205 @@ Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariat UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[] { - new TimeSeriesPoint(826) + new TimeSeriesPoint(826F) { Timestamp = DateTimeOffset.Parse("1972-01-01T00:00:00Z"), }, - new TimeSeriesPoint(799) + new TimeSeriesPoint(799F) { Timestamp = DateTimeOffset.Parse("1972-02-01T00:00:00Z"), }, - new TimeSeriesPoint(890) + new TimeSeriesPoint(890F) { Timestamp = DateTimeOffset.Parse("1972-03-01T00:00:00Z"), }, - new TimeSeriesPoint(900) + new TimeSeriesPoint(900F) { Timestamp = DateTimeOffset.Parse("1972-04-01T00:00:00Z"), }, - new TimeSeriesPoint(961) + new TimeSeriesPoint(961F) { Timestamp = DateTimeOffset.Parse("1972-05-01T00:00:00Z"), }, - new TimeSeriesPoint(935) + new TimeSeriesPoint(935F) { Timestamp = DateTimeOffset.Parse("1972-06-01T00:00:00Z"), }, - new TimeSeriesPoint(894) + new TimeSeriesPoint(894F) { Timestamp = DateTimeOffset.Parse("1972-07-01T00:00:00Z"), }, - new TimeSeriesPoint(855) + new TimeSeriesPoint(855F) { Timestamp = DateTimeOffset.Parse("1972-08-01T00:00:00Z"), }, - new TimeSeriesPoint(809) + new TimeSeriesPoint(809F) { Timestamp = DateTimeOffset.Parse("1972-09-01T00:00:00Z"), }, - new TimeSeriesPoint(810) + new TimeSeriesPoint(810F) { Timestamp = DateTimeOffset.Parse("1972-10-01T00:00:00Z"), }, - new TimeSeriesPoint(766) + new TimeSeriesPoint(766F) { Timestamp = DateTimeOffset.Parse("1972-11-01T00:00:00Z"), }, - new TimeSeriesPoint(805) + new TimeSeriesPoint(805F) { Timestamp = DateTimeOffset.Parse("1972-12-01T00:00:00Z"), }, - new TimeSeriesPoint(821) + new TimeSeriesPoint(821F) { Timestamp = DateTimeOffset.Parse("1973-01-01T00:00:00Z"), }, - new TimeSeriesPoint(773) + new TimeSeriesPoint(773F) { Timestamp = DateTimeOffset.Parse("1973-02-01T00:00:00Z"), }, - new TimeSeriesPoint(883) + new TimeSeriesPoint(883F) { Timestamp = DateTimeOffset.Parse("1973-03-01T00:00:00Z"), }, - new TimeSeriesPoint(898) + new TimeSeriesPoint(898F) { Timestamp = DateTimeOffset.Parse("1973-04-01T00:00:00Z"), }, - new TimeSeriesPoint(957) + new TimeSeriesPoint(957F) { Timestamp = DateTimeOffset.Parse("1973-05-01T00:00:00Z"), }, - new TimeSeriesPoint(924) + new TimeSeriesPoint(924F) { Timestamp = DateTimeOffset.Parse("1973-06-01T00:00:00Z"), }, - new TimeSeriesPoint(881) + new TimeSeriesPoint(881F) { Timestamp = DateTimeOffset.Parse("1973-07-01T00:00:00Z"), }, - new TimeSeriesPoint(837) + new TimeSeriesPoint(837F) { Timestamp = DateTimeOffset.Parse("1973-08-01T00:00:00Z"), }, - new TimeSeriesPoint(784) + new TimeSeriesPoint(784F) { Timestamp = DateTimeOffset.Parse("1973-09-01T00:00:00Z"), }, - new TimeSeriesPoint(791) + new TimeSeriesPoint(791F) { Timestamp = DateTimeOffset.Parse("1973-10-01T00:00:00Z"), }, - new TimeSeriesPoint(760) + new TimeSeriesPoint(760F) { Timestamp = DateTimeOffset.Parse("1973-11-01T00:00:00Z"), }, - new TimeSeriesPoint(802) + new TimeSeriesPoint(802F) { Timestamp = DateTimeOffset.Parse("1973-12-01T00:00:00Z"), }, - new TimeSeriesPoint(828) + new TimeSeriesPoint(828F) { Timestamp = DateTimeOffset.Parse("1974-01-01T00:00:00Z"), }, - new TimeSeriesPoint(1030) + new TimeSeriesPoint(1030F) { Timestamp = DateTimeOffset.Parse("1974-02-01T00:00:00Z"), }, - new TimeSeriesPoint(889) + new TimeSeriesPoint(889F) { Timestamp = DateTimeOffset.Parse("1974-03-01T00:00:00Z"), }, - new TimeSeriesPoint(902) + new TimeSeriesPoint(902F) { Timestamp = DateTimeOffset.Parse("1974-04-01T00:00:00Z"), }, - new TimeSeriesPoint(969) + new TimeSeriesPoint(969F) { Timestamp = DateTimeOffset.Parse("1974-05-01T00:00:00Z"), }, - new TimeSeriesPoint(947) + new TimeSeriesPoint(947F) { Timestamp = DateTimeOffset.Parse("1974-06-01T00:00:00Z"), }, - new TimeSeriesPoint(908) + new TimeSeriesPoint(908F) { Timestamp = DateTimeOffset.Parse("1974-07-01T00:00:00Z"), }, - new TimeSeriesPoint(867) + new TimeSeriesPoint(867F) { Timestamp = DateTimeOffset.Parse("1974-08-01T00:00:00Z"), }, - new TimeSeriesPoint(815) + new TimeSeriesPoint(815F) { Timestamp = DateTimeOffset.Parse("1974-09-01T00:00:00Z"), }, - new TimeSeriesPoint(812) + new TimeSeriesPoint(812F) { Timestamp = DateTimeOffset.Parse("1974-10-01T00:00:00Z"), }, - new TimeSeriesPoint(773) + new TimeSeriesPoint(773F) { Timestamp = DateTimeOffset.Parse("1974-11-01T00:00:00Z"), }, - new TimeSeriesPoint(813) + new TimeSeriesPoint(813F) { Timestamp = DateTimeOffset.Parse("1974-12-01T00:00:00Z"), }, - new TimeSeriesPoint(834) + new TimeSeriesPoint(834F) { Timestamp = DateTimeOffset.Parse("1975-01-01T00:00:00Z"), }, - new TimeSeriesPoint(782) + new TimeSeriesPoint(782F) { Timestamp = DateTimeOffset.Parse("1975-02-01T00:00:00Z"), }, - new TimeSeriesPoint(892) + new TimeSeriesPoint(892F) { Timestamp = DateTimeOffset.Parse("1975-03-01T00:00:00Z"), }, - new TimeSeriesPoint(903) + new TimeSeriesPoint(903F) { Timestamp = DateTimeOffset.Parse("1975-04-01T00:00:00Z"), }, - new TimeSeriesPoint(966) + new TimeSeriesPoint(966F) { Timestamp = DateTimeOffset.Parse("1975-05-01T00:00:00Z"), }, - new TimeSeriesPoint(937) + new TimeSeriesPoint(937F) { Timestamp = DateTimeOffset.Parse("1975-06-01T00:00:00Z"), }, - new TimeSeriesPoint(896) + new TimeSeriesPoint(896F) { Timestamp = DateTimeOffset.Parse("1975-07-01T00:00:00Z"), }, - new TimeSeriesPoint(858) + new TimeSeriesPoint(858F) { Timestamp = DateTimeOffset.Parse("1975-08-01T00:00:00Z"), }, - new TimeSeriesPoint(817) + new TimeSeriesPoint(817F) { Timestamp = DateTimeOffset.Parse("1975-09-01T00:00:00Z"), }, - new TimeSeriesPoint(827) + new TimeSeriesPoint(827F) { Timestamp = DateTimeOffset.Parse("1975-10-01T00:00:00Z"), }, - new TimeSeriesPoint(797) + new TimeSeriesPoint(797F) { Timestamp = DateTimeOffset.Parse("1975-11-01T00:00:00Z"), }, - new TimeSeriesPoint(843) + new TimeSeriesPoint(843F) { Timestamp = DateTimeOffset.Parse("1975-12-01T00:00:00Z"), } }) { Granularity = TimeGranularity.Monthly, - MaxAnomalyRatio = (float)0.25, + MaxAnomalyRatio = 0.25F, Sensitivity = 95, ImputeMode = ImputeMode.Fixed, - ImputeFixedValue = 800, + ImputeFixedValue = 800F, }; Response response = await client.DetectUnivariateLastPointAsync(options); ]]> @@ -764,205 +764,205 @@ Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariat UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[] { - new TimeSeriesPoint(826) + new TimeSeriesPoint(826F) { Timestamp = DateTimeOffset.Parse("1972-01-01T00:00:00Z"), }, - new TimeSeriesPoint(799) + new TimeSeriesPoint(799F) { Timestamp = DateTimeOffset.Parse("1972-02-01T00:00:00Z"), }, - new TimeSeriesPoint(890) + new TimeSeriesPoint(890F) { Timestamp = DateTimeOffset.Parse("1972-03-01T00:00:00Z"), }, - new TimeSeriesPoint(900) + new TimeSeriesPoint(900F) { Timestamp = DateTimeOffset.Parse("1972-04-01T00:00:00Z"), }, - new TimeSeriesPoint(961) + new TimeSeriesPoint(961F) { Timestamp = DateTimeOffset.Parse("1972-05-01T00:00:00Z"), }, - new TimeSeriesPoint(935) + new TimeSeriesPoint(935F) { Timestamp = DateTimeOffset.Parse("1972-06-01T00:00:00Z"), }, - new TimeSeriesPoint(894) + new TimeSeriesPoint(894F) { Timestamp = DateTimeOffset.Parse("1972-07-01T00:00:00Z"), }, - new TimeSeriesPoint(855) + new TimeSeriesPoint(855F) { Timestamp = DateTimeOffset.Parse("1972-08-01T00:00:00Z"), }, - new TimeSeriesPoint(809) + new TimeSeriesPoint(809F) { Timestamp = DateTimeOffset.Parse("1972-09-01T00:00:00Z"), }, - new TimeSeriesPoint(810) + new TimeSeriesPoint(810F) { Timestamp = DateTimeOffset.Parse("1972-10-01T00:00:00Z"), }, - new TimeSeriesPoint(766) + new TimeSeriesPoint(766F) { Timestamp = DateTimeOffset.Parse("1972-11-01T00:00:00Z"), }, - new TimeSeriesPoint(805) + new TimeSeriesPoint(805F) { Timestamp = DateTimeOffset.Parse("1972-12-01T00:00:00Z"), }, - new TimeSeriesPoint(821) + new TimeSeriesPoint(821F) { Timestamp = DateTimeOffset.Parse("1973-01-01T00:00:00Z"), }, - new TimeSeriesPoint(773) + new TimeSeriesPoint(773F) { Timestamp = DateTimeOffset.Parse("1973-02-01T00:00:00Z"), }, - new TimeSeriesPoint(883) + new TimeSeriesPoint(883F) { Timestamp = DateTimeOffset.Parse("1973-03-01T00:00:00Z"), }, - new TimeSeriesPoint(898) + new TimeSeriesPoint(898F) { Timestamp = DateTimeOffset.Parse("1973-04-01T00:00:00Z"), }, - new TimeSeriesPoint(957) + new TimeSeriesPoint(957F) { Timestamp = DateTimeOffset.Parse("1973-05-01T00:00:00Z"), }, - new TimeSeriesPoint(924) + new TimeSeriesPoint(924F) { Timestamp = DateTimeOffset.Parse("1973-06-01T00:00:00Z"), }, - new TimeSeriesPoint(881) + new TimeSeriesPoint(881F) { Timestamp = DateTimeOffset.Parse("1973-07-01T00:00:00Z"), }, - new TimeSeriesPoint(837) + new TimeSeriesPoint(837F) { Timestamp = DateTimeOffset.Parse("1973-08-01T00:00:00Z"), }, - new TimeSeriesPoint(784) + new TimeSeriesPoint(784F) { Timestamp = DateTimeOffset.Parse("1973-09-01T00:00:00Z"), }, - new TimeSeriesPoint(791) + new TimeSeriesPoint(791F) { Timestamp = DateTimeOffset.Parse("1973-10-01T00:00:00Z"), }, - new TimeSeriesPoint(760) + new TimeSeriesPoint(760F) { Timestamp = DateTimeOffset.Parse("1973-11-01T00:00:00Z"), }, - new TimeSeriesPoint(802) + new TimeSeriesPoint(802F) { Timestamp = DateTimeOffset.Parse("1973-12-01T00:00:00Z"), }, - new TimeSeriesPoint(828) + new TimeSeriesPoint(828F) { Timestamp = DateTimeOffset.Parse("1974-01-01T00:00:00Z"), }, - new TimeSeriesPoint(1030) + new TimeSeriesPoint(1030F) { Timestamp = DateTimeOffset.Parse("1974-02-01T00:00:00Z"), }, - new TimeSeriesPoint(889) + new TimeSeriesPoint(889F) { Timestamp = DateTimeOffset.Parse("1974-03-01T00:00:00Z"), }, - new TimeSeriesPoint(902) + new TimeSeriesPoint(902F) { Timestamp = DateTimeOffset.Parse("1974-04-01T00:00:00Z"), }, - new TimeSeriesPoint(969) + new TimeSeriesPoint(969F) { Timestamp = DateTimeOffset.Parse("1974-05-01T00:00:00Z"), }, - new TimeSeriesPoint(947) + new TimeSeriesPoint(947F) { Timestamp = DateTimeOffset.Parse("1974-06-01T00:00:00Z"), }, - new TimeSeriesPoint(908) + new TimeSeriesPoint(908F) { Timestamp = DateTimeOffset.Parse("1974-07-01T00:00:00Z"), }, - new TimeSeriesPoint(867) + new TimeSeriesPoint(867F) { Timestamp = DateTimeOffset.Parse("1974-08-01T00:00:00Z"), }, - new TimeSeriesPoint(815) + new TimeSeriesPoint(815F) { Timestamp = DateTimeOffset.Parse("1974-09-01T00:00:00Z"), }, - new TimeSeriesPoint(812) + new TimeSeriesPoint(812F) { Timestamp = DateTimeOffset.Parse("1974-10-01T00:00:00Z"), }, - new TimeSeriesPoint(773) + new TimeSeriesPoint(773F) { Timestamp = DateTimeOffset.Parse("1974-11-01T00:00:00Z"), }, - new TimeSeriesPoint(813) + new TimeSeriesPoint(813F) { Timestamp = DateTimeOffset.Parse("1974-12-01T00:00:00Z"), }, - new TimeSeriesPoint(834) + new TimeSeriesPoint(834F) { Timestamp = DateTimeOffset.Parse("1975-01-01T00:00:00Z"), }, - new TimeSeriesPoint(782) + new TimeSeriesPoint(782F) { Timestamp = DateTimeOffset.Parse("1975-02-01T00:00:00Z"), }, - new TimeSeriesPoint(892) + new TimeSeriesPoint(892F) { Timestamp = DateTimeOffset.Parse("1975-03-01T00:00:00Z"), }, - new TimeSeriesPoint(903) + new TimeSeriesPoint(903F) { Timestamp = DateTimeOffset.Parse("1975-04-01T00:00:00Z"), }, - new TimeSeriesPoint(966) + new TimeSeriesPoint(966F) { Timestamp = DateTimeOffset.Parse("1975-05-01T00:00:00Z"), }, - new TimeSeriesPoint(937) + new TimeSeriesPoint(937F) { Timestamp = DateTimeOffset.Parse("1975-06-01T00:00:00Z"), }, - new TimeSeriesPoint(896) + new TimeSeriesPoint(896F) { Timestamp = DateTimeOffset.Parse("1975-07-01T00:00:00Z"), }, - new TimeSeriesPoint(858) + new TimeSeriesPoint(858F) { Timestamp = DateTimeOffset.Parse("1975-08-01T00:00:00Z"), }, - new TimeSeriesPoint(817) + new TimeSeriesPoint(817F) { Timestamp = DateTimeOffset.Parse("1975-09-01T00:00:00Z"), }, - new TimeSeriesPoint(827) + new TimeSeriesPoint(827F) { Timestamp = DateTimeOffset.Parse("1975-10-01T00:00:00Z"), }, - new TimeSeriesPoint(797) + new TimeSeriesPoint(797F) { Timestamp = DateTimeOffset.Parse("1975-11-01T00:00:00Z"), }, - new TimeSeriesPoint(843) + new TimeSeriesPoint(843F) { Timestamp = DateTimeOffset.Parse("1975-12-01T00:00:00Z"), } }) { Granularity = TimeGranularity.Monthly, - MaxAnomalyRatio = (float)0.25, + MaxAnomalyRatio = 0.25F, Sensitivity = 95, ImputeMode = ImputeMode.Fixed, - ImputeFixedValue = 800, + ImputeFixedValue = 800F, }; Response response = client.DetectUnivariateLastPoint(options); ]]> @@ -982,249 +982,249 @@ using RequestContent content = RequestContent.Create(new new { timestamp = "1972-01-01T00:00:00Z", - value = 826, + value = 826F, }, new { timestamp = "1972-02-01T00:00:00Z", - value = 799, + value = 799F, }, new { timestamp = "1972-03-01T00:00:00Z", - value = 890, + value = 890F, }, new { timestamp = "1972-04-01T00:00:00Z", - value = 900, + value = 900F, }, new { timestamp = "1972-05-01T00:00:00Z", - value = 961, + value = 961F, }, new { timestamp = "1972-06-01T00:00:00Z", - value = 935, + value = 935F, }, new { timestamp = "1972-07-01T00:00:00Z", - value = 894, + value = 894F, }, new { timestamp = "1972-08-01T00:00:00Z", - value = 855, + value = 855F, }, new { timestamp = "1972-09-01T00:00:00Z", - value = 809, + value = 809F, }, new { timestamp = "1972-10-01T00:00:00Z", - value = 810, + value = 810F, }, new { timestamp = "1972-11-01T00:00:00Z", - value = 766, + value = 766F, }, new { timestamp = "1972-12-01T00:00:00Z", - value = 805, + value = 805F, }, new { timestamp = "1973-01-01T00:00:00Z", - value = 821, + value = 821F, }, new { timestamp = "1973-02-01T00:00:00Z", - value = 773, + value = 773F, }, new { timestamp = "1973-03-01T00:00:00Z", - value = 883, + value = 883F, }, new { timestamp = "1973-04-01T00:00:00Z", - value = 898, + value = 898F, }, new { timestamp = "1973-05-01T00:00:00Z", - value = 957, + value = 957F, }, new { timestamp = "1973-06-01T00:00:00Z", - value = 924, + value = 924F, }, new { timestamp = "1973-07-01T00:00:00Z", - value = 881, + value = 881F, }, new { timestamp = "1973-08-01T00:00:00Z", - value = 837, + value = 837F, }, new { timestamp = "1973-09-01T00:00:00Z", - value = 784, + value = 784F, }, new { timestamp = "1973-10-01T00:00:00Z", - value = 791, + value = 791F, }, new { timestamp = "1973-11-01T00:00:00Z", - value = 760, + value = 760F, }, new { timestamp = "1973-12-01T00:00:00Z", - value = 802, + value = 802F, }, new { timestamp = "1974-01-01T00:00:00Z", - value = 828, + value = 828F, }, new { timestamp = "1974-02-01T00:00:00Z", - value = 1030, + value = 1030F, }, new { timestamp = "1974-03-01T00:00:00Z", - value = 889, + value = 889F, }, new { timestamp = "1974-04-01T00:00:00Z", - value = 902, + value = 902F, }, new { timestamp = "1974-05-01T00:00:00Z", - value = 969, + value = 969F, }, new { timestamp = "1974-06-01T00:00:00Z", - value = 947, + value = 947F, }, new { timestamp = "1974-07-01T00:00:00Z", - value = 908, + value = 908F, }, new { timestamp = "1974-08-01T00:00:00Z", - value = 867, + value = 867F, }, new { timestamp = "1974-09-01T00:00:00Z", - value = 815, + value = 815F, }, new { timestamp = "1974-10-01T00:00:00Z", - value = 812, + value = 812F, }, new { timestamp = "1974-11-01T00:00:00Z", - value = 773, + value = 773F, }, new { timestamp = "1974-12-01T00:00:00Z", - value = 813, + value = 813F, }, new { timestamp = "1975-01-01T00:00:00Z", - value = 834, + value = 834F, }, new { timestamp = "1975-02-01T00:00:00Z", - value = 782, + value = 782F, }, new { timestamp = "1975-03-01T00:00:00Z", - value = 892, + value = 892F, }, new { timestamp = "1975-04-01T00:00:00Z", - value = 903, + value = 903F, }, new { timestamp = "1975-05-01T00:00:00Z", - value = 966, + value = 966F, }, new { timestamp = "1975-06-01T00:00:00Z", - value = 937, + value = 937F, }, new { timestamp = "1975-07-01T00:00:00Z", - value = 896, + value = 896F, }, new { timestamp = "1975-08-01T00:00:00Z", - value = 858, + value = 858F, }, new { timestamp = "1975-09-01T00:00:00Z", - value = 817, + value = 817F, }, new { timestamp = "1975-10-01T00:00:00Z", - value = 827, + value = 827F, }, new { timestamp = "1975-11-01T00:00:00Z", - value = 797, + value = 797F, }, new { timestamp = "1975-12-01T00:00:00Z", - value = 843, + value = 843F, } }, - maxAnomalyRatio = 0.25, + maxAnomalyRatio = 0.25F, sensitivity = 95, granularity = "monthly", imputeMode = "fixed", - imputeFixedValue = 800, + imputeFixedValue = 800F, }); Response response = await client.DetectUnivariateLastPointAsync(content); @@ -1254,249 +1254,249 @@ using RequestContent content = RequestContent.Create(new new { timestamp = "1972-01-01T00:00:00Z", - value = 826, + value = 826F, }, new { timestamp = "1972-02-01T00:00:00Z", - value = 799, + value = 799F, }, new { timestamp = "1972-03-01T00:00:00Z", - value = 890, + value = 890F, }, new { timestamp = "1972-04-01T00:00:00Z", - value = 900, + value = 900F, }, new { timestamp = "1972-05-01T00:00:00Z", - value = 961, + value = 961F, }, new { timestamp = "1972-06-01T00:00:00Z", - value = 935, + value = 935F, }, new { timestamp = "1972-07-01T00:00:00Z", - value = 894, + value = 894F, }, new { timestamp = "1972-08-01T00:00:00Z", - value = 855, + value = 855F, }, new { timestamp = "1972-09-01T00:00:00Z", - value = 809, + value = 809F, }, new { timestamp = "1972-10-01T00:00:00Z", - value = 810, + value = 810F, }, new { timestamp = "1972-11-01T00:00:00Z", - value = 766, + value = 766F, }, new { timestamp = "1972-12-01T00:00:00Z", - value = 805, + value = 805F, }, new { timestamp = "1973-01-01T00:00:00Z", - value = 821, + value = 821F, }, new { timestamp = "1973-02-01T00:00:00Z", - value = 773, + value = 773F, }, new { timestamp = "1973-03-01T00:00:00Z", - value = 883, + value = 883F, }, new { timestamp = "1973-04-01T00:00:00Z", - value = 898, + value = 898F, }, new { timestamp = "1973-05-01T00:00:00Z", - value = 957, + value = 957F, }, new { timestamp = "1973-06-01T00:00:00Z", - value = 924, + value = 924F, }, new { timestamp = "1973-07-01T00:00:00Z", - value = 881, + value = 881F, }, new { timestamp = "1973-08-01T00:00:00Z", - value = 837, + value = 837F, }, new { timestamp = "1973-09-01T00:00:00Z", - value = 784, + value = 784F, }, new { timestamp = "1973-10-01T00:00:00Z", - value = 791, + value = 791F, }, new { timestamp = "1973-11-01T00:00:00Z", - value = 760, + value = 760F, }, new { timestamp = "1973-12-01T00:00:00Z", - value = 802, + value = 802F, }, new { timestamp = "1974-01-01T00:00:00Z", - value = 828, + value = 828F, }, new { timestamp = "1974-02-01T00:00:00Z", - value = 1030, + value = 1030F, }, new { timestamp = "1974-03-01T00:00:00Z", - value = 889, + value = 889F, }, new { timestamp = "1974-04-01T00:00:00Z", - value = 902, + value = 902F, }, new { timestamp = "1974-05-01T00:00:00Z", - value = 969, + value = 969F, }, new { timestamp = "1974-06-01T00:00:00Z", - value = 947, + value = 947F, }, new { timestamp = "1974-07-01T00:00:00Z", - value = 908, + value = 908F, }, new { timestamp = "1974-08-01T00:00:00Z", - value = 867, + value = 867F, }, new { timestamp = "1974-09-01T00:00:00Z", - value = 815, + value = 815F, }, new { timestamp = "1974-10-01T00:00:00Z", - value = 812, + value = 812F, }, new { timestamp = "1974-11-01T00:00:00Z", - value = 773, + value = 773F, }, new { timestamp = "1974-12-01T00:00:00Z", - value = 813, + value = 813F, }, new { timestamp = "1975-01-01T00:00:00Z", - value = 834, + value = 834F, }, new { timestamp = "1975-02-01T00:00:00Z", - value = 782, + value = 782F, }, new { timestamp = "1975-03-01T00:00:00Z", - value = 892, + value = 892F, }, new { timestamp = "1975-04-01T00:00:00Z", - value = 903, + value = 903F, }, new { timestamp = "1975-05-01T00:00:00Z", - value = 966, + value = 966F, }, new { timestamp = "1975-06-01T00:00:00Z", - value = 937, + value = 937F, }, new { timestamp = "1975-07-01T00:00:00Z", - value = 896, + value = 896F, }, new { timestamp = "1975-08-01T00:00:00Z", - value = 858, + value = 858F, }, new { timestamp = "1975-09-01T00:00:00Z", - value = 817, + value = 817F, }, new { timestamp = "1975-10-01T00:00:00Z", - value = 827, + value = 827F, }, new { timestamp = "1975-11-01T00:00:00Z", - value = 797, + value = 797F, }, new { timestamp = "1975-12-01T00:00:00Z", - value = 843, + value = 843F, } }, - maxAnomalyRatio = 0.25, + maxAnomalyRatio = 0.25F, sensitivity = 95, granularity = "monthly", imputeMode = "fixed", - imputeFixedValue = 800, + imputeFixedValue = 800F, }); Response response = client.DetectUnivariateLastPoint(content); @@ -1521,1031 +1521,1031 @@ Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariat UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[] { - new TimeSeriesPoint(1639196) + new TimeSeriesPoint(1639196F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:45:00Z"), }, - new TimeSeriesPoint(1639290) + new TimeSeriesPoint(1639290F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:50:00Z"), }, - new TimeSeriesPoint(1667293) + new TimeSeriesPoint(1667293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:55:00Z"), }, - new TimeSeriesPoint(1703130) + new TimeSeriesPoint(1703130F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:00:00Z"), }, - new TimeSeriesPoint(1650912) + new TimeSeriesPoint(1650912F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:05:00Z"), }, - new TimeSeriesPoint(1653596) + new TimeSeriesPoint(1653596F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:10:00Z"), }, - new TimeSeriesPoint(1653793) + new TimeSeriesPoint(1653793F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:15:00Z"), }, - new TimeSeriesPoint(1653795) + new TimeSeriesPoint(1653795F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:20:00Z"), }, - new TimeSeriesPoint(1663471) + new TimeSeriesPoint(1663471F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:25:00Z"), }, - new TimeSeriesPoint(1662358) + new TimeSeriesPoint(1662358F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:30:00Z"), }, - new TimeSeriesPoint(1664320) + new TimeSeriesPoint(1664320F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:35:00Z"), }, - new TimeSeriesPoint(1664942) + new TimeSeriesPoint(1664942F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:40:00Z"), }, - new TimeSeriesPoint(1664966) + new TimeSeriesPoint(1664966F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:45:00Z"), }, - new TimeSeriesPoint(1724271) + new TimeSeriesPoint(1724271F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:50:00Z"), }, - new TimeSeriesPoint(1678720) + new TimeSeriesPoint(1678720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:55:00Z"), }, - new TimeSeriesPoint(1672536) + new TimeSeriesPoint(1672536F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:00:00Z"), }, - new TimeSeriesPoint(1672544) + new TimeSeriesPoint(1672544F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:05:00Z"), }, - new TimeSeriesPoint(1672364) + new TimeSeriesPoint(1672364F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:10:00Z"), }, - new TimeSeriesPoint(1672912) + new TimeSeriesPoint(1672912F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:15:00Z"), }, - new TimeSeriesPoint(1672736) + new TimeSeriesPoint(1672736F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:20:00Z"), }, - new TimeSeriesPoint(1672725) + new TimeSeriesPoint(1672725F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:25:00Z"), }, - new TimeSeriesPoint(1673247) + new TimeSeriesPoint(1673247F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:30:00Z"), }, - new TimeSeriesPoint(1673109) + new TimeSeriesPoint(1673109F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:35:00Z"), }, - new TimeSeriesPoint(1690088) + new TimeSeriesPoint(1690088F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:40:00Z"), }, - new TimeSeriesPoint(1703865) + new TimeSeriesPoint(1703865F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:45:00Z"), }, - new TimeSeriesPoint(1703865) + new TimeSeriesPoint(1703865F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:50:00Z"), }, - new TimeSeriesPoint(1786581) + new TimeSeriesPoint(1786581F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:55:00Z"), }, - new TimeSeriesPoint(1800945) + new TimeSeriesPoint(1800945F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:00:00Z"), }, - new TimeSeriesPoint(1800957) + new TimeSeriesPoint(1800957F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:05:00Z"), }, - new TimeSeriesPoint(1801191) + new TimeSeriesPoint(1801191F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:10:00Z"), }, - new TimeSeriesPoint(1801412) + new TimeSeriesPoint(1801412F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:15:00Z"), }, - new TimeSeriesPoint(1801621) + new TimeSeriesPoint(1801621F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:20:00Z"), }, - new TimeSeriesPoint(1801621) + new TimeSeriesPoint(1801621F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:25:00Z"), }, - new TimeSeriesPoint(1801654) + new TimeSeriesPoint(1801654F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:30:00Z"), }, - new TimeSeriesPoint(1802105) + new TimeSeriesPoint(1802105F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:35:00Z"), }, - new TimeSeriesPoint(1801800) + new TimeSeriesPoint(1801800F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:40:00Z"), }, - new TimeSeriesPoint(1803040) + new TimeSeriesPoint(1803040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:45:00Z"), }, - new TimeSeriesPoint(1803672) + new TimeSeriesPoint(1803672F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:50:00Z"), }, - new TimeSeriesPoint(1803535) + new TimeSeriesPoint(1803535F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:55:00Z"), }, - new TimeSeriesPoint(1803541) + new TimeSeriesPoint(1803541F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:00:00Z"), }, - new TimeSeriesPoint(1803545) + new TimeSeriesPoint(1803545F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:05:00Z"), }, - new TimeSeriesPoint(1803599) + new TimeSeriesPoint(1803599F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:10:00Z"), }, - new TimeSeriesPoint(1803616) + new TimeSeriesPoint(1803616F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:15:00Z"), }, - new TimeSeriesPoint(1803619) + new TimeSeriesPoint(1803619F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:20:00Z"), }, - new TimeSeriesPoint(1809942) + new TimeSeriesPoint(1809942F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:25:00Z"), }, - new TimeSeriesPoint(1802720) + new TimeSeriesPoint(1802720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:30:00Z"), }, - new TimeSeriesPoint(1802720) + new TimeSeriesPoint(1802720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:35:00Z"), }, - new TimeSeriesPoint(1802888) + new TimeSeriesPoint(1802888F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:40:00Z"), }, - new TimeSeriesPoint(1809574) + new TimeSeriesPoint(1809574F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:45:00Z"), }, - new TimeSeriesPoint(1803896) + new TimeSeriesPoint(1803896F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:50:00Z"), }, - new TimeSeriesPoint(1803850) + new TimeSeriesPoint(1803850F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:55:00Z"), }, - new TimeSeriesPoint(1803854) + new TimeSeriesPoint(1803854F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:00:00Z"), }, - new TimeSeriesPoint(1803854) + new TimeSeriesPoint(1803854F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:05:00Z"), }, - new TimeSeriesPoint(1803797) + new TimeSeriesPoint(1803797F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:10:00Z"), }, - new TimeSeriesPoint(1803921) + new TimeSeriesPoint(1803921F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:15:00Z"), }, - new TimeSeriesPoint(1803933) + new TimeSeriesPoint(1803933F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:20:00Z"), }, - new TimeSeriesPoint(1804040) + new TimeSeriesPoint(1804040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:25:00Z"), }, - new TimeSeriesPoint(1804044) + new TimeSeriesPoint(1804044F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:30:00Z"), }, - new TimeSeriesPoint(1804070) + new TimeSeriesPoint(1804070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:35:00Z"), }, - new TimeSeriesPoint(1804070) + new TimeSeriesPoint(1804070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:40:00Z"), }, - new TimeSeriesPoint(1804068) + new TimeSeriesPoint(1804068F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:45:00Z"), }, - new TimeSeriesPoint(1804073) + new TimeSeriesPoint(1804073F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:50:00Z"), }, - new TimeSeriesPoint(1804101) + new TimeSeriesPoint(1804101F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:55:00Z"), }, - new TimeSeriesPoint(1804674) + new TimeSeriesPoint(1804674F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:00:00Z"), }, - new TimeSeriesPoint(1804714) + new TimeSeriesPoint(1804714F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:05:00Z"), }, - new TimeSeriesPoint(1804730) + new TimeSeriesPoint(1804730F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:10:00Z"), }, - new TimeSeriesPoint(1804816) + new TimeSeriesPoint(1804816F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:15:00Z"), }, - new TimeSeriesPoint(1803996) + new TimeSeriesPoint(1803996F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:20:00Z"), }, - new TimeSeriesPoint(1803998) + new TimeSeriesPoint(1803998F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:25:00Z"), }, - new TimeSeriesPoint(1804015) + new TimeSeriesPoint(1804015F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:30:00Z"), }, - new TimeSeriesPoint(1804047) + new TimeSeriesPoint(1804047F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:35:00Z"), }, - new TimeSeriesPoint(1804050) + new TimeSeriesPoint(1804050F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:40:00Z"), }, - new TimeSeriesPoint(1804218) + new TimeSeriesPoint(1804218F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:45:00Z"), }, - new TimeSeriesPoint(1804217) + new TimeSeriesPoint(1804217F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:50:00Z"), }, - new TimeSeriesPoint(1804217) + new TimeSeriesPoint(1804217F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:55:00Z"), }, - new TimeSeriesPoint(1804205) + new TimeSeriesPoint(1804205F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:00:00Z"), }, - new TimeSeriesPoint(1804728) + new TimeSeriesPoint(1804728F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:05:00Z"), }, - new TimeSeriesPoint(1804748) + new TimeSeriesPoint(1804748F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:10:00Z"), }, - new TimeSeriesPoint(1805232) + new TimeSeriesPoint(1805232F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:15:00Z"), }, - new TimeSeriesPoint(1814121) + new TimeSeriesPoint(1814121F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:20:00Z"), }, - new TimeSeriesPoint(1806789) + new TimeSeriesPoint(1806789F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:25:00Z"), }, - new TimeSeriesPoint(1806119) + new TimeSeriesPoint(1806119F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:30:00Z"), }, - new TimeSeriesPoint(1806329) + new TimeSeriesPoint(1806329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:35:00Z"), }, - new TimeSeriesPoint(1806454) + new TimeSeriesPoint(1806454F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:40:00Z"), }, - new TimeSeriesPoint(1806852) + new TimeSeriesPoint(1806852F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:45:00Z"), }, - new TimeSeriesPoint(1807347) + new TimeSeriesPoint(1807347F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:50:00Z"), }, - new TimeSeriesPoint(1812144) + new TimeSeriesPoint(1812144F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:55:00Z"), }, - new TimeSeriesPoint(1807418) + new TimeSeriesPoint(1807418F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:00:00Z"), }, - new TimeSeriesPoint(1807418) + new TimeSeriesPoint(1807418F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:05:00Z"), }, - new TimeSeriesPoint(1807432) + new TimeSeriesPoint(1807432F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:10:00Z"), }, - new TimeSeriesPoint(1808540) + new TimeSeriesPoint(1808540F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:15:00Z"), }, - new TimeSeriesPoint(1808541) + new TimeSeriesPoint(1808541F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:20:00Z"), }, - new TimeSeriesPoint(1807831) + new TimeSeriesPoint(1807831F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:25:00Z"), }, - new TimeSeriesPoint(1807852) + new TimeSeriesPoint(1807852F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:30:00Z"), }, - new TimeSeriesPoint(1807811) + new TimeSeriesPoint(1807811F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:35:00Z"), }, - new TimeSeriesPoint(2214285) + new TimeSeriesPoint(2214285F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:40:00Z"), }, - new TimeSeriesPoint(2215019) + new TimeSeriesPoint(2215019F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:45:00Z"), }, - new TimeSeriesPoint(2215329) + new TimeSeriesPoint(2215329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:50:00Z"), }, - new TimeSeriesPoint(2215097) + new TimeSeriesPoint(2215097F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:55:00Z"), }, - new TimeSeriesPoint(2215129) + new TimeSeriesPoint(2215129F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:00:00Z"), }, - new TimeSeriesPoint(2215120) + new TimeSeriesPoint(2215120F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:05:00Z"), }, - new TimeSeriesPoint(2217056) + new TimeSeriesPoint(2217056F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:10:00Z"), }, - new TimeSeriesPoint(2217056) + new TimeSeriesPoint(2217056F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:15:00Z"), }, - new TimeSeriesPoint(2222126) + new TimeSeriesPoint(2222126F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:20:00Z"), }, - new TimeSeriesPoint(2226472) + new TimeSeriesPoint(2226472F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:25:00Z"), }, - new TimeSeriesPoint(2226722) + new TimeSeriesPoint(2226722F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:30:00Z"), }, - new TimeSeriesPoint(2226729) + new TimeSeriesPoint(2226729F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:35:00Z"), }, - new TimeSeriesPoint(2226735) + new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:40:00Z"), }, - new TimeSeriesPoint(2226735) + new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:45:00Z"), }, - new TimeSeriesPoint(2226735) + new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:50:00Z"), }, - new TimeSeriesPoint(2226952) + new TimeSeriesPoint(2226952F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:55:00Z"), }, - new TimeSeriesPoint(2226962) + new TimeSeriesPoint(2226962F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:00:00Z"), }, - new TimeSeriesPoint(2649337) + new TimeSeriesPoint(2649337F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:05:00Z"), }, - new TimeSeriesPoint(2092796) + new TimeSeriesPoint(2092796F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:10:00Z"), }, - new TimeSeriesPoint(2092839) + new TimeSeriesPoint(2092839F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:15:00Z"), }, - new TimeSeriesPoint(2092940) + new TimeSeriesPoint(2092940F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:20:00Z"), }, - new TimeSeriesPoint(2092940) + new TimeSeriesPoint(2092940F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:25:00Z"), }, - new TimeSeriesPoint(2092965) + new TimeSeriesPoint(2092965F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:30:00Z"), }, - new TimeSeriesPoint(2092979) + new TimeSeriesPoint(2092979F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:35:00Z"), }, - new TimeSeriesPoint(2095588) + new TimeSeriesPoint(2095588F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:40:00Z"), }, - new TimeSeriesPoint(2099586) + new TimeSeriesPoint(2099586F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:45:00Z"), }, - new TimeSeriesPoint(2102981) + new TimeSeriesPoint(2102981F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:50:00Z"), }, - new TimeSeriesPoint(2108053) + new TimeSeriesPoint(2108053F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:55:00Z"), }, - new TimeSeriesPoint(2107907) + new TimeSeriesPoint(2107907F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:00:00Z"), }, - new TimeSeriesPoint(2108241) + new TimeSeriesPoint(2108241F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:05:00Z"), }, - new TimeSeriesPoint(2100321) + new TimeSeriesPoint(2100321F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:10:00Z"), }, - new TimeSeriesPoint(2100448) + new TimeSeriesPoint(2100448F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:15:00Z"), }, - new TimeSeriesPoint(2100483) + new TimeSeriesPoint(2100483F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:20:00Z"), }, - new TimeSeriesPoint(2103042) + new TimeSeriesPoint(2103042F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:25:00Z"), }, - new TimeSeriesPoint(2103037) + new TimeSeriesPoint(2103037F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:30:00Z"), }, - new TimeSeriesPoint(2103040) + new TimeSeriesPoint(2103040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:35:00Z"), }, - new TimeSeriesPoint(2103054) + new TimeSeriesPoint(2103054F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:40:00Z"), }, - new TimeSeriesPoint(2103058) + new TimeSeriesPoint(2103058F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:45:00Z"), }, - new TimeSeriesPoint(1830757) + new TimeSeriesPoint(1830757F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:50:00Z"), }, - new TimeSeriesPoint(1830855) + new TimeSeriesPoint(1830855F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:55:00Z"), }, - new TimeSeriesPoint(1831495) + new TimeSeriesPoint(1831495F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:00:00Z"), }, - new TimeSeriesPoint(1831463) + new TimeSeriesPoint(1831463F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:05:00Z"), }, - new TimeSeriesPoint(1831963) + new TimeSeriesPoint(1831963F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:10:00Z"), }, - new TimeSeriesPoint(1832046) + new TimeSeriesPoint(1832046F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:15:00Z"), }, - new TimeSeriesPoint(1832070) + new TimeSeriesPoint(1832070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:20:00Z"), }, - new TimeSeriesPoint(1835511) + new TimeSeriesPoint(1835511F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:25:00Z"), }, - new TimeSeriesPoint(1835265) + new TimeSeriesPoint(1835265F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:30:00Z"), }, - new TimeSeriesPoint(1835481) + new TimeSeriesPoint(1835481F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:35:00Z"), }, - new TimeSeriesPoint(1835578) + new TimeSeriesPoint(1835578F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:40:00Z"), }, - new TimeSeriesPoint(1835611) + new TimeSeriesPoint(1835611F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:45:00Z"), }, - new TimeSeriesPoint(1836314) + new TimeSeriesPoint(1836314F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:50:00Z"), }, - new TimeSeriesPoint(1836369) + new TimeSeriesPoint(1836369F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:55:00Z"), }, - new TimeSeriesPoint(1837280) + new TimeSeriesPoint(1837280F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:00:00Z"), }, - new TimeSeriesPoint(1842939) + new TimeSeriesPoint(1842939F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:05:00Z"), }, - new TimeSeriesPoint(1843126) + new TimeSeriesPoint(1843126F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:10:00Z"), }, - new TimeSeriesPoint(1845840) + new TimeSeriesPoint(1845840F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:15:00Z"), }, - new TimeSeriesPoint(1842444) + new TimeSeriesPoint(1842444F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:20:00Z"), }, - new TimeSeriesPoint(1839891) + new TimeSeriesPoint(1839891F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:25:00Z"), }, - new TimeSeriesPoint(1839875) + new TimeSeriesPoint(1839875F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:30:00Z"), }, - new TimeSeriesPoint(1839870) + new TimeSeriesPoint(1839870F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:35:00Z"), }, - new TimeSeriesPoint(1840090) + new TimeSeriesPoint(1840090F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:40:00Z"), }, - new TimeSeriesPoint(1840479) + new TimeSeriesPoint(1840479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:45:00Z"), }, - new TimeSeriesPoint(1840479) + new TimeSeriesPoint(1840479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:50:00Z"), }, - new TimeSeriesPoint(1840482) + new TimeSeriesPoint(1840482F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:55:00Z"), }, - new TimeSeriesPoint(1841522) + new TimeSeriesPoint(1841522F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:00:00Z"), }, - new TimeSeriesPoint(1841836) + new TimeSeriesPoint(1841836F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:05:00Z"), }, - new TimeSeriesPoint(1842377) + new TimeSeriesPoint(1842377F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:10:00Z"), }, - new TimeSeriesPoint(1842388) + new TimeSeriesPoint(1842388F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:15:00Z"), }, - new TimeSeriesPoint(1842489) + new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:20:00Z"), }, - new TimeSeriesPoint(1842489) + new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:25:00Z"), }, - new TimeSeriesPoint(1842489) + new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:30:00Z"), }, - new TimeSeriesPoint(1842496) + new TimeSeriesPoint(1842496F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:35:00Z"), }, - new TimeSeriesPoint(1842689) + new TimeSeriesPoint(1842689F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:40:00Z"), }, - new TimeSeriesPoint(1843117) + new TimeSeriesPoint(1843117F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:45:00Z"), }, - new TimeSeriesPoint(1843116) + new TimeSeriesPoint(1843116F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:50:00Z"), }, - new TimeSeriesPoint(1843227) + new TimeSeriesPoint(1843227F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:55:00Z"), }, - new TimeSeriesPoint(1843138) + new TimeSeriesPoint(1843138F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:00:00Z"), }, - new TimeSeriesPoint(1843141) + new TimeSeriesPoint(1843141F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:05:00Z"), }, - new TimeSeriesPoint(1843310) + new TimeSeriesPoint(1843310F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:10:00Z"), }, - new TimeSeriesPoint(1843310) + new TimeSeriesPoint(1843310F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:15:00Z"), }, - new TimeSeriesPoint(1843507) + new TimeSeriesPoint(1843507F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:20:00Z"), }, - new TimeSeriesPoint(1843953) + new TimeSeriesPoint(1843953F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:25:00Z"), }, - new TimeSeriesPoint(1844778) + new TimeSeriesPoint(1844778F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:30:00Z"), }, - new TimeSeriesPoint(1843918) + new TimeSeriesPoint(1843918F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:35:00Z"), }, - new TimeSeriesPoint(1882692) + new TimeSeriesPoint(1882692F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:40:00Z"), }, - new TimeSeriesPoint(1974888) + new TimeSeriesPoint(1974888F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:45:00Z"), }, - new TimeSeriesPoint(2157136) + new TimeSeriesPoint(2157136F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:50:00Z"), }, - new TimeSeriesPoint(2154987) + new TimeSeriesPoint(2154987F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:55:00Z"), }, - new TimeSeriesPoint(2155664) + new TimeSeriesPoint(2155664F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:00:00Z"), }, - new TimeSeriesPoint(2155660) + new TimeSeriesPoint(2155660F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:05:00Z"), }, - new TimeSeriesPoint(2155824) + new TimeSeriesPoint(2155824F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:10:00Z"), }, - new TimeSeriesPoint(2155824) + new TimeSeriesPoint(2155824F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:15:00Z"), }, - new TimeSeriesPoint(2156329) + new TimeSeriesPoint(2156329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:20:00Z"), }, - new TimeSeriesPoint(2156479) + new TimeSeriesPoint(2156479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:25:00Z"), }, - new TimeSeriesPoint(2165269) + new TimeSeriesPoint(2165269F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:30:00Z"), }, - new TimeSeriesPoint(2165433) + new TimeSeriesPoint(2165433F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:35:00Z"), }, - new TimeSeriesPoint(2165739) + new TimeSeriesPoint(2165739F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:40:00Z"), }, - new TimeSeriesPoint(2165931) + new TimeSeriesPoint(2165931F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:45:00Z"), }, - new TimeSeriesPoint(2165928) + new TimeSeriesPoint(2165928F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:50:00Z"), }, - new TimeSeriesPoint(2165989) + new TimeSeriesPoint(2165989F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:55:00Z"), }, - new TimeSeriesPoint(2228961) + new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:00:00Z"), }, - new TimeSeriesPoint(2228961) + new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:05:00Z"), }, - new TimeSeriesPoint(2228961) + new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:10:00Z"), }, - new TimeSeriesPoint(2485802) + new TimeSeriesPoint(2485802F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:15:00Z"), }, - new TimeSeriesPoint(2485802) + new TimeSeriesPoint(2485802F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:20:00Z"), }, - new TimeSeriesPoint(2486021) + new TimeSeriesPoint(2486021F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:25:00Z"), }, - new TimeSeriesPoint(2485293) + new TimeSeriesPoint(2485293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:30:00Z"), }, - new TimeSeriesPoint(2485293) + new TimeSeriesPoint(2485293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:35:00Z"), }, - new TimeSeriesPoint(2485324) + new TimeSeriesPoint(2485324F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:40:00Z"), }, - new TimeSeriesPoint(2489142) + new TimeSeriesPoint(2489142F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:45:00Z"), }, - new TimeSeriesPoint(2526312) + new TimeSeriesPoint(2526312F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:50:00Z"), }, - new TimeSeriesPoint(2526313) + new TimeSeriesPoint(2526313F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:55:00Z"), }, - new TimeSeriesPoint(2526314) + new TimeSeriesPoint(2526314F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:00:00Z"), }, - new TimeSeriesPoint(2526324) + new TimeSeriesPoint(2526324F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:05:00Z"), }, - new TimeSeriesPoint(2526325) + new TimeSeriesPoint(2526325F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:10:00Z"), }, - new TimeSeriesPoint(2526205) + new TimeSeriesPoint(2526205F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:15:00Z"), }, - new TimeSeriesPoint(2526226) + new TimeSeriesPoint(2526226F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:20:00Z"), }, - new TimeSeriesPoint(2526475) + new TimeSeriesPoint(2526475F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:25:00Z"), }, - new TimeSeriesPoint(2526471) + new TimeSeriesPoint(2526471F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:30:00Z"), }, - new TimeSeriesPoint(2526471) + new TimeSeriesPoint(2526471F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:35:00Z"), }, - new TimeSeriesPoint(2526534) + new TimeSeriesPoint(2526534F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:40:00Z"), }, - new TimeSeriesPoint(2526646) + new TimeSeriesPoint(2526646F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:45:00Z"), }, - new TimeSeriesPoint(2526646) + new TimeSeriesPoint(2526646F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:50:00Z"), }, - new TimeSeriesPoint(2526648) + new TimeSeriesPoint(2526648F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:55:00Z"), }, - new TimeSeriesPoint(2526658) + new TimeSeriesPoint(2526658F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:00:00Z"), }, - new TimeSeriesPoint(2526771) + new TimeSeriesPoint(2526771F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:05:00Z"), }, - new TimeSeriesPoint(2526773) + new TimeSeriesPoint(2526773F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:10:00Z"), }, - new TimeSeriesPoint(2526793) + new TimeSeriesPoint(2526793F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:15:00Z"), }, - new TimeSeriesPoint(2527010) + new TimeSeriesPoint(2527010F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:20:00Z"), }, - new TimeSeriesPoint(2527031) + new TimeSeriesPoint(2527031F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:25:00Z"), }, - new TimeSeriesPoint(3178096) + new TimeSeriesPoint(3178096F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:30:00Z"), }, - new TimeSeriesPoint(3196305) + new TimeSeriesPoint(3196305F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:35:00Z"), }, - new TimeSeriesPoint(3196202) + new TimeSeriesPoint(3196202F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:40:00Z"), }, - new TimeSeriesPoint(3196202) + new TimeSeriesPoint(3196202F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:45:00Z"), }, - new TimeSeriesPoint(3196205) + new TimeSeriesPoint(3196205F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:50:00Z"), }, - new TimeSeriesPoint(3229232) + new TimeSeriesPoint(3229232F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:55:00Z"), }, - new TimeSeriesPoint(3230463) + new TimeSeriesPoint(3230463F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:00:00Z"), }, - new TimeSeriesPoint(3230468) + new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:05:00Z"), }, - new TimeSeriesPoint(3230468) + new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:10:00Z"), }, - new TimeSeriesPoint(3230468) + new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:15:00Z"), }, - new TimeSeriesPoint(3230470) + new TimeSeriesPoint(3230470F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:20:00Z"), }, - new TimeSeriesPoint(3230467) + new TimeSeriesPoint(3230467F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:25:00Z"), }, - new TimeSeriesPoint(3230506) + new TimeSeriesPoint(3230506F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:30:00Z"), }, - new TimeSeriesPoint(3231536) + new TimeSeriesPoint(3231536F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:35:00Z"), }, - new TimeSeriesPoint(3230723) + new TimeSeriesPoint(3230723F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:40:00Z"), }, - new TimeSeriesPoint(3230727) + new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:45:00Z"), }, - new TimeSeriesPoint(3230727) + new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:50:00Z"), }, - new TimeSeriesPoint(3230727) + new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:55:00Z"), }, - new TimeSeriesPoint(3231880) + new TimeSeriesPoint(3231880F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:00:00Z"), }, - new TimeSeriesPoint(3232283) + new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:05:00Z"), }, - new TimeSeriesPoint(3232283) + new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:10:00Z"), }, - new TimeSeriesPoint(3232283) + new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:15:00Z"), }, - new TimeSeriesPoint(3232325) + new TimeSeriesPoint(3232325F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:20:00Z"), }, - new TimeSeriesPoint(3232323) + new TimeSeriesPoint(3232323F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:25:00Z"), }, - new TimeSeriesPoint(3232327) + new TimeSeriesPoint(3232327F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:30:00Z"), }, - new TimeSeriesPoint(3232340) + new TimeSeriesPoint(3232340F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:35:00Z"), }, - new TimeSeriesPoint(3232713) + new TimeSeriesPoint(3232713F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:40:00Z"), }, - new TimeSeriesPoint(3232729) + new TimeSeriesPoint(3232729F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:45:00Z"), }, - new TimeSeriesPoint(3232756) + new TimeSeriesPoint(3232756F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:50:00Z"), }, - new TimeSeriesPoint(3233500) + new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:55:00Z"), }, - new TimeSeriesPoint(3233500) + new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T04:00:00Z"), }, - new TimeSeriesPoint(3233500) + new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T04:05:00Z"), } @@ -2554,7 +2554,7 @@ UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetecti CustomInterval = 5, Period = 0, StableTrendWindow = 10, - Threshold = (float)0.99, + Threshold = 0.99F, }; Response response = await client.DetectUnivariateChangePointAsync(options); ]]> @@ -2569,1031 +2569,1031 @@ Univariate client = new AnomalyDetectorClient(endpoint, credential).GetUnivariat UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[] { - new TimeSeriesPoint(1639196) + new TimeSeriesPoint(1639196F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:45:00Z"), }, - new TimeSeriesPoint(1639290) + new TimeSeriesPoint(1639290F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:50:00Z"), }, - new TimeSeriesPoint(1667293) + new TimeSeriesPoint(1667293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:55:00Z"), }, - new TimeSeriesPoint(1703130) + new TimeSeriesPoint(1703130F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:00:00Z"), }, - new TimeSeriesPoint(1650912) + new TimeSeriesPoint(1650912F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:05:00Z"), }, - new TimeSeriesPoint(1653596) + new TimeSeriesPoint(1653596F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:10:00Z"), }, - new TimeSeriesPoint(1653793) + new TimeSeriesPoint(1653793F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:15:00Z"), }, - new TimeSeriesPoint(1653795) + new TimeSeriesPoint(1653795F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:20:00Z"), }, - new TimeSeriesPoint(1663471) + new TimeSeriesPoint(1663471F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:25:00Z"), }, - new TimeSeriesPoint(1662358) + new TimeSeriesPoint(1662358F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:30:00Z"), }, - new TimeSeriesPoint(1664320) + new TimeSeriesPoint(1664320F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:35:00Z"), }, - new TimeSeriesPoint(1664942) + new TimeSeriesPoint(1664942F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:40:00Z"), }, - new TimeSeriesPoint(1664966) + new TimeSeriesPoint(1664966F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:45:00Z"), }, - new TimeSeriesPoint(1724271) + new TimeSeriesPoint(1724271F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:50:00Z"), }, - new TimeSeriesPoint(1678720) + new TimeSeriesPoint(1678720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:55:00Z"), }, - new TimeSeriesPoint(1672536) + new TimeSeriesPoint(1672536F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:00:00Z"), }, - new TimeSeriesPoint(1672544) + new TimeSeriesPoint(1672544F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:05:00Z"), }, - new TimeSeriesPoint(1672364) + new TimeSeriesPoint(1672364F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:10:00Z"), }, - new TimeSeriesPoint(1672912) + new TimeSeriesPoint(1672912F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:15:00Z"), }, - new TimeSeriesPoint(1672736) + new TimeSeriesPoint(1672736F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:20:00Z"), }, - new TimeSeriesPoint(1672725) + new TimeSeriesPoint(1672725F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:25:00Z"), }, - new TimeSeriesPoint(1673247) + new TimeSeriesPoint(1673247F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:30:00Z"), }, - new TimeSeriesPoint(1673109) + new TimeSeriesPoint(1673109F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:35:00Z"), }, - new TimeSeriesPoint(1690088) + new TimeSeriesPoint(1690088F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:40:00Z"), }, - new TimeSeriesPoint(1703865) + new TimeSeriesPoint(1703865F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:45:00Z"), }, - new TimeSeriesPoint(1703865) + new TimeSeriesPoint(1703865F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:50:00Z"), }, - new TimeSeriesPoint(1786581) + new TimeSeriesPoint(1786581F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:55:00Z"), }, - new TimeSeriesPoint(1800945) + new TimeSeriesPoint(1800945F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:00:00Z"), }, - new TimeSeriesPoint(1800957) + new TimeSeriesPoint(1800957F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:05:00Z"), }, - new TimeSeriesPoint(1801191) + new TimeSeriesPoint(1801191F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:10:00Z"), }, - new TimeSeriesPoint(1801412) + new TimeSeriesPoint(1801412F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:15:00Z"), }, - new TimeSeriesPoint(1801621) + new TimeSeriesPoint(1801621F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:20:00Z"), }, - new TimeSeriesPoint(1801621) + new TimeSeriesPoint(1801621F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:25:00Z"), }, - new TimeSeriesPoint(1801654) + new TimeSeriesPoint(1801654F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:30:00Z"), }, - new TimeSeriesPoint(1802105) + new TimeSeriesPoint(1802105F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:35:00Z"), }, - new TimeSeriesPoint(1801800) + new TimeSeriesPoint(1801800F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:40:00Z"), }, - new TimeSeriesPoint(1803040) + new TimeSeriesPoint(1803040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:45:00Z"), }, - new TimeSeriesPoint(1803672) + new TimeSeriesPoint(1803672F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:50:00Z"), }, - new TimeSeriesPoint(1803535) + new TimeSeriesPoint(1803535F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:55:00Z"), }, - new TimeSeriesPoint(1803541) + new TimeSeriesPoint(1803541F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:00:00Z"), }, - new TimeSeriesPoint(1803545) + new TimeSeriesPoint(1803545F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:05:00Z"), }, - new TimeSeriesPoint(1803599) + new TimeSeriesPoint(1803599F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:10:00Z"), }, - new TimeSeriesPoint(1803616) + new TimeSeriesPoint(1803616F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:15:00Z"), }, - new TimeSeriesPoint(1803619) + new TimeSeriesPoint(1803619F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:20:00Z"), }, - new TimeSeriesPoint(1809942) + new TimeSeriesPoint(1809942F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:25:00Z"), }, - new TimeSeriesPoint(1802720) + new TimeSeriesPoint(1802720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:30:00Z"), }, - new TimeSeriesPoint(1802720) + new TimeSeriesPoint(1802720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:35:00Z"), }, - new TimeSeriesPoint(1802888) + new TimeSeriesPoint(1802888F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:40:00Z"), }, - new TimeSeriesPoint(1809574) + new TimeSeriesPoint(1809574F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:45:00Z"), }, - new TimeSeriesPoint(1803896) + new TimeSeriesPoint(1803896F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:50:00Z"), }, - new TimeSeriesPoint(1803850) + new TimeSeriesPoint(1803850F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:55:00Z"), }, - new TimeSeriesPoint(1803854) + new TimeSeriesPoint(1803854F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:00:00Z"), }, - new TimeSeriesPoint(1803854) + new TimeSeriesPoint(1803854F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:05:00Z"), }, - new TimeSeriesPoint(1803797) + new TimeSeriesPoint(1803797F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:10:00Z"), }, - new TimeSeriesPoint(1803921) + new TimeSeriesPoint(1803921F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:15:00Z"), }, - new TimeSeriesPoint(1803933) + new TimeSeriesPoint(1803933F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:20:00Z"), }, - new TimeSeriesPoint(1804040) + new TimeSeriesPoint(1804040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:25:00Z"), }, - new TimeSeriesPoint(1804044) + new TimeSeriesPoint(1804044F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:30:00Z"), }, - new TimeSeriesPoint(1804070) + new TimeSeriesPoint(1804070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:35:00Z"), }, - new TimeSeriesPoint(1804070) + new TimeSeriesPoint(1804070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:40:00Z"), }, - new TimeSeriesPoint(1804068) + new TimeSeriesPoint(1804068F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:45:00Z"), }, - new TimeSeriesPoint(1804073) + new TimeSeriesPoint(1804073F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:50:00Z"), }, - new TimeSeriesPoint(1804101) + new TimeSeriesPoint(1804101F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:55:00Z"), }, - new TimeSeriesPoint(1804674) + new TimeSeriesPoint(1804674F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:00:00Z"), }, - new TimeSeriesPoint(1804714) + new TimeSeriesPoint(1804714F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:05:00Z"), }, - new TimeSeriesPoint(1804730) + new TimeSeriesPoint(1804730F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:10:00Z"), }, - new TimeSeriesPoint(1804816) + new TimeSeriesPoint(1804816F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:15:00Z"), }, - new TimeSeriesPoint(1803996) + new TimeSeriesPoint(1803996F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:20:00Z"), }, - new TimeSeriesPoint(1803998) + new TimeSeriesPoint(1803998F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:25:00Z"), }, - new TimeSeriesPoint(1804015) + new TimeSeriesPoint(1804015F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:30:00Z"), }, - new TimeSeriesPoint(1804047) + new TimeSeriesPoint(1804047F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:35:00Z"), }, - new TimeSeriesPoint(1804050) + new TimeSeriesPoint(1804050F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:40:00Z"), }, - new TimeSeriesPoint(1804218) + new TimeSeriesPoint(1804218F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:45:00Z"), }, - new TimeSeriesPoint(1804217) + new TimeSeriesPoint(1804217F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:50:00Z"), }, - new TimeSeriesPoint(1804217) + new TimeSeriesPoint(1804217F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:55:00Z"), }, - new TimeSeriesPoint(1804205) + new TimeSeriesPoint(1804205F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:00:00Z"), }, - new TimeSeriesPoint(1804728) + new TimeSeriesPoint(1804728F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:05:00Z"), }, - new TimeSeriesPoint(1804748) + new TimeSeriesPoint(1804748F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:10:00Z"), }, - new TimeSeriesPoint(1805232) + new TimeSeriesPoint(1805232F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:15:00Z"), }, - new TimeSeriesPoint(1814121) + new TimeSeriesPoint(1814121F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:20:00Z"), }, - new TimeSeriesPoint(1806789) + new TimeSeriesPoint(1806789F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:25:00Z"), }, - new TimeSeriesPoint(1806119) + new TimeSeriesPoint(1806119F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:30:00Z"), }, - new TimeSeriesPoint(1806329) + new TimeSeriesPoint(1806329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:35:00Z"), }, - new TimeSeriesPoint(1806454) + new TimeSeriesPoint(1806454F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:40:00Z"), }, - new TimeSeriesPoint(1806852) + new TimeSeriesPoint(1806852F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:45:00Z"), }, - new TimeSeriesPoint(1807347) + new TimeSeriesPoint(1807347F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:50:00Z"), }, - new TimeSeriesPoint(1812144) + new TimeSeriesPoint(1812144F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:55:00Z"), }, - new TimeSeriesPoint(1807418) + new TimeSeriesPoint(1807418F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:00:00Z"), }, - new TimeSeriesPoint(1807418) + new TimeSeriesPoint(1807418F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:05:00Z"), }, - new TimeSeriesPoint(1807432) + new TimeSeriesPoint(1807432F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:10:00Z"), }, - new TimeSeriesPoint(1808540) + new TimeSeriesPoint(1808540F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:15:00Z"), }, - new TimeSeriesPoint(1808541) + new TimeSeriesPoint(1808541F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:20:00Z"), }, - new TimeSeriesPoint(1807831) + new TimeSeriesPoint(1807831F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:25:00Z"), }, - new TimeSeriesPoint(1807852) + new TimeSeriesPoint(1807852F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:30:00Z"), }, - new TimeSeriesPoint(1807811) + new TimeSeriesPoint(1807811F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:35:00Z"), }, - new TimeSeriesPoint(2214285) + new TimeSeriesPoint(2214285F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:40:00Z"), }, - new TimeSeriesPoint(2215019) + new TimeSeriesPoint(2215019F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:45:00Z"), }, - new TimeSeriesPoint(2215329) + new TimeSeriesPoint(2215329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:50:00Z"), }, - new TimeSeriesPoint(2215097) + new TimeSeriesPoint(2215097F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:55:00Z"), }, - new TimeSeriesPoint(2215129) + new TimeSeriesPoint(2215129F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:00:00Z"), }, - new TimeSeriesPoint(2215120) + new TimeSeriesPoint(2215120F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:05:00Z"), }, - new TimeSeriesPoint(2217056) + new TimeSeriesPoint(2217056F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:10:00Z"), }, - new TimeSeriesPoint(2217056) + new TimeSeriesPoint(2217056F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:15:00Z"), }, - new TimeSeriesPoint(2222126) + new TimeSeriesPoint(2222126F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:20:00Z"), }, - new TimeSeriesPoint(2226472) + new TimeSeriesPoint(2226472F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:25:00Z"), }, - new TimeSeriesPoint(2226722) + new TimeSeriesPoint(2226722F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:30:00Z"), }, - new TimeSeriesPoint(2226729) + new TimeSeriesPoint(2226729F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:35:00Z"), }, - new TimeSeriesPoint(2226735) + new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:40:00Z"), }, - new TimeSeriesPoint(2226735) + new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:45:00Z"), }, - new TimeSeriesPoint(2226735) + new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:50:00Z"), }, - new TimeSeriesPoint(2226952) + new TimeSeriesPoint(2226952F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:55:00Z"), }, - new TimeSeriesPoint(2226962) + new TimeSeriesPoint(2226962F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:00:00Z"), }, - new TimeSeriesPoint(2649337) + new TimeSeriesPoint(2649337F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:05:00Z"), }, - new TimeSeriesPoint(2092796) + new TimeSeriesPoint(2092796F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:10:00Z"), }, - new TimeSeriesPoint(2092839) + new TimeSeriesPoint(2092839F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:15:00Z"), }, - new TimeSeriesPoint(2092940) + new TimeSeriesPoint(2092940F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:20:00Z"), }, - new TimeSeriesPoint(2092940) + new TimeSeriesPoint(2092940F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:25:00Z"), }, - new TimeSeriesPoint(2092965) + new TimeSeriesPoint(2092965F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:30:00Z"), }, - new TimeSeriesPoint(2092979) + new TimeSeriesPoint(2092979F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:35:00Z"), }, - new TimeSeriesPoint(2095588) + new TimeSeriesPoint(2095588F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:40:00Z"), }, - new TimeSeriesPoint(2099586) + new TimeSeriesPoint(2099586F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:45:00Z"), }, - new TimeSeriesPoint(2102981) + new TimeSeriesPoint(2102981F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:50:00Z"), }, - new TimeSeriesPoint(2108053) + new TimeSeriesPoint(2108053F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:55:00Z"), }, - new TimeSeriesPoint(2107907) + new TimeSeriesPoint(2107907F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:00:00Z"), }, - new TimeSeriesPoint(2108241) + new TimeSeriesPoint(2108241F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:05:00Z"), }, - new TimeSeriesPoint(2100321) + new TimeSeriesPoint(2100321F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:10:00Z"), }, - new TimeSeriesPoint(2100448) + new TimeSeriesPoint(2100448F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:15:00Z"), }, - new TimeSeriesPoint(2100483) + new TimeSeriesPoint(2100483F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:20:00Z"), }, - new TimeSeriesPoint(2103042) + new TimeSeriesPoint(2103042F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:25:00Z"), }, - new TimeSeriesPoint(2103037) + new TimeSeriesPoint(2103037F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:30:00Z"), }, - new TimeSeriesPoint(2103040) + new TimeSeriesPoint(2103040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:35:00Z"), }, - new TimeSeriesPoint(2103054) + new TimeSeriesPoint(2103054F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:40:00Z"), }, - new TimeSeriesPoint(2103058) + new TimeSeriesPoint(2103058F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:45:00Z"), }, - new TimeSeriesPoint(1830757) + new TimeSeriesPoint(1830757F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:50:00Z"), }, - new TimeSeriesPoint(1830855) + new TimeSeriesPoint(1830855F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:55:00Z"), }, - new TimeSeriesPoint(1831495) + new TimeSeriesPoint(1831495F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:00:00Z"), }, - new TimeSeriesPoint(1831463) + new TimeSeriesPoint(1831463F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:05:00Z"), }, - new TimeSeriesPoint(1831963) + new TimeSeriesPoint(1831963F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:10:00Z"), }, - new TimeSeriesPoint(1832046) + new TimeSeriesPoint(1832046F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:15:00Z"), }, - new TimeSeriesPoint(1832070) + new TimeSeriesPoint(1832070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:20:00Z"), }, - new TimeSeriesPoint(1835511) + new TimeSeriesPoint(1835511F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:25:00Z"), }, - new TimeSeriesPoint(1835265) + new TimeSeriesPoint(1835265F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:30:00Z"), }, - new TimeSeriesPoint(1835481) + new TimeSeriesPoint(1835481F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:35:00Z"), }, - new TimeSeriesPoint(1835578) + new TimeSeriesPoint(1835578F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:40:00Z"), }, - new TimeSeriesPoint(1835611) + new TimeSeriesPoint(1835611F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:45:00Z"), }, - new TimeSeriesPoint(1836314) + new TimeSeriesPoint(1836314F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:50:00Z"), }, - new TimeSeriesPoint(1836369) + new TimeSeriesPoint(1836369F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:55:00Z"), }, - new TimeSeriesPoint(1837280) + new TimeSeriesPoint(1837280F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:00:00Z"), }, - new TimeSeriesPoint(1842939) + new TimeSeriesPoint(1842939F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:05:00Z"), }, - new TimeSeriesPoint(1843126) + new TimeSeriesPoint(1843126F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:10:00Z"), }, - new TimeSeriesPoint(1845840) + new TimeSeriesPoint(1845840F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:15:00Z"), }, - new TimeSeriesPoint(1842444) + new TimeSeriesPoint(1842444F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:20:00Z"), }, - new TimeSeriesPoint(1839891) + new TimeSeriesPoint(1839891F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:25:00Z"), }, - new TimeSeriesPoint(1839875) + new TimeSeriesPoint(1839875F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:30:00Z"), }, - new TimeSeriesPoint(1839870) + new TimeSeriesPoint(1839870F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:35:00Z"), }, - new TimeSeriesPoint(1840090) + new TimeSeriesPoint(1840090F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:40:00Z"), }, - new TimeSeriesPoint(1840479) + new TimeSeriesPoint(1840479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:45:00Z"), }, - new TimeSeriesPoint(1840479) + new TimeSeriesPoint(1840479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:50:00Z"), }, - new TimeSeriesPoint(1840482) + new TimeSeriesPoint(1840482F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:55:00Z"), }, - new TimeSeriesPoint(1841522) + new TimeSeriesPoint(1841522F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:00:00Z"), }, - new TimeSeriesPoint(1841836) + new TimeSeriesPoint(1841836F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:05:00Z"), }, - new TimeSeriesPoint(1842377) + new TimeSeriesPoint(1842377F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:10:00Z"), }, - new TimeSeriesPoint(1842388) + new TimeSeriesPoint(1842388F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:15:00Z"), }, - new TimeSeriesPoint(1842489) + new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:20:00Z"), }, - new TimeSeriesPoint(1842489) + new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:25:00Z"), }, - new TimeSeriesPoint(1842489) + new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:30:00Z"), }, - new TimeSeriesPoint(1842496) + new TimeSeriesPoint(1842496F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:35:00Z"), }, - new TimeSeriesPoint(1842689) + new TimeSeriesPoint(1842689F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:40:00Z"), }, - new TimeSeriesPoint(1843117) + new TimeSeriesPoint(1843117F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:45:00Z"), }, - new TimeSeriesPoint(1843116) + new TimeSeriesPoint(1843116F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:50:00Z"), }, - new TimeSeriesPoint(1843227) + new TimeSeriesPoint(1843227F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:55:00Z"), }, - new TimeSeriesPoint(1843138) + new TimeSeriesPoint(1843138F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:00:00Z"), }, - new TimeSeriesPoint(1843141) + new TimeSeriesPoint(1843141F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:05:00Z"), }, - new TimeSeriesPoint(1843310) + new TimeSeriesPoint(1843310F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:10:00Z"), }, - new TimeSeriesPoint(1843310) + new TimeSeriesPoint(1843310F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:15:00Z"), }, - new TimeSeriesPoint(1843507) + new TimeSeriesPoint(1843507F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:20:00Z"), }, - new TimeSeriesPoint(1843953) + new TimeSeriesPoint(1843953F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:25:00Z"), }, - new TimeSeriesPoint(1844778) + new TimeSeriesPoint(1844778F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:30:00Z"), }, - new TimeSeriesPoint(1843918) + new TimeSeriesPoint(1843918F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:35:00Z"), }, - new TimeSeriesPoint(1882692) + new TimeSeriesPoint(1882692F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:40:00Z"), }, - new TimeSeriesPoint(1974888) + new TimeSeriesPoint(1974888F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:45:00Z"), }, - new TimeSeriesPoint(2157136) + new TimeSeriesPoint(2157136F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:50:00Z"), }, - new TimeSeriesPoint(2154987) + new TimeSeriesPoint(2154987F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:55:00Z"), }, - new TimeSeriesPoint(2155664) + new TimeSeriesPoint(2155664F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:00:00Z"), }, - new TimeSeriesPoint(2155660) + new TimeSeriesPoint(2155660F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:05:00Z"), }, - new TimeSeriesPoint(2155824) + new TimeSeriesPoint(2155824F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:10:00Z"), }, - new TimeSeriesPoint(2155824) + new TimeSeriesPoint(2155824F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:15:00Z"), }, - new TimeSeriesPoint(2156329) + new TimeSeriesPoint(2156329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:20:00Z"), }, - new TimeSeriesPoint(2156479) + new TimeSeriesPoint(2156479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:25:00Z"), }, - new TimeSeriesPoint(2165269) + new TimeSeriesPoint(2165269F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:30:00Z"), }, - new TimeSeriesPoint(2165433) + new TimeSeriesPoint(2165433F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:35:00Z"), }, - new TimeSeriesPoint(2165739) + new TimeSeriesPoint(2165739F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:40:00Z"), }, - new TimeSeriesPoint(2165931) + new TimeSeriesPoint(2165931F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:45:00Z"), }, - new TimeSeriesPoint(2165928) + new TimeSeriesPoint(2165928F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:50:00Z"), }, - new TimeSeriesPoint(2165989) + new TimeSeriesPoint(2165989F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:55:00Z"), }, - new TimeSeriesPoint(2228961) + new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:00:00Z"), }, - new TimeSeriesPoint(2228961) + new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:05:00Z"), }, - new TimeSeriesPoint(2228961) + new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:10:00Z"), }, - new TimeSeriesPoint(2485802) + new TimeSeriesPoint(2485802F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:15:00Z"), }, - new TimeSeriesPoint(2485802) + new TimeSeriesPoint(2485802F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:20:00Z"), }, - new TimeSeriesPoint(2486021) + new TimeSeriesPoint(2486021F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:25:00Z"), }, - new TimeSeriesPoint(2485293) + new TimeSeriesPoint(2485293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:30:00Z"), }, - new TimeSeriesPoint(2485293) + new TimeSeriesPoint(2485293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:35:00Z"), }, - new TimeSeriesPoint(2485324) + new TimeSeriesPoint(2485324F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:40:00Z"), }, - new TimeSeriesPoint(2489142) + new TimeSeriesPoint(2489142F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:45:00Z"), }, - new TimeSeriesPoint(2526312) + new TimeSeriesPoint(2526312F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:50:00Z"), }, - new TimeSeriesPoint(2526313) + new TimeSeriesPoint(2526313F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:55:00Z"), }, - new TimeSeriesPoint(2526314) + new TimeSeriesPoint(2526314F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:00:00Z"), }, - new TimeSeriesPoint(2526324) + new TimeSeriesPoint(2526324F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:05:00Z"), }, - new TimeSeriesPoint(2526325) + new TimeSeriesPoint(2526325F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:10:00Z"), }, - new TimeSeriesPoint(2526205) + new TimeSeriesPoint(2526205F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:15:00Z"), }, - new TimeSeriesPoint(2526226) + new TimeSeriesPoint(2526226F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:20:00Z"), }, - new TimeSeriesPoint(2526475) + new TimeSeriesPoint(2526475F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:25:00Z"), }, - new TimeSeriesPoint(2526471) + new TimeSeriesPoint(2526471F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:30:00Z"), }, - new TimeSeriesPoint(2526471) + new TimeSeriesPoint(2526471F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:35:00Z"), }, - new TimeSeriesPoint(2526534) + new TimeSeriesPoint(2526534F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:40:00Z"), }, - new TimeSeriesPoint(2526646) + new TimeSeriesPoint(2526646F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:45:00Z"), }, - new TimeSeriesPoint(2526646) + new TimeSeriesPoint(2526646F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:50:00Z"), }, - new TimeSeriesPoint(2526648) + new TimeSeriesPoint(2526648F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:55:00Z"), }, - new TimeSeriesPoint(2526658) + new TimeSeriesPoint(2526658F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:00:00Z"), }, - new TimeSeriesPoint(2526771) + new TimeSeriesPoint(2526771F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:05:00Z"), }, - new TimeSeriesPoint(2526773) + new TimeSeriesPoint(2526773F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:10:00Z"), }, - new TimeSeriesPoint(2526793) + new TimeSeriesPoint(2526793F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:15:00Z"), }, - new TimeSeriesPoint(2527010) + new TimeSeriesPoint(2527010F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:20:00Z"), }, - new TimeSeriesPoint(2527031) + new TimeSeriesPoint(2527031F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:25:00Z"), }, - new TimeSeriesPoint(3178096) + new TimeSeriesPoint(3178096F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:30:00Z"), }, - new TimeSeriesPoint(3196305) + new TimeSeriesPoint(3196305F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:35:00Z"), }, - new TimeSeriesPoint(3196202) + new TimeSeriesPoint(3196202F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:40:00Z"), }, - new TimeSeriesPoint(3196202) + new TimeSeriesPoint(3196202F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:45:00Z"), }, - new TimeSeriesPoint(3196205) + new TimeSeriesPoint(3196205F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:50:00Z"), }, - new TimeSeriesPoint(3229232) + new TimeSeriesPoint(3229232F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:55:00Z"), }, - new TimeSeriesPoint(3230463) + new TimeSeriesPoint(3230463F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:00:00Z"), }, - new TimeSeriesPoint(3230468) + new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:05:00Z"), }, - new TimeSeriesPoint(3230468) + new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:10:00Z"), }, - new TimeSeriesPoint(3230468) + new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:15:00Z"), }, - new TimeSeriesPoint(3230470) + new TimeSeriesPoint(3230470F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:20:00Z"), }, - new TimeSeriesPoint(3230467) + new TimeSeriesPoint(3230467F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:25:00Z"), }, - new TimeSeriesPoint(3230506) + new TimeSeriesPoint(3230506F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:30:00Z"), }, - new TimeSeriesPoint(3231536) + new TimeSeriesPoint(3231536F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:35:00Z"), }, - new TimeSeriesPoint(3230723) + new TimeSeriesPoint(3230723F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:40:00Z"), }, - new TimeSeriesPoint(3230727) + new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:45:00Z"), }, - new TimeSeriesPoint(3230727) + new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:50:00Z"), }, - new TimeSeriesPoint(3230727) + new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:55:00Z"), }, - new TimeSeriesPoint(3231880) + new TimeSeriesPoint(3231880F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:00:00Z"), }, - new TimeSeriesPoint(3232283) + new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:05:00Z"), }, - new TimeSeriesPoint(3232283) + new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:10:00Z"), }, - new TimeSeriesPoint(3232283) + new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:15:00Z"), }, - new TimeSeriesPoint(3232325) + new TimeSeriesPoint(3232325F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:20:00Z"), }, - new TimeSeriesPoint(3232323) + new TimeSeriesPoint(3232323F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:25:00Z"), }, - new TimeSeriesPoint(3232327) + new TimeSeriesPoint(3232327F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:30:00Z"), }, - new TimeSeriesPoint(3232340) + new TimeSeriesPoint(3232340F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:35:00Z"), }, - new TimeSeriesPoint(3232713) + new TimeSeriesPoint(3232713F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:40:00Z"), }, - new TimeSeriesPoint(3232729) + new TimeSeriesPoint(3232729F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:45:00Z"), }, - new TimeSeriesPoint(3232756) + new TimeSeriesPoint(3232756F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:50:00Z"), }, - new TimeSeriesPoint(3233500) + new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:55:00Z"), }, - new TimeSeriesPoint(3233500) + new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T04:00:00Z"), }, - new TimeSeriesPoint(3233500) + new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T04:05:00Z"), } @@ -3602,7 +3602,7 @@ UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetecti CustomInterval = 5, Period = 0, StableTrendWindow = 10, - Threshold = (float)0.99, + Threshold = 0.99F, }; Response response = client.DetectUnivariateChangePoint(options); ]]> @@ -3622,1293 +3622,1293 @@ using RequestContent content = RequestContent.Create(new new { timestamp = "2017-01-01T06:45:00Z", - value = 1639196, + value = 1639196F, }, new { timestamp = "2017-01-01T06:50:00Z", - value = 1639290, + value = 1639290F, }, new { timestamp = "2017-01-01T06:55:00Z", - value = 1667293, + value = 1667293F, }, new { timestamp = "2017-01-01T07:00:00Z", - value = 1703130, + value = 1703130F, }, new { timestamp = "2017-01-01T07:05:00Z", - value = 1650912, + value = 1650912F, }, new { timestamp = "2017-01-01T07:10:00Z", - value = 1653596, + value = 1653596F, }, new { timestamp = "2017-01-01T07:15:00Z", - value = 1653793, + value = 1653793F, }, new { timestamp = "2017-01-01T07:20:00Z", - value = 1653795, + value = 1653795F, }, new { timestamp = "2017-01-01T07:25:00Z", - value = 1663471, + value = 1663471F, }, new { timestamp = "2017-01-01T07:30:00Z", - value = 1662358, + value = 1662358F, }, new { timestamp = "2017-01-01T07:35:00Z", - value = 1664320, + value = 1664320F, }, new { timestamp = "2017-01-01T07:40:00Z", - value = 1664942, + value = 1664942F, }, new { timestamp = "2017-01-01T07:45:00Z", - value = 1664966, + value = 1664966F, }, new { timestamp = "2017-01-01T07:50:00Z", - value = 1724271, + value = 1724271F, }, new { timestamp = "2017-01-01T07:55:00Z", - value = 1678720, + value = 1678720F, }, new { timestamp = "2017-01-01T08:00:00Z", - value = 1672536, + value = 1672536F, }, new { timestamp = "2017-01-01T08:05:00Z", - value = 1672544, + value = 1672544F, }, new { timestamp = "2017-01-01T08:10:00Z", - value = 1672364, + value = 1672364F, }, new { timestamp = "2017-01-01T08:15:00Z", - value = 1672912, + value = 1672912F, }, new { timestamp = "2017-01-01T08:20:00Z", - value = 1672736, + value = 1672736F, }, new { timestamp = "2017-01-01T08:25:00Z", - value = 1672725, + value = 1672725F, }, new { timestamp = "2017-01-01T08:30:00Z", - value = 1673247, + value = 1673247F, }, new { timestamp = "2017-01-01T08:35:00Z", - value = 1673109, + value = 1673109F, }, new { timestamp = "2017-01-01T08:40:00Z", - value = 1690088, + value = 1690088F, }, new { timestamp = "2017-01-01T08:45:00Z", - value = 1703865, + value = 1703865F, }, new { timestamp = "2017-01-01T08:50:00Z", - value = 1703865, + value = 1703865F, }, new { timestamp = "2017-01-01T08:55:00Z", - value = 1786581, + value = 1786581F, }, new { timestamp = "2017-01-01T09:00:00Z", - value = 1800945, + value = 1800945F, }, new { timestamp = "2017-01-01T09:05:00Z", - value = 1800957, + value = 1800957F, }, new { timestamp = "2017-01-01T09:10:00Z", - value = 1801191, + value = 1801191F, }, new { timestamp = "2017-01-01T09:15:00Z", - value = 1801412, + value = 1801412F, }, new { timestamp = "2017-01-01T09:20:00Z", - value = 1801621, + value = 1801621F, }, new { timestamp = "2017-01-01T09:25:00Z", - value = 1801621, + value = 1801621F, }, new { timestamp = "2017-01-01T09:30:00Z", - value = 1801654, + value = 1801654F, }, new { timestamp = "2017-01-01T09:35:00Z", - value = 1802105, + value = 1802105F, }, new { timestamp = "2017-01-01T09:40:00Z", - value = 1801800, + value = 1801800F, }, new { timestamp = "2017-01-01T09:45:00Z", - value = 1803040, + value = 1803040F, }, new { timestamp = "2017-01-01T09:50:00Z", - value = 1803672, + value = 1803672F, }, new { timestamp = "2017-01-01T09:55:00Z", - value = 1803535, + value = 1803535F, }, new { timestamp = "2017-01-01T10:00:00Z", - value = 1803541, + value = 1803541F, }, new { timestamp = "2017-01-01T10:05:00Z", - value = 1803545, + value = 1803545F, }, new { timestamp = "2017-01-01T10:10:00Z", - value = 1803599, + value = 1803599F, }, new { timestamp = "2017-01-01T10:15:00Z", - value = 1803616, + value = 1803616F, }, new { timestamp = "2017-01-01T10:20:00Z", - value = 1803619, + value = 1803619F, }, new { timestamp = "2017-01-01T10:25:00Z", - value = 1809942, + value = 1809942F, }, new { timestamp = "2017-01-01T10:30:00Z", - value = 1802720, + value = 1802720F, }, new { timestamp = "2017-01-01T10:35:00Z", - value = 1802720, + value = 1802720F, }, new { timestamp = "2017-01-01T10:40:00Z", - value = 1802888, + value = 1802888F, }, new { timestamp = "2017-01-01T10:45:00Z", - value = 1809574, + value = 1809574F, }, new { timestamp = "2017-01-01T10:50:00Z", - value = 1803896, + value = 1803896F, }, new { timestamp = "2017-01-01T10:55:00Z", - value = 1803850, + value = 1803850F, }, new { timestamp = "2017-01-01T11:00:00Z", - value = 1803854, + value = 1803854F, }, new { timestamp = "2017-01-01T11:05:00Z", - value = 1803854, + value = 1803854F, }, new { timestamp = "2017-01-01T11:10:00Z", - value = 1803797, + value = 1803797F, }, new { timestamp = "2017-01-01T11:15:00Z", - value = 1803921, + value = 1803921F, }, new { timestamp = "2017-01-01T11:20:00Z", - value = 1803933, + value = 1803933F, }, new { timestamp = "2017-01-01T11:25:00Z", - value = 1804040, + value = 1804040F, }, new { timestamp = "2017-01-01T11:30:00Z", - value = 1804044, + value = 1804044F, }, new { timestamp = "2017-01-01T11:35:00Z", - value = 1804070, + value = 1804070F, }, new { timestamp = "2017-01-01T11:40:00Z", - value = 1804070, + value = 1804070F, }, new { timestamp = "2017-01-01T11:45:00Z", - value = 1804068, + value = 1804068F, }, new { timestamp = "2017-01-01T11:50:00Z", - value = 1804073, + value = 1804073F, }, new { timestamp = "2017-01-01T11:55:00Z", - value = 1804101, + value = 1804101F, }, new { timestamp = "2017-01-01T12:00:00Z", - value = 1804674, + value = 1804674F, }, new { timestamp = "2017-01-01T12:05:00Z", - value = 1804714, + value = 1804714F, }, new { timestamp = "2017-01-01T12:10:00Z", - value = 1804730, + value = 1804730F, }, new { timestamp = "2017-01-01T12:15:00Z", - value = 1804816, + value = 1804816F, }, new { timestamp = "2017-01-01T12:20:00Z", - value = 1803996, + value = 1803996F, }, new { timestamp = "2017-01-01T12:25:00Z", - value = 1803998, + value = 1803998F, }, new { timestamp = "2017-01-01T12:30:00Z", - value = 1804015, + value = 1804015F, }, new { timestamp = "2017-01-01T12:35:00Z", - value = 1804047, + value = 1804047F, }, new { timestamp = "2017-01-01T12:40:00Z", - value = 1804050, + value = 1804050F, }, new { timestamp = "2017-01-01T12:45:00Z", - value = 1804218, + value = 1804218F, }, new { timestamp = "2017-01-01T12:50:00Z", - value = 1804217, + value = 1804217F, }, new { timestamp = "2017-01-01T12:55:00Z", - value = 1804217, + value = 1804217F, }, new { timestamp = "2017-01-01T13:00:00Z", - value = 1804205, + value = 1804205F, }, new { timestamp = "2017-01-01T13:05:00Z", - value = 1804728, + value = 1804728F, }, new { timestamp = "2017-01-01T13:10:00Z", - value = 1804748, + value = 1804748F, }, new { timestamp = "2017-01-01T13:15:00Z", - value = 1805232, + value = 1805232F, }, new { timestamp = "2017-01-01T13:20:00Z", - value = 1814121, + value = 1814121F, }, new { timestamp = "2017-01-01T13:25:00Z", - value = 1806789, + value = 1806789F, }, new { timestamp = "2017-01-01T13:30:00Z", - value = 1806119, + value = 1806119F, }, new { timestamp = "2017-01-01T13:35:00Z", - value = 1806329, + value = 1806329F, }, new { timestamp = "2017-01-01T13:40:00Z", - value = 1806454, + value = 1806454F, }, new { timestamp = "2017-01-01T13:45:00Z", - value = 1806852, + value = 1806852F, }, new { timestamp = "2017-01-01T13:50:00Z", - value = 1807347, + value = 1807347F, }, new { timestamp = "2017-01-01T13:55:00Z", - value = 1812144, + value = 1812144F, }, new { timestamp = "2017-01-01T14:00:00Z", - value = 1807418, + value = 1807418F, }, new { timestamp = "2017-01-01T14:05:00Z", - value = 1807418, + value = 1807418F, }, new { timestamp = "2017-01-01T14:10:00Z", - value = 1807432, + value = 1807432F, }, new { timestamp = "2017-01-01T14:15:00Z", - value = 1808540, + value = 1808540F, }, new { timestamp = "2017-01-01T14:20:00Z", - value = 1808541, + value = 1808541F, }, new { timestamp = "2017-01-01T14:25:00Z", - value = 1807831, + value = 1807831F, }, new { timestamp = "2017-01-01T14:30:00Z", - value = 1807852, + value = 1807852F, }, new { timestamp = "2017-01-01T14:35:00Z", - value = 1807811, + value = 1807811F, }, new { timestamp = "2017-01-01T14:40:00Z", - value = 2214285, + value = 2214285F, }, new { timestamp = "2017-01-01T14:45:00Z", - value = 2215019, + value = 2215019F, }, new { timestamp = "2017-01-01T14:50:00Z", - value = 2215329, + value = 2215329F, }, new { timestamp = "2017-01-01T14:55:00Z", - value = 2215097, + value = 2215097F, }, new { timestamp = "2017-01-01T15:00:00Z", - value = 2215129, + value = 2215129F, }, new { timestamp = "2017-01-01T15:05:00Z", - value = 2215120, + value = 2215120F, }, new { timestamp = "2017-01-01T15:10:00Z", - value = 2217056, + value = 2217056F, }, new { timestamp = "2017-01-01T15:15:00Z", - value = 2217056, + value = 2217056F, }, new { timestamp = "2017-01-01T15:20:00Z", - value = 2222126, + value = 2222126F, }, new { timestamp = "2017-01-01T15:25:00Z", - value = 2226472, + value = 2226472F, }, new { timestamp = "2017-01-01T15:30:00Z", - value = 2226722, + value = 2226722F, }, new { timestamp = "2017-01-01T15:35:00Z", - value = 2226729, + value = 2226729F, }, new { timestamp = "2017-01-01T15:40:00Z", - value = 2226735, + value = 2226735F, }, new { timestamp = "2017-01-01T15:45:00Z", - value = 2226735, + value = 2226735F, }, new { timestamp = "2017-01-01T15:50:00Z", - value = 2226735, + value = 2226735F, }, new { timestamp = "2017-01-01T15:55:00Z", - value = 2226952, + value = 2226952F, }, new { timestamp = "2017-01-01T16:00:00Z", - value = 2226962, + value = 2226962F, }, new { timestamp = "2017-01-01T16:05:00Z", - value = 2649337, + value = 2649337F, }, new { timestamp = "2017-01-01T16:10:00Z", - value = 2092796, + value = 2092796F, }, new { timestamp = "2017-01-01T16:15:00Z", - value = 2092839, + value = 2092839F, }, new { timestamp = "2017-01-01T16:20:00Z", - value = 2092940, + value = 2092940F, }, new { timestamp = "2017-01-01T16:25:00Z", - value = 2092940, + value = 2092940F, }, new { timestamp = "2017-01-01T16:30:00Z", - value = 2092965, + value = 2092965F, }, new { timestamp = "2017-01-01T16:35:00Z", - value = 2092979, + value = 2092979F, }, new { timestamp = "2017-01-01T16:40:00Z", - value = 2095588, + value = 2095588F, }, new { timestamp = "2017-01-01T16:45:00Z", - value = 2099586, + value = 2099586F, }, new { timestamp = "2017-01-01T16:50:00Z", - value = 2102981, + value = 2102981F, }, new { timestamp = "2017-01-01T16:55:00Z", - value = 2108053, + value = 2108053F, }, new { timestamp = "2017-01-01T17:00:00Z", - value = 2107907, + value = 2107907F, }, new { timestamp = "2017-01-01T17:05:00Z", - value = 2108241, + value = 2108241F, }, new { timestamp = "2017-01-01T17:10:00Z", - value = 2100321, + value = 2100321F, }, new { timestamp = "2017-01-01T17:15:00Z", - value = 2100448, + value = 2100448F, }, new { timestamp = "2017-01-01T17:20:00Z", - value = 2100483, + value = 2100483F, }, new { timestamp = "2017-01-01T17:25:00Z", - value = 2103042, + value = 2103042F, }, new { timestamp = "2017-01-01T17:30:00Z", - value = 2103037, + value = 2103037F, }, new { timestamp = "2017-01-01T17:35:00Z", - value = 2103040, + value = 2103040F, }, new { timestamp = "2017-01-01T17:40:00Z", - value = 2103054, + value = 2103054F, }, new { timestamp = "2017-01-01T17:45:00Z", - value = 2103058, + value = 2103058F, }, new { timestamp = "2017-01-01T17:50:00Z", - value = 1830757, + value = 1830757F, }, new { timestamp = "2017-01-01T17:55:00Z", - value = 1830855, + value = 1830855F, }, new { timestamp = "2017-01-01T18:00:00Z", - value = 1831495, + value = 1831495F, }, new { timestamp = "2017-01-01T18:05:00Z", - value = 1831463, + value = 1831463F, }, new { timestamp = "2017-01-01T18:10:00Z", - value = 1831963, + value = 1831963F, }, new { timestamp = "2017-01-01T18:15:00Z", - value = 1832046, + value = 1832046F, }, new { timestamp = "2017-01-01T18:20:00Z", - value = 1832070, + value = 1832070F, }, new { timestamp = "2017-01-01T18:25:00Z", - value = 1835511, + value = 1835511F, }, new { timestamp = "2017-01-01T18:30:00Z", - value = 1835265, + value = 1835265F, }, new { timestamp = "2017-01-01T18:35:00Z", - value = 1835481, + value = 1835481F, }, new { timestamp = "2017-01-01T18:40:00Z", - value = 1835578, + value = 1835578F, }, new { timestamp = "2017-01-01T18:45:00Z", - value = 1835611, + value = 1835611F, }, new { timestamp = "2017-01-01T18:50:00Z", - value = 1836314, + value = 1836314F, }, new { timestamp = "2017-01-01T18:55:00Z", - value = 1836369, + value = 1836369F, }, new { timestamp = "2017-01-01T19:00:00Z", - value = 1837280, + value = 1837280F, }, new { timestamp = "2017-01-01T19:05:00Z", - value = 1842939, + value = 1842939F, }, new { timestamp = "2017-01-01T19:10:00Z", - value = 1843126, + value = 1843126F, }, new { timestamp = "2017-01-01T19:15:00Z", - value = 1845840, + value = 1845840F, }, new { timestamp = "2017-01-01T19:20:00Z", - value = 1842444, + value = 1842444F, }, new { timestamp = "2017-01-01T19:25:00Z", - value = 1839891, + value = 1839891F, }, new { timestamp = "2017-01-01T19:30:00Z", - value = 1839875, + value = 1839875F, }, new { timestamp = "2017-01-01T19:35:00Z", - value = 1839870, + value = 1839870F, }, new { timestamp = "2017-01-01T19:40:00Z", - value = 1840090, + value = 1840090F, }, new { timestamp = "2017-01-01T19:45:00Z", - value = 1840479, + value = 1840479F, }, new { timestamp = "2017-01-01T19:50:00Z", - value = 1840479, + value = 1840479F, }, new { timestamp = "2017-01-01T19:55:00Z", - value = 1840482, + value = 1840482F, }, new { timestamp = "2017-01-01T20:00:00Z", - value = 1841522, + value = 1841522F, }, new { timestamp = "2017-01-01T20:05:00Z", - value = 1841836, + value = 1841836F, }, new { timestamp = "2017-01-01T20:10:00Z", - value = 1842377, + value = 1842377F, }, new { timestamp = "2017-01-01T20:15:00Z", - value = 1842388, + value = 1842388F, }, new { timestamp = "2017-01-01T20:20:00Z", - value = 1842489, + value = 1842489F, }, new { timestamp = "2017-01-01T20:25:00Z", - value = 1842489, + value = 1842489F, }, new { timestamp = "2017-01-01T20:30:00Z", - value = 1842489, + value = 1842489F, }, new { timestamp = "2017-01-01T20:35:00Z", - value = 1842496, + value = 1842496F, }, new { timestamp = "2017-01-01T20:40:00Z", - value = 1842689, + value = 1842689F, }, new { timestamp = "2017-01-01T20:45:00Z", - value = 1843117, + value = 1843117F, }, new { timestamp = "2017-01-01T20:50:00Z", - value = 1843116, + value = 1843116F, }, new { timestamp = "2017-01-01T20:55:00Z", - value = 1843227, + value = 1843227F, }, new { timestamp = "2017-01-01T21:00:00Z", - value = 1843138, + value = 1843138F, }, new { timestamp = "2017-01-01T21:05:00Z", - value = 1843141, + value = 1843141F, }, new { timestamp = "2017-01-01T21:10:00Z", - value = 1843310, + value = 1843310F, }, new { timestamp = "2017-01-01T21:15:00Z", - value = 1843310, + value = 1843310F, }, new { timestamp = "2017-01-01T21:20:00Z", - value = 1843507, + value = 1843507F, }, new { timestamp = "2017-01-01T21:25:00Z", - value = 1843953, + value = 1843953F, }, new { timestamp = "2017-01-01T21:30:00Z", - value = 1844778, + value = 1844778F, }, new { timestamp = "2017-01-01T21:35:00Z", - value = 1843918, + value = 1843918F, }, new { timestamp = "2017-01-01T21:40:00Z", - value = 1882692, + value = 1882692F, }, new { timestamp = "2017-01-01T21:45:00Z", - value = 1974888, + value = 1974888F, }, new { timestamp = "2017-01-01T21:50:00Z", - value = 2157136, + value = 2157136F, }, new { timestamp = "2017-01-01T21:55:00Z", - value = 2154987, + value = 2154987F, }, new { timestamp = "2017-01-01T22:00:00Z", - value = 2155664, + value = 2155664F, }, new { timestamp = "2017-01-01T22:05:00Z", - value = 2155660, + value = 2155660F, }, new { timestamp = "2017-01-01T22:10:00Z", - value = 2155824, + value = 2155824F, }, new { timestamp = "2017-01-01T22:15:00Z", - value = 2155824, + value = 2155824F, }, new { timestamp = "2017-01-01T22:20:00Z", - value = 2156329, + value = 2156329F, }, new { timestamp = "2017-01-01T22:25:00Z", - value = 2156479, + value = 2156479F, }, new { timestamp = "2017-01-01T22:30:00Z", - value = 2165269, + value = 2165269F, }, new { timestamp = "2017-01-01T22:35:00Z", - value = 2165433, + value = 2165433F, }, new { timestamp = "2017-01-01T22:40:00Z", - value = 2165739, + value = 2165739F, }, new { timestamp = "2017-01-01T22:45:00Z", - value = 2165931, + value = 2165931F, }, new { timestamp = "2017-01-01T22:50:00Z", - value = 2165928, + value = 2165928F, }, new { timestamp = "2017-01-01T22:55:00Z", - value = 2165989, + value = 2165989F, }, new { timestamp = "2017-01-01T23:00:00Z", - value = 2228961, + value = 2228961F, }, new { timestamp = "2017-01-01T23:05:00Z", - value = 2228961, + value = 2228961F, }, new { timestamp = "2017-01-01T23:10:00Z", - value = 2228961, + value = 2228961F, }, new { timestamp = "2017-01-01T23:15:00Z", - value = 2485802, + value = 2485802F, }, new { timestamp = "2017-01-01T23:20:00Z", - value = 2485802, + value = 2485802F, }, new { timestamp = "2017-01-01T23:25:00Z", - value = 2486021, + value = 2486021F, }, new { timestamp = "2017-01-01T23:30:00Z", - value = 2485293, + value = 2485293F, }, new { timestamp = "2017-01-01T23:35:00Z", - value = 2485293, + value = 2485293F, }, new { timestamp = "2017-01-01T23:40:00Z", - value = 2485324, + value = 2485324F, }, new { timestamp = "2017-01-01T23:45:00Z", - value = 2489142, + value = 2489142F, }, new { timestamp = "2017-01-01T23:50:00Z", - value = 2526312, + value = 2526312F, }, new { timestamp = "2017-01-01T23:55:00Z", - value = 2526313, + value = 2526313F, }, new { timestamp = "2017-01-02T00:00:00Z", - value = 2526314, + value = 2526314F, }, new { timestamp = "2017-01-02T00:05:00Z", - value = 2526324, + value = 2526324F, }, new { timestamp = "2017-01-02T00:10:00Z", - value = 2526325, + value = 2526325F, }, new { timestamp = "2017-01-02T00:15:00Z", - value = 2526205, + value = 2526205F, }, new { timestamp = "2017-01-02T00:20:00Z", - value = 2526226, + value = 2526226F, }, new { timestamp = "2017-01-02T00:25:00Z", - value = 2526475, + value = 2526475F, }, new { timestamp = "2017-01-02T00:30:00Z", - value = 2526471, + value = 2526471F, }, new { timestamp = "2017-01-02T00:35:00Z", - value = 2526471, + value = 2526471F, }, new { timestamp = "2017-01-02T00:40:00Z", - value = 2526534, + value = 2526534F, }, new { timestamp = "2017-01-02T00:45:00Z", - value = 2526646, + value = 2526646F, }, new { timestamp = "2017-01-02T00:50:00Z", - value = 2526646, + value = 2526646F, }, new { timestamp = "2017-01-02T00:55:00Z", - value = 2526648, + value = 2526648F, }, new { timestamp = "2017-01-02T01:00:00Z", - value = 2526658, + value = 2526658F, }, new { timestamp = "2017-01-02T01:05:00Z", - value = 2526771, + value = 2526771F, }, new { timestamp = "2017-01-02T01:10:00Z", - value = 2526773, + value = 2526773F, }, new { timestamp = "2017-01-02T01:15:00Z", - value = 2526793, + value = 2526793F, }, new { timestamp = "2017-01-02T01:20:00Z", - value = 2527010, + value = 2527010F, }, new { timestamp = "2017-01-02T01:25:00Z", - value = 2527031, + value = 2527031F, }, new { timestamp = "2017-01-02T01:30:00Z", - value = 3178096, + value = 3178096F, }, new { timestamp = "2017-01-02T01:35:00Z", - value = 3196305, + value = 3196305F, }, new { timestamp = "2017-01-02T01:40:00Z", - value = 3196202, + value = 3196202F, }, new { timestamp = "2017-01-02T01:45:00Z", - value = 3196202, + value = 3196202F, }, new { timestamp = "2017-01-02T01:50:00Z", - value = 3196205, + value = 3196205F, }, new { timestamp = "2017-01-02T01:55:00Z", - value = 3229232, + value = 3229232F, }, new { timestamp = "2017-01-02T02:00:00Z", - value = 3230463, + value = 3230463F, }, new { timestamp = "2017-01-02T02:05:00Z", - value = 3230468, + value = 3230468F, }, new { timestamp = "2017-01-02T02:10:00Z", - value = 3230468, + value = 3230468F, }, new { timestamp = "2017-01-02T02:15:00Z", - value = 3230468, + value = 3230468F, }, new { timestamp = "2017-01-02T02:20:00Z", - value = 3230470, + value = 3230470F, }, new { timestamp = "2017-01-02T02:25:00Z", - value = 3230467, + value = 3230467F, }, new { timestamp = "2017-01-02T02:30:00Z", - value = 3230506, + value = 3230506F, }, new { timestamp = "2017-01-02T02:35:00Z", - value = 3231536, + value = 3231536F, }, new { timestamp = "2017-01-02T02:40:00Z", - value = 3230723, + value = 3230723F, }, new { timestamp = "2017-01-02T02:45:00Z", - value = 3230727, + value = 3230727F, }, new { timestamp = "2017-01-02T02:50:00Z", - value = 3230727, + value = 3230727F, }, new { timestamp = "2017-01-02T02:55:00Z", - value = 3230727, + value = 3230727F, }, new { timestamp = "2017-01-02T03:00:00Z", - value = 3231880, + value = 3231880F, }, new { timestamp = "2017-01-02T03:05:00Z", - value = 3232283, + value = 3232283F, }, new { timestamp = "2017-01-02T03:10:00Z", - value = 3232283, + value = 3232283F, }, new { timestamp = "2017-01-02T03:15:00Z", - value = 3232283, + value = 3232283F, }, new { timestamp = "2017-01-02T03:20:00Z", - value = 3232325, + value = 3232325F, }, new { timestamp = "2017-01-02T03:25:00Z", - value = 3232323, + value = 3232323F, }, new { timestamp = "2017-01-02T03:30:00Z", - value = 3232327, + value = 3232327F, }, new { timestamp = "2017-01-02T03:35:00Z", - value = 3232340, + value = 3232340F, }, new { timestamp = "2017-01-02T03:40:00Z", - value = 3232713, + value = 3232713F, }, new { timestamp = "2017-01-02T03:45:00Z", - value = 3232729, + value = 3232729F, }, new { timestamp = "2017-01-02T03:50:00Z", - value = 3232756, + value = 3232756F, }, new { timestamp = "2017-01-02T03:55:00Z", - value = 3233500, + value = 3233500F, }, new { timestamp = "2017-01-02T04:00:00Z", - value = 3233500, + value = 3233500F, }, new { timestamp = "2017-01-02T04:05:00Z", - value = 3233500, + value = 3233500F, } }, granularity = "minutely", customInterval = 5, stableTrendWindow = 10, - threshold = 0.99, + threshold = 0.99F, period = 0, }); Response response = await client.DetectUnivariateChangePointAsync(content); @@ -4932,1293 +4932,1293 @@ using RequestContent content = RequestContent.Create(new new { timestamp = "2017-01-01T06:45:00Z", - value = 1639196, + value = 1639196F, }, new { timestamp = "2017-01-01T06:50:00Z", - value = 1639290, + value = 1639290F, }, new { timestamp = "2017-01-01T06:55:00Z", - value = 1667293, + value = 1667293F, }, new { timestamp = "2017-01-01T07:00:00Z", - value = 1703130, + value = 1703130F, }, new { timestamp = "2017-01-01T07:05:00Z", - value = 1650912, + value = 1650912F, }, new { timestamp = "2017-01-01T07:10:00Z", - value = 1653596, + value = 1653596F, }, new { timestamp = "2017-01-01T07:15:00Z", - value = 1653793, + value = 1653793F, }, new { timestamp = "2017-01-01T07:20:00Z", - value = 1653795, + value = 1653795F, }, new { timestamp = "2017-01-01T07:25:00Z", - value = 1663471, + value = 1663471F, }, new { timestamp = "2017-01-01T07:30:00Z", - value = 1662358, + value = 1662358F, }, new { timestamp = "2017-01-01T07:35:00Z", - value = 1664320, + value = 1664320F, }, new { timestamp = "2017-01-01T07:40:00Z", - value = 1664942, + value = 1664942F, }, new { timestamp = "2017-01-01T07:45:00Z", - value = 1664966, + value = 1664966F, }, new { timestamp = "2017-01-01T07:50:00Z", - value = 1724271, + value = 1724271F, }, new { timestamp = "2017-01-01T07:55:00Z", - value = 1678720, + value = 1678720F, }, new { timestamp = "2017-01-01T08:00:00Z", - value = 1672536, + value = 1672536F, }, new { timestamp = "2017-01-01T08:05:00Z", - value = 1672544, + value = 1672544F, }, new { timestamp = "2017-01-01T08:10:00Z", - value = 1672364, + value = 1672364F, }, new { timestamp = "2017-01-01T08:15:00Z", - value = 1672912, + value = 1672912F, }, new { timestamp = "2017-01-01T08:20:00Z", - value = 1672736, + value = 1672736F, }, new { timestamp = "2017-01-01T08:25:00Z", - value = 1672725, + value = 1672725F, }, new { timestamp = "2017-01-01T08:30:00Z", - value = 1673247, + value = 1673247F, }, new { timestamp = "2017-01-01T08:35:00Z", - value = 1673109, + value = 1673109F, }, new { timestamp = "2017-01-01T08:40:00Z", - value = 1690088, + value = 1690088F, }, new { timestamp = "2017-01-01T08:45:00Z", - value = 1703865, + value = 1703865F, }, new { timestamp = "2017-01-01T08:50:00Z", - value = 1703865, + value = 1703865F, }, new { timestamp = "2017-01-01T08:55:00Z", - value = 1786581, + value = 1786581F, }, new { timestamp = "2017-01-01T09:00:00Z", - value = 1800945, + value = 1800945F, }, new { timestamp = "2017-01-01T09:05:00Z", - value = 1800957, + value = 1800957F, }, new { timestamp = "2017-01-01T09:10:00Z", - value = 1801191, + value = 1801191F, }, new { timestamp = "2017-01-01T09:15:00Z", - value = 1801412, + value = 1801412F, }, new { timestamp = "2017-01-01T09:20:00Z", - value = 1801621, + value = 1801621F, }, new { timestamp = "2017-01-01T09:25:00Z", - value = 1801621, + value = 1801621F, }, new { timestamp = "2017-01-01T09:30:00Z", - value = 1801654, + value = 1801654F, }, new { timestamp = "2017-01-01T09:35:00Z", - value = 1802105, + value = 1802105F, }, new { timestamp = "2017-01-01T09:40:00Z", - value = 1801800, + value = 1801800F, }, new { timestamp = "2017-01-01T09:45:00Z", - value = 1803040, + value = 1803040F, }, new { timestamp = "2017-01-01T09:50:00Z", - value = 1803672, + value = 1803672F, }, new { timestamp = "2017-01-01T09:55:00Z", - value = 1803535, + value = 1803535F, }, new { timestamp = "2017-01-01T10:00:00Z", - value = 1803541, + value = 1803541F, }, new { timestamp = "2017-01-01T10:05:00Z", - value = 1803545, + value = 1803545F, }, new { timestamp = "2017-01-01T10:10:00Z", - value = 1803599, + value = 1803599F, }, new { timestamp = "2017-01-01T10:15:00Z", - value = 1803616, + value = 1803616F, }, new { timestamp = "2017-01-01T10:20:00Z", - value = 1803619, + value = 1803619F, }, new { timestamp = "2017-01-01T10:25:00Z", - value = 1809942, + value = 1809942F, }, new { timestamp = "2017-01-01T10:30:00Z", - value = 1802720, + value = 1802720F, }, new { timestamp = "2017-01-01T10:35:00Z", - value = 1802720, + value = 1802720F, }, new { timestamp = "2017-01-01T10:40:00Z", - value = 1802888, + value = 1802888F, }, new { timestamp = "2017-01-01T10:45:00Z", - value = 1809574, + value = 1809574F, }, new { timestamp = "2017-01-01T10:50:00Z", - value = 1803896, + value = 1803896F, }, new { timestamp = "2017-01-01T10:55:00Z", - value = 1803850, + value = 1803850F, }, new { timestamp = "2017-01-01T11:00:00Z", - value = 1803854, + value = 1803854F, }, new { timestamp = "2017-01-01T11:05:00Z", - value = 1803854, + value = 1803854F, }, new { timestamp = "2017-01-01T11:10:00Z", - value = 1803797, + value = 1803797F, }, new { timestamp = "2017-01-01T11:15:00Z", - value = 1803921, + value = 1803921F, }, new { timestamp = "2017-01-01T11:20:00Z", - value = 1803933, + value = 1803933F, }, new { timestamp = "2017-01-01T11:25:00Z", - value = 1804040, + value = 1804040F, }, new { timestamp = "2017-01-01T11:30:00Z", - value = 1804044, + value = 1804044F, }, new { timestamp = "2017-01-01T11:35:00Z", - value = 1804070, + value = 1804070F, }, new { timestamp = "2017-01-01T11:40:00Z", - value = 1804070, + value = 1804070F, }, new { timestamp = "2017-01-01T11:45:00Z", - value = 1804068, + value = 1804068F, }, new { timestamp = "2017-01-01T11:50:00Z", - value = 1804073, + value = 1804073F, }, new { timestamp = "2017-01-01T11:55:00Z", - value = 1804101, + value = 1804101F, }, new { timestamp = "2017-01-01T12:00:00Z", - value = 1804674, + value = 1804674F, }, new { timestamp = "2017-01-01T12:05:00Z", - value = 1804714, + value = 1804714F, }, new { timestamp = "2017-01-01T12:10:00Z", - value = 1804730, + value = 1804730F, }, new { timestamp = "2017-01-01T12:15:00Z", - value = 1804816, + value = 1804816F, }, new { timestamp = "2017-01-01T12:20:00Z", - value = 1803996, + value = 1803996F, }, new { timestamp = "2017-01-01T12:25:00Z", - value = 1803998, + value = 1803998F, }, new { timestamp = "2017-01-01T12:30:00Z", - value = 1804015, + value = 1804015F, }, new { timestamp = "2017-01-01T12:35:00Z", - value = 1804047, + value = 1804047F, }, new { timestamp = "2017-01-01T12:40:00Z", - value = 1804050, + value = 1804050F, }, new { timestamp = "2017-01-01T12:45:00Z", - value = 1804218, + value = 1804218F, }, new { timestamp = "2017-01-01T12:50:00Z", - value = 1804217, + value = 1804217F, }, new { timestamp = "2017-01-01T12:55:00Z", - value = 1804217, + value = 1804217F, }, new { timestamp = "2017-01-01T13:00:00Z", - value = 1804205, + value = 1804205F, }, new { timestamp = "2017-01-01T13:05:00Z", - value = 1804728, + value = 1804728F, }, new { timestamp = "2017-01-01T13:10:00Z", - value = 1804748, + value = 1804748F, }, new { timestamp = "2017-01-01T13:15:00Z", - value = 1805232, + value = 1805232F, }, new { timestamp = "2017-01-01T13:20:00Z", - value = 1814121, + value = 1814121F, }, new { timestamp = "2017-01-01T13:25:00Z", - value = 1806789, + value = 1806789F, }, new { timestamp = "2017-01-01T13:30:00Z", - value = 1806119, + value = 1806119F, }, new { timestamp = "2017-01-01T13:35:00Z", - value = 1806329, + value = 1806329F, }, new { timestamp = "2017-01-01T13:40:00Z", - value = 1806454, + value = 1806454F, }, new { timestamp = "2017-01-01T13:45:00Z", - value = 1806852, + value = 1806852F, }, new { timestamp = "2017-01-01T13:50:00Z", - value = 1807347, + value = 1807347F, }, new { timestamp = "2017-01-01T13:55:00Z", - value = 1812144, + value = 1812144F, }, new { timestamp = "2017-01-01T14:00:00Z", - value = 1807418, + value = 1807418F, }, new { timestamp = "2017-01-01T14:05:00Z", - value = 1807418, + value = 1807418F, }, new { timestamp = "2017-01-01T14:10:00Z", - value = 1807432, + value = 1807432F, }, new { timestamp = "2017-01-01T14:15:00Z", - value = 1808540, + value = 1808540F, }, new { timestamp = "2017-01-01T14:20:00Z", - value = 1808541, + value = 1808541F, }, new { timestamp = "2017-01-01T14:25:00Z", - value = 1807831, + value = 1807831F, }, new { timestamp = "2017-01-01T14:30:00Z", - value = 1807852, + value = 1807852F, }, new { timestamp = "2017-01-01T14:35:00Z", - value = 1807811, + value = 1807811F, }, new { timestamp = "2017-01-01T14:40:00Z", - value = 2214285, + value = 2214285F, }, new { timestamp = "2017-01-01T14:45:00Z", - value = 2215019, + value = 2215019F, }, new { timestamp = "2017-01-01T14:50:00Z", - value = 2215329, + value = 2215329F, }, new { timestamp = "2017-01-01T14:55:00Z", - value = 2215097, + value = 2215097F, }, new { timestamp = "2017-01-01T15:00:00Z", - value = 2215129, + value = 2215129F, }, new { timestamp = "2017-01-01T15:05:00Z", - value = 2215120, + value = 2215120F, }, new { timestamp = "2017-01-01T15:10:00Z", - value = 2217056, + value = 2217056F, }, new { timestamp = "2017-01-01T15:15:00Z", - value = 2217056, + value = 2217056F, }, new { timestamp = "2017-01-01T15:20:00Z", - value = 2222126, + value = 2222126F, }, new { timestamp = "2017-01-01T15:25:00Z", - value = 2226472, + value = 2226472F, }, new { timestamp = "2017-01-01T15:30:00Z", - value = 2226722, + value = 2226722F, }, new { timestamp = "2017-01-01T15:35:00Z", - value = 2226729, + value = 2226729F, }, new { timestamp = "2017-01-01T15:40:00Z", - value = 2226735, + value = 2226735F, }, new { timestamp = "2017-01-01T15:45:00Z", - value = 2226735, + value = 2226735F, }, new { timestamp = "2017-01-01T15:50:00Z", - value = 2226735, + value = 2226735F, }, new { timestamp = "2017-01-01T15:55:00Z", - value = 2226952, + value = 2226952F, }, new { timestamp = "2017-01-01T16:00:00Z", - value = 2226962, + value = 2226962F, }, new { timestamp = "2017-01-01T16:05:00Z", - value = 2649337, + value = 2649337F, }, new { timestamp = "2017-01-01T16:10:00Z", - value = 2092796, + value = 2092796F, }, new { timestamp = "2017-01-01T16:15:00Z", - value = 2092839, + value = 2092839F, }, new { timestamp = "2017-01-01T16:20:00Z", - value = 2092940, + value = 2092940F, }, new { timestamp = "2017-01-01T16:25:00Z", - value = 2092940, + value = 2092940F, }, new { timestamp = "2017-01-01T16:30:00Z", - value = 2092965, + value = 2092965F, }, new { timestamp = "2017-01-01T16:35:00Z", - value = 2092979, + value = 2092979F, }, new { timestamp = "2017-01-01T16:40:00Z", - value = 2095588, + value = 2095588F, }, new { timestamp = "2017-01-01T16:45:00Z", - value = 2099586, + value = 2099586F, }, new { timestamp = "2017-01-01T16:50:00Z", - value = 2102981, + value = 2102981F, }, new { timestamp = "2017-01-01T16:55:00Z", - value = 2108053, + value = 2108053F, }, new { timestamp = "2017-01-01T17:00:00Z", - value = 2107907, + value = 2107907F, }, new { timestamp = "2017-01-01T17:05:00Z", - value = 2108241, + value = 2108241F, }, new { timestamp = "2017-01-01T17:10:00Z", - value = 2100321, + value = 2100321F, }, new { timestamp = "2017-01-01T17:15:00Z", - value = 2100448, + value = 2100448F, }, new { timestamp = "2017-01-01T17:20:00Z", - value = 2100483, + value = 2100483F, }, new { timestamp = "2017-01-01T17:25:00Z", - value = 2103042, + value = 2103042F, }, new { timestamp = "2017-01-01T17:30:00Z", - value = 2103037, + value = 2103037F, }, new { timestamp = "2017-01-01T17:35:00Z", - value = 2103040, + value = 2103040F, }, new { timestamp = "2017-01-01T17:40:00Z", - value = 2103054, + value = 2103054F, }, new { timestamp = "2017-01-01T17:45:00Z", - value = 2103058, + value = 2103058F, }, new { timestamp = "2017-01-01T17:50:00Z", - value = 1830757, + value = 1830757F, }, new { timestamp = "2017-01-01T17:55:00Z", - value = 1830855, + value = 1830855F, }, new { timestamp = "2017-01-01T18:00:00Z", - value = 1831495, + value = 1831495F, }, new { timestamp = "2017-01-01T18:05:00Z", - value = 1831463, + value = 1831463F, }, new { timestamp = "2017-01-01T18:10:00Z", - value = 1831963, + value = 1831963F, }, new { timestamp = "2017-01-01T18:15:00Z", - value = 1832046, + value = 1832046F, }, new { timestamp = "2017-01-01T18:20:00Z", - value = 1832070, + value = 1832070F, }, new { timestamp = "2017-01-01T18:25:00Z", - value = 1835511, + value = 1835511F, }, new { timestamp = "2017-01-01T18:30:00Z", - value = 1835265, + value = 1835265F, }, new { timestamp = "2017-01-01T18:35:00Z", - value = 1835481, + value = 1835481F, }, new { timestamp = "2017-01-01T18:40:00Z", - value = 1835578, + value = 1835578F, }, new { timestamp = "2017-01-01T18:45:00Z", - value = 1835611, + value = 1835611F, }, new { timestamp = "2017-01-01T18:50:00Z", - value = 1836314, + value = 1836314F, }, new { timestamp = "2017-01-01T18:55:00Z", - value = 1836369, + value = 1836369F, }, new { timestamp = "2017-01-01T19:00:00Z", - value = 1837280, + value = 1837280F, }, new { timestamp = "2017-01-01T19:05:00Z", - value = 1842939, + value = 1842939F, }, new { timestamp = "2017-01-01T19:10:00Z", - value = 1843126, + value = 1843126F, }, new { timestamp = "2017-01-01T19:15:00Z", - value = 1845840, + value = 1845840F, }, new { timestamp = "2017-01-01T19:20:00Z", - value = 1842444, + value = 1842444F, }, new { timestamp = "2017-01-01T19:25:00Z", - value = 1839891, + value = 1839891F, }, new { timestamp = "2017-01-01T19:30:00Z", - value = 1839875, + value = 1839875F, }, new { timestamp = "2017-01-01T19:35:00Z", - value = 1839870, + value = 1839870F, }, new { timestamp = "2017-01-01T19:40:00Z", - value = 1840090, + value = 1840090F, }, new { timestamp = "2017-01-01T19:45:00Z", - value = 1840479, + value = 1840479F, }, new { timestamp = "2017-01-01T19:50:00Z", - value = 1840479, + value = 1840479F, }, new { timestamp = "2017-01-01T19:55:00Z", - value = 1840482, + value = 1840482F, }, new { timestamp = "2017-01-01T20:00:00Z", - value = 1841522, + value = 1841522F, }, new { timestamp = "2017-01-01T20:05:00Z", - value = 1841836, + value = 1841836F, }, new { timestamp = "2017-01-01T20:10:00Z", - value = 1842377, + value = 1842377F, }, new { timestamp = "2017-01-01T20:15:00Z", - value = 1842388, + value = 1842388F, }, new { timestamp = "2017-01-01T20:20:00Z", - value = 1842489, + value = 1842489F, }, new { timestamp = "2017-01-01T20:25:00Z", - value = 1842489, + value = 1842489F, }, new { timestamp = "2017-01-01T20:30:00Z", - value = 1842489, + value = 1842489F, }, new { timestamp = "2017-01-01T20:35:00Z", - value = 1842496, + value = 1842496F, }, new { timestamp = "2017-01-01T20:40:00Z", - value = 1842689, + value = 1842689F, }, new { timestamp = "2017-01-01T20:45:00Z", - value = 1843117, + value = 1843117F, }, new { timestamp = "2017-01-01T20:50:00Z", - value = 1843116, + value = 1843116F, }, new { timestamp = "2017-01-01T20:55:00Z", - value = 1843227, + value = 1843227F, }, new { timestamp = "2017-01-01T21:00:00Z", - value = 1843138, + value = 1843138F, }, new { timestamp = "2017-01-01T21:05:00Z", - value = 1843141, + value = 1843141F, }, new { timestamp = "2017-01-01T21:10:00Z", - value = 1843310, + value = 1843310F, }, new { timestamp = "2017-01-01T21:15:00Z", - value = 1843310, + value = 1843310F, }, new { timestamp = "2017-01-01T21:20:00Z", - value = 1843507, + value = 1843507F, }, new { timestamp = "2017-01-01T21:25:00Z", - value = 1843953, + value = 1843953F, }, new { timestamp = "2017-01-01T21:30:00Z", - value = 1844778, + value = 1844778F, }, new { timestamp = "2017-01-01T21:35:00Z", - value = 1843918, + value = 1843918F, }, new { timestamp = "2017-01-01T21:40:00Z", - value = 1882692, + value = 1882692F, }, new { timestamp = "2017-01-01T21:45:00Z", - value = 1974888, + value = 1974888F, }, new { timestamp = "2017-01-01T21:50:00Z", - value = 2157136, + value = 2157136F, }, new { timestamp = "2017-01-01T21:55:00Z", - value = 2154987, + value = 2154987F, }, new { timestamp = "2017-01-01T22:00:00Z", - value = 2155664, + value = 2155664F, }, new { timestamp = "2017-01-01T22:05:00Z", - value = 2155660, + value = 2155660F, }, new { timestamp = "2017-01-01T22:10:00Z", - value = 2155824, + value = 2155824F, }, new { timestamp = "2017-01-01T22:15:00Z", - value = 2155824, + value = 2155824F, }, new { timestamp = "2017-01-01T22:20:00Z", - value = 2156329, + value = 2156329F, }, new { timestamp = "2017-01-01T22:25:00Z", - value = 2156479, + value = 2156479F, }, new { timestamp = "2017-01-01T22:30:00Z", - value = 2165269, + value = 2165269F, }, new { timestamp = "2017-01-01T22:35:00Z", - value = 2165433, + value = 2165433F, }, new { timestamp = "2017-01-01T22:40:00Z", - value = 2165739, + value = 2165739F, }, new { timestamp = "2017-01-01T22:45:00Z", - value = 2165931, + value = 2165931F, }, new { timestamp = "2017-01-01T22:50:00Z", - value = 2165928, + value = 2165928F, }, new { timestamp = "2017-01-01T22:55:00Z", - value = 2165989, + value = 2165989F, }, new { timestamp = "2017-01-01T23:00:00Z", - value = 2228961, + value = 2228961F, }, new { timestamp = "2017-01-01T23:05:00Z", - value = 2228961, + value = 2228961F, }, new { timestamp = "2017-01-01T23:10:00Z", - value = 2228961, + value = 2228961F, }, new { timestamp = "2017-01-01T23:15:00Z", - value = 2485802, + value = 2485802F, }, new { timestamp = "2017-01-01T23:20:00Z", - value = 2485802, + value = 2485802F, }, new { timestamp = "2017-01-01T23:25:00Z", - value = 2486021, + value = 2486021F, }, new { timestamp = "2017-01-01T23:30:00Z", - value = 2485293, + value = 2485293F, }, new { timestamp = "2017-01-01T23:35:00Z", - value = 2485293, + value = 2485293F, }, new { timestamp = "2017-01-01T23:40:00Z", - value = 2485324, + value = 2485324F, }, new { timestamp = "2017-01-01T23:45:00Z", - value = 2489142, + value = 2489142F, }, new { timestamp = "2017-01-01T23:50:00Z", - value = 2526312, + value = 2526312F, }, new { timestamp = "2017-01-01T23:55:00Z", - value = 2526313, + value = 2526313F, }, new { timestamp = "2017-01-02T00:00:00Z", - value = 2526314, + value = 2526314F, }, new { timestamp = "2017-01-02T00:05:00Z", - value = 2526324, + value = 2526324F, }, new { timestamp = "2017-01-02T00:10:00Z", - value = 2526325, + value = 2526325F, }, new { timestamp = "2017-01-02T00:15:00Z", - value = 2526205, + value = 2526205F, }, new { timestamp = "2017-01-02T00:20:00Z", - value = 2526226, + value = 2526226F, }, new { timestamp = "2017-01-02T00:25:00Z", - value = 2526475, + value = 2526475F, }, new { timestamp = "2017-01-02T00:30:00Z", - value = 2526471, + value = 2526471F, }, new { timestamp = "2017-01-02T00:35:00Z", - value = 2526471, + value = 2526471F, }, new { timestamp = "2017-01-02T00:40:00Z", - value = 2526534, + value = 2526534F, }, new { timestamp = "2017-01-02T00:45:00Z", - value = 2526646, + value = 2526646F, }, new { timestamp = "2017-01-02T00:50:00Z", - value = 2526646, + value = 2526646F, }, new { timestamp = "2017-01-02T00:55:00Z", - value = 2526648, + value = 2526648F, }, new { timestamp = "2017-01-02T01:00:00Z", - value = 2526658, + value = 2526658F, }, new { timestamp = "2017-01-02T01:05:00Z", - value = 2526771, + value = 2526771F, }, new { timestamp = "2017-01-02T01:10:00Z", - value = 2526773, + value = 2526773F, }, new { timestamp = "2017-01-02T01:15:00Z", - value = 2526793, + value = 2526793F, }, new { timestamp = "2017-01-02T01:20:00Z", - value = 2527010, + value = 2527010F, }, new { timestamp = "2017-01-02T01:25:00Z", - value = 2527031, + value = 2527031F, }, new { timestamp = "2017-01-02T01:30:00Z", - value = 3178096, + value = 3178096F, }, new { timestamp = "2017-01-02T01:35:00Z", - value = 3196305, + value = 3196305F, }, new { timestamp = "2017-01-02T01:40:00Z", - value = 3196202, + value = 3196202F, }, new { timestamp = "2017-01-02T01:45:00Z", - value = 3196202, + value = 3196202F, }, new { timestamp = "2017-01-02T01:50:00Z", - value = 3196205, + value = 3196205F, }, new { timestamp = "2017-01-02T01:55:00Z", - value = 3229232, + value = 3229232F, }, new { timestamp = "2017-01-02T02:00:00Z", - value = 3230463, + value = 3230463F, }, new { timestamp = "2017-01-02T02:05:00Z", - value = 3230468, + value = 3230468F, }, new { timestamp = "2017-01-02T02:10:00Z", - value = 3230468, + value = 3230468F, }, new { timestamp = "2017-01-02T02:15:00Z", - value = 3230468, + value = 3230468F, }, new { timestamp = "2017-01-02T02:20:00Z", - value = 3230470, + value = 3230470F, }, new { timestamp = "2017-01-02T02:25:00Z", - value = 3230467, + value = 3230467F, }, new { timestamp = "2017-01-02T02:30:00Z", - value = 3230506, + value = 3230506F, }, new { timestamp = "2017-01-02T02:35:00Z", - value = 3231536, + value = 3231536F, }, new { timestamp = "2017-01-02T02:40:00Z", - value = 3230723, + value = 3230723F, }, new { timestamp = "2017-01-02T02:45:00Z", - value = 3230727, + value = 3230727F, }, new { timestamp = "2017-01-02T02:50:00Z", - value = 3230727, + value = 3230727F, }, new { timestamp = "2017-01-02T02:55:00Z", - value = 3230727, + value = 3230727F, }, new { timestamp = "2017-01-02T03:00:00Z", - value = 3231880, + value = 3231880F, }, new { timestamp = "2017-01-02T03:05:00Z", - value = 3232283, + value = 3232283F, }, new { timestamp = "2017-01-02T03:10:00Z", - value = 3232283, + value = 3232283F, }, new { timestamp = "2017-01-02T03:15:00Z", - value = 3232283, + value = 3232283F, }, new { timestamp = "2017-01-02T03:20:00Z", - value = 3232325, + value = 3232325F, }, new { timestamp = "2017-01-02T03:25:00Z", - value = 3232323, + value = 3232323F, }, new { timestamp = "2017-01-02T03:30:00Z", - value = 3232327, + value = 3232327F, }, new { timestamp = "2017-01-02T03:35:00Z", - value = 3232340, + value = 3232340F, }, new { timestamp = "2017-01-02T03:40:00Z", - value = 3232713, + value = 3232713F, }, new { timestamp = "2017-01-02T03:45:00Z", - value = 3232729, + value = 3232729F, }, new { timestamp = "2017-01-02T03:50:00Z", - value = 3232756, + value = 3232756F, }, new { timestamp = "2017-01-02T03:55:00Z", - value = 3233500, + value = 3233500F, }, new { timestamp = "2017-01-02T04:00:00Z", - value = 3233500, + value = 3233500F, }, new { timestamp = "2017-01-02T04:05:00Z", - value = 3233500, + value = 3233500F, } }, granularity = "minutely", customInterval = 5, stableTrendWindow = 10, - threshold = 0.99, + threshold = 0.99F, period = 0, }); Response response = client.DetectUnivariateChangePoint(content); diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Generated/Samples/Samples_Multivariate.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Generated/Samples/Samples_Multivariate.cs index 0a303b937eed9..443ec05df8718 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Generated/Samples/Samples_Multivariate.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Generated/Samples/Samples_Multivariate.cs @@ -91,7 +91,7 @@ public void Example_Multivariate_TrainMultivariateModel_CreateAndTrainMultivaria { alignMode = "Outer", fillNAMethod = "Linear", - paddingValue = 0, + paddingValue = 0F, }, dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", dataSchema = "OneTable", @@ -122,7 +122,7 @@ public async Task Example_Multivariate_TrainMultivariateModel_CreateAndTrainMult { alignMode = "Outer", fillNAMethod = "Linear", - paddingValue = 0, + paddingValue = 0F, }, dataSource = "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", dataSchema = "OneTable", @@ -155,7 +155,7 @@ public void Example_Multivariate_TrainMultivariateModel_CreateAndTrainMultivaria { AlignMode = AlignMode.Outer, FillNAMethod = FillNAMethod.Linear, - PaddingValue = 0, + PaddingValue = 0F, }, }; Response response = client.TrainMultivariateModel(modelInfo); @@ -178,7 +178,7 @@ public async Task Example_Multivariate_TrainMultivariateModel_CreateAndTrainMult { AlignMode = AlignMode.Outer, FillNAMethod = FillNAMethod.Linear, - PaddingValue = 0, + PaddingValue = 0F, }, }; Response response = await client.TrainMultivariateModelAsync(modelInfo); @@ -396,36 +396,36 @@ public void Example_Multivariate_DetectMultivariateLastAnomaly_DetectMultivariat }, values = new object[] { -0.4551378545933972, -0.7388603950488748, -0.201088255984052, -0.7462812245891899, -0.07308128850401663, -0.33090474587393537, -0.7544925268153315, -0.987506336316328, -0.6665932993421468, -0.6308351543168672, -0.08083310161466228, -0.8414415588668442, -0.514583545640453, -0.0954489875193526, -0.7786793231920507, -0.41646133667960994, -0.030176187583339287, -0.3474214937189324, -0.508530173413991, -0.42451199127255046, -0.2115944222725208, -0.24733519545833516, -0.8791022110982156, -0.9479621899884665, -0.26702703121252136, -0.6954503497669413, -0.1235728391488995, -0.8214915473050647, -0.11813002444192677, -0.8579045951076123 +0.45513785F, +0.73886037F, +0.20108825F, +0.7462812F, +0.07308129F, +0.33090475F, +0.7544925F, +0.98750633F, +0.6665933F, +0.6308352F, +0.0808331F, +0.8414416F, +0.5145835F, +0.095448986F, +0.7786793F, +0.41646135F, +0.030176187F, +0.3474215F, +0.5085302F, +0.424512F, +0.21159442F, +0.2473352F, +0.87910223F, +0.94796216F, +0.26702702F, +0.69545037F, +0.12357284F, +0.82149154F, +0.11813002F, +0.8579046F }, }, new @@ -466,36 +466,36 @@ public void Example_Multivariate_DetectMultivariateLastAnomaly_DetectMultivariat }, values = new object[] { -0.9617871613964145, -0.24903311574778408, -0.4920561254118613, -0.9895601049618598, -0.9171759283128094, -0.5754204711105273, -0.1811033296265634, -0.8852311981742577, -0.9543231904644779, -0.7088012446094262, -0.7843572237149014, -0.7664787010700046, -0.3699552325387093, -0.504519908266789, -0.5848930929950164, -0.7628913396089576, -0.8148405868900065, -0.08540458873739332, -0.03481976727525682, -0.21275099339467762, -0.9836175579199806, -0.9321441483364282, -0.038466608085469534, -0.1723138437622782, -0.8626383410218382, -0.35053229974224254, -0.631141662835182, -0.0730352607990088, -0.08886179043386, -0.7488606040971179 +0.96178716F, +0.24903311F, +0.49205613F, +0.9895601F, +0.91717595F, +0.5754205F, +0.18110333F, +0.8852312F, +0.9543232F, +0.70880127F, +0.78435725F, +0.7664787F, +0.36995524F, +0.5045199F, +0.5848931F, +0.76289135F, +0.8148406F, +0.08540459F, +0.034819767F, +0.21275099F, +0.98361754F, +0.93214417F, +0.038466606F, +0.17231384F, +0.86263835F, +0.3505323F, +0.63114166F, +0.07303526F, +0.08886179F, +0.7488606F }, }, new @@ -536,36 +536,36 @@ public void Example_Multivariate_DetectMultivariateLastAnomaly_DetectMultivariat }, values = new object[] { -0.4030756879437628, -0.15526889968448554, -0.36352226408981103, -0.6051200637229004, -0.8516795018476276, -0.2645605735279929, -0.6810875830037345, -0.9165894221681316, -0.700783245230424, -0.5624155469940331, -0.6277289685127893, -0.15992056539730204, -0.6020964482827594, -0.35937967753105915, -0.8731686034848609, -0.20301549117588935, -0.029261872151168933, -0.6261499548828445, -0.45850782028563386, -0.8275006940083313, -0.032760268834037376, -0.4485202784055029, -0.8915691008748384, -0.891669051517807, -0.9469979353323046, -0.115293087370132, -0.08818772518459506, -0.7426286620589166, -0.32372247468990756, -0.936268139507417 +0.4030757F, +0.1552689F, +0.36352226F, +0.60512006F, +0.8516795F, +0.26456058F, +0.68108755F, +0.91658944F, +0.70078325F, +0.56241554F, +0.62772894F, +0.15992056F, +0.60209644F, +0.35937968F, +0.8731686F, +0.20301549F, +0.029261872F, +0.62614995F, +0.4585078F, +0.8275007F, +0.03276027F, +0.44852027F, +0.8915691F, +0.89166903F, +0.94699794F, +0.115293086F, +0.088187724F, +0.74262863F, +0.32372248F, +0.93626815F }, } }, @@ -627,36 +627,36 @@ public async Task Example_Multivariate_DetectMultivariateLastAnomaly_DetectMulti }, values = new object[] { -0.4551378545933972, -0.7388603950488748, -0.201088255984052, -0.7462812245891899, -0.07308128850401663, -0.33090474587393537, -0.7544925268153315, -0.987506336316328, -0.6665932993421468, -0.6308351543168672, -0.08083310161466228, -0.8414415588668442, -0.514583545640453, -0.0954489875193526, -0.7786793231920507, -0.41646133667960994, -0.030176187583339287, -0.3474214937189324, -0.508530173413991, -0.42451199127255046, -0.2115944222725208, -0.24733519545833516, -0.8791022110982156, -0.9479621899884665, -0.26702703121252136, -0.6954503497669413, -0.1235728391488995, -0.8214915473050647, -0.11813002444192677, -0.8579045951076123 +0.45513785F, +0.73886037F, +0.20108825F, +0.7462812F, +0.07308129F, +0.33090475F, +0.7544925F, +0.98750633F, +0.6665933F, +0.6308352F, +0.0808331F, +0.8414416F, +0.5145835F, +0.095448986F, +0.7786793F, +0.41646135F, +0.030176187F, +0.3474215F, +0.5085302F, +0.424512F, +0.21159442F, +0.2473352F, +0.87910223F, +0.94796216F, +0.26702702F, +0.69545037F, +0.12357284F, +0.82149154F, +0.11813002F, +0.8579046F }, }, new @@ -697,36 +697,36 @@ public async Task Example_Multivariate_DetectMultivariateLastAnomaly_DetectMulti }, values = new object[] { -0.9617871613964145, -0.24903311574778408, -0.4920561254118613, -0.9895601049618598, -0.9171759283128094, -0.5754204711105273, -0.1811033296265634, -0.8852311981742577, -0.9543231904644779, -0.7088012446094262, -0.7843572237149014, -0.7664787010700046, -0.3699552325387093, -0.504519908266789, -0.5848930929950164, -0.7628913396089576, -0.8148405868900065, -0.08540458873739332, -0.03481976727525682, -0.21275099339467762, -0.9836175579199806, -0.9321441483364282, -0.038466608085469534, -0.1723138437622782, -0.8626383410218382, -0.35053229974224254, -0.631141662835182, -0.0730352607990088, -0.08886179043386, -0.7488606040971179 +0.96178716F, +0.24903311F, +0.49205613F, +0.9895601F, +0.91717595F, +0.5754205F, +0.18110333F, +0.8852312F, +0.9543232F, +0.70880127F, +0.78435725F, +0.7664787F, +0.36995524F, +0.5045199F, +0.5848931F, +0.76289135F, +0.8148406F, +0.08540459F, +0.034819767F, +0.21275099F, +0.98361754F, +0.93214417F, +0.038466606F, +0.17231384F, +0.86263835F, +0.3505323F, +0.63114166F, +0.07303526F, +0.08886179F, +0.7488606F }, }, new @@ -767,36 +767,36 @@ public async Task Example_Multivariate_DetectMultivariateLastAnomaly_DetectMulti }, values = new object[] { -0.4030756879437628, -0.15526889968448554, -0.36352226408981103, -0.6051200637229004, -0.8516795018476276, -0.2645605735279929, -0.6810875830037345, -0.9165894221681316, -0.700783245230424, -0.5624155469940331, -0.6277289685127893, -0.15992056539730204, -0.6020964482827594, -0.35937967753105915, -0.8731686034848609, -0.20301549117588935, -0.029261872151168933, -0.6261499548828445, -0.45850782028563386, -0.8275006940083313, -0.032760268834037376, -0.4485202784055029, -0.8915691008748384, -0.891669051517807, -0.9469979353323046, -0.115293087370132, -0.08818772518459506, -0.7426286620589166, -0.32372247468990756, -0.936268139507417 +0.4030757F, +0.1552689F, +0.36352226F, +0.60512006F, +0.8516795F, +0.26456058F, +0.68108755F, +0.91658944F, +0.70078325F, +0.56241554F, +0.62772894F, +0.15992056F, +0.60209644F, +0.35937968F, +0.8731686F, +0.20301549F, +0.029261872F, +0.62614995F, +0.4585078F, +0.8275007F, +0.03276027F, +0.44852027F, +0.8915691F, +0.89166903F, +0.94699794F, +0.115293086F, +0.088187724F, +0.74262863F, +0.32372248F, +0.93626815F }, } }, @@ -818,9 +818,9 @@ public void Example_Multivariate_DetectMultivariateLastAnomaly_DetectMultivariat MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[] { -new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4551378545933972, (float)0.7388603950488748, (float)0.201088255984052, (float)0.7462812245891899, (float)0.07308128850401663, (float)0.33090474587393537, (float)0.7544925268153315, (float)0.987506336316328, (float)0.6665932993421468, (float)0.6308351543168672, (float)0.08083310161466228, (float)0.8414415588668442, (float)0.514583545640453, (float)0.0954489875193526, (float)0.7786793231920507, (float)0.41646133667960994, (float)0.030176187583339287, (float)0.3474214937189324, (float)0.508530173413991, (float)0.42451199127255046, (float)0.2115944222725208, (float)0.24733519545833516, (float)0.8791022110982156, (float)0.9479621899884665, (float)0.26702703121252136, (float)0.6954503497669413, (float)0.1235728391488995, (float)0.8214915473050647, (float)0.11813002444192677, (float)0.8579045951076123}), -new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.9617871613964145, (float)0.24903311574778408, (float)0.4920561254118613, (float)0.9895601049618598, (float)0.9171759283128094, (float)0.5754204711105273, (float)0.1811033296265634, (float)0.8852311981742577, (float)0.9543231904644779, (float)0.7088012446094262, (float)0.7843572237149014, (float)0.7664787010700046, (float)0.3699552325387093, (float)0.504519908266789, (float)0.5848930929950164, (float)0.7628913396089576, (float)0.8148405868900065, (float)0.08540458873739332, (float)0.03481976727525682, (float)0.21275099339467762, (float)0.9836175579199806, (float)0.9321441483364282, (float)0.038466608085469534, (float)0.1723138437622782, (float)0.8626383410218382, (float)0.35053229974224254, (float)0.631141662835182, (float)0.0730352607990088, (float)0.08886179043386, (float)0.7488606040971179}), -new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4030756879437628, (float)0.15526889968448554, (float)0.36352226408981103, (float)0.6051200637229004, (float)0.8516795018476276, (float)0.2645605735279929, (float)0.6810875830037345, (float)0.9165894221681316, (float)0.700783245230424, (float)0.5624155469940331, (float)0.6277289685127893, (float)0.15992056539730204, (float)0.6020964482827594, (float)0.35937967753105915, (float)0.8731686034848609, (float)0.20301549117588935, (float)0.029261872151168933, (float)0.6261499548828445, (float)0.45850782028563386, (float)0.8275006940083313, (float)0.032760268834037376, (float)0.4485202784055029, (float)0.8915691008748384, (float)0.891669051517807, (float)0.9469979353323046, (float)0.115293087370132, (float)0.08818772518459506, (float)0.7426286620589166, (float)0.32372247468990756, (float)0.936268139507417}) +new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.45513785F, 0.73886037F, 0.20108825F, 0.7462812F, 0.07308129F, 0.33090475F, 0.7544925F, 0.98750633F, 0.6665933F, 0.6308352F, 0.0808331F, 0.8414416F, 0.5145835F, 0.095448986F, 0.7786793F, 0.41646135F, 0.030176187F, 0.3474215F, 0.5085302F, 0.424512F, 0.21159442F, 0.2473352F, 0.87910223F, 0.94796216F, 0.26702702F, 0.69545037F, 0.12357284F, 0.82149154F, 0.11813002F, 0.8579046F}), +new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.96178716F, 0.24903311F, 0.49205613F, 0.9895601F, 0.91717595F, 0.5754205F, 0.18110333F, 0.8852312F, 0.9543232F, 0.70880127F, 0.78435725F, 0.7664787F, 0.36995524F, 0.5045199F, 0.5848931F, 0.76289135F, 0.8148406F, 0.08540459F, 0.034819767F, 0.21275099F, 0.98361754F, 0.93214417F, 0.038466606F, 0.17231384F, 0.86263835F, 0.3505323F, 0.63114166F, 0.07303526F, 0.08886179F, 0.7488606F}), +new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.4030757F, 0.1552689F, 0.36352226F, 0.60512006F, 0.8516795F, 0.26456058F, 0.68108755F, 0.91658944F, 0.70078325F, 0.56241554F, 0.62772894F, 0.15992056F, 0.60209644F, 0.35937968F, 0.8731686F, 0.20301549F, 0.029261872F, 0.62614995F, 0.4585078F, 0.8275007F, 0.03276027F, 0.44852027F, 0.8915691F, 0.89166903F, 0.94699794F, 0.115293086F, 0.088187724F, 0.74262863F, 0.32372248F, 0.93626815F}) }) { TopContributorCount = 10, @@ -838,9 +838,9 @@ public async Task Example_Multivariate_DetectMultivariateLastAnomaly_DetectMulti MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[] { -new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4551378545933972, (float)0.7388603950488748, (float)0.201088255984052, (float)0.7462812245891899, (float)0.07308128850401663, (float)0.33090474587393537, (float)0.7544925268153315, (float)0.987506336316328, (float)0.6665932993421468, (float)0.6308351543168672, (float)0.08083310161466228, (float)0.8414415588668442, (float)0.514583545640453, (float)0.0954489875193526, (float)0.7786793231920507, (float)0.41646133667960994, (float)0.030176187583339287, (float)0.3474214937189324, (float)0.508530173413991, (float)0.42451199127255046, (float)0.2115944222725208, (float)0.24733519545833516, (float)0.8791022110982156, (float)0.9479621899884665, (float)0.26702703121252136, (float)0.6954503497669413, (float)0.1235728391488995, (float)0.8214915473050647, (float)0.11813002444192677, (float)0.8579045951076123}), -new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.9617871613964145, (float)0.24903311574778408, (float)0.4920561254118613, (float)0.9895601049618598, (float)0.9171759283128094, (float)0.5754204711105273, (float)0.1811033296265634, (float)0.8852311981742577, (float)0.9543231904644779, (float)0.7088012446094262, (float)0.7843572237149014, (float)0.7664787010700046, (float)0.3699552325387093, (float)0.504519908266789, (float)0.5848930929950164, (float)0.7628913396089576, (float)0.8148405868900065, (float)0.08540458873739332, (float)0.03481976727525682, (float)0.21275099339467762, (float)0.9836175579199806, (float)0.9321441483364282, (float)0.038466608085469534, (float)0.1723138437622782, (float)0.8626383410218382, (float)0.35053229974224254, (float)0.631141662835182, (float)0.0730352607990088, (float)0.08886179043386, (float)0.7488606040971179}), -new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{(float)0.4030756879437628, (float)0.15526889968448554, (float)0.36352226408981103, (float)0.6051200637229004, (float)0.8516795018476276, (float)0.2645605735279929, (float)0.6810875830037345, (float)0.9165894221681316, (float)0.700783245230424, (float)0.5624155469940331, (float)0.6277289685127893, (float)0.15992056539730204, (float)0.6020964482827594, (float)0.35937967753105915, (float)0.8731686034848609, (float)0.20301549117588935, (float)0.029261872151168933, (float)0.6261499548828445, (float)0.45850782028563386, (float)0.8275006940083313, (float)0.032760268834037376, (float)0.4485202784055029, (float)0.8915691008748384, (float)0.891669051517807, (float)0.9469979353323046, (float)0.115293087370132, (float)0.08818772518459506, (float)0.7426286620589166, (float)0.32372247468990756, (float)0.936268139507417}) +new VariableValues("Variable_1", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.45513785F, 0.73886037F, 0.20108825F, 0.7462812F, 0.07308129F, 0.33090475F, 0.7544925F, 0.98750633F, 0.6665933F, 0.6308352F, 0.0808331F, 0.8414416F, 0.5145835F, 0.095448986F, 0.7786793F, 0.41646135F, 0.030176187F, 0.3474215F, 0.5085302F, 0.424512F, 0.21159442F, 0.2473352F, 0.87910223F, 0.94796216F, 0.26702702F, 0.69545037F, 0.12357284F, 0.82149154F, 0.11813002F, 0.8579046F}), +new VariableValues("Variable_2", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.96178716F, 0.24903311F, 0.49205613F, 0.9895601F, 0.91717595F, 0.5754205F, 0.18110333F, 0.8852312F, 0.9543232F, 0.70880127F, 0.78435725F, 0.7664787F, 0.36995524F, 0.5045199F, 0.5848931F, 0.76289135F, 0.8148406F, 0.08540459F, 0.034819767F, 0.21275099F, 0.98361754F, 0.93214417F, 0.038466606F, 0.17231384F, 0.86263835F, 0.3505323F, 0.63114166F, 0.07303526F, 0.08886179F, 0.7488606F}), +new VariableValues("Variable_3", new string[]{"2021-01-01T00:00:00Z", "2021-01-01T00:01:00Z", "2021-01-01T00:02:00Z", "2021-01-01T00:03:00Z", "2021-01-01T00:04:00Z", "2021-01-01T00:05:00Z", "2021-01-01T00:06:00Z", "2021-01-01T00:07:00Z", "2021-01-01T00:08:00Z", "2021-01-01T00:09:00Z", "2021-01-01T00:10:00Z", "2021-01-01T00:11:00Z", "2021-01-01T00:12:00Z", "2021-01-01T00:13:00Z", "2021-01-01T00:14:00Z", "2021-01-01T00:15:00Z", "2021-01-01T00:16:00Z", "2021-01-01T00:17:00Z", "2021-01-01T00:18:00Z", "2021-01-01T00:19:00Z", "2021-01-01T00:20:00Z", "2021-01-01T00:21:00Z", "2021-01-01T00:22:00Z", "2021-01-01T00:23:00Z", "2021-01-01T00:24:00Z", "2021-01-01T00:25:00Z", "2021-01-01T00:26:00Z", "2021-01-01T00:27:00Z", "2021-01-01T00:28:00Z", "2021-01-01T00:29:00Z"}, new float[]{0.4030757F, 0.1552689F, 0.36352226F, 0.60512006F, 0.8516795F, 0.26456058F, 0.68108755F, 0.91658944F, 0.70078325F, 0.56241554F, 0.62772894F, 0.15992056F, 0.60209644F, 0.35937968F, 0.8731686F, 0.20301549F, 0.029261872F, 0.62614995F, 0.4585078F, 0.8275007F, 0.03276027F, 0.44852027F, 0.8915691F, 0.89166903F, 0.94699794F, 0.115293086F, 0.088187724F, 0.74262863F, 0.32372248F, 0.93626815F}) }) { TopContributorCount = 10, diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Generated/Samples/Samples_Univariate.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Generated/Samples/Samples_Univariate.cs index 8f987e2fe8298..b73bda7cef568 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Generated/Samples/Samples_Univariate.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Generated/Samples/Samples_Univariate.cs @@ -31,245 +31,245 @@ public void Example_Univariate_DetectUnivariateEntireSeries_UnivariateDetectEnti new { timestamp = "1972-01-01T00:00:00Z", -value = 826, +value = 826F, }, new { timestamp = "1972-02-01T00:00:00Z", -value = 799, +value = 799F, }, new { timestamp = "1972-03-01T00:00:00Z", -value = 890, +value = 890F, }, new { timestamp = "1972-04-01T00:00:00Z", -value = 900, +value = 900F, }, new { timestamp = "1972-05-01T00:00:00Z", -value = 961, +value = 961F, }, new { timestamp = "1972-06-01T00:00:00Z", -value = 935, +value = 935F, }, new { timestamp = "1972-07-01T00:00:00Z", -value = 894, +value = 894F, }, new { timestamp = "1972-08-01T00:00:00Z", -value = 855, +value = 855F, }, new { timestamp = "1972-09-01T00:00:00Z", -value = 809, +value = 809F, }, new { timestamp = "1972-10-01T00:00:00Z", -value = 810, +value = 810F, }, new { timestamp = "1972-11-01T00:00:00Z", -value = 766, +value = 766F, }, new { timestamp = "1972-12-01T00:00:00Z", -value = 805, +value = 805F, }, new { timestamp = "1973-01-01T00:00:00Z", -value = 821, +value = 821F, }, new { timestamp = "1973-02-01T00:00:00Z", -value = 773, +value = 773F, }, new { timestamp = "1973-03-01T00:00:00Z", -value = 883, +value = 883F, }, new { timestamp = "1973-04-01T00:00:00Z", -value = 898, +value = 898F, }, new { timestamp = "1973-05-01T00:00:00Z", -value = 957, +value = 957F, }, new { timestamp = "1973-06-01T00:00:00Z", -value = 924, +value = 924F, }, new { timestamp = "1973-07-01T00:00:00Z", -value = 881, +value = 881F, }, new { timestamp = "1973-08-01T00:00:00Z", -value = 837, +value = 837F, }, new { timestamp = "1973-09-01T00:00:00Z", -value = 784, +value = 784F, }, new { timestamp = "1973-10-01T00:00:00Z", -value = 791, +value = 791F, }, new { timestamp = "1973-11-01T00:00:00Z", -value = 760, +value = 760F, }, new { timestamp = "1973-12-01T00:00:00Z", -value = 802, +value = 802F, }, new { timestamp = "1974-01-01T00:00:00Z", -value = 828, +value = 828F, }, new { timestamp = "1974-02-01T00:00:00Z", -value = 1030, +value = 1030F, }, new { timestamp = "1974-03-01T00:00:00Z", -value = 889, +value = 889F, }, new { timestamp = "1974-04-01T00:00:00Z", -value = 902, +value = 902F, }, new { timestamp = "1974-05-01T00:00:00Z", -value = 969, +value = 969F, }, new { timestamp = "1974-06-01T00:00:00Z", -value = 947, +value = 947F, }, new { timestamp = "1974-07-01T00:00:00Z", -value = 908, +value = 908F, }, new { timestamp = "1974-08-01T00:00:00Z", -value = 867, +value = 867F, }, new { timestamp = "1974-09-01T00:00:00Z", -value = 815, +value = 815F, }, new { timestamp = "1974-10-01T00:00:00Z", -value = 812, +value = 812F, }, new { timestamp = "1974-11-01T00:00:00Z", -value = 773, +value = 773F, }, new { timestamp = "1974-12-01T00:00:00Z", -value = 813, +value = 813F, }, new { timestamp = "1975-01-01T00:00:00Z", -value = 834, +value = 834F, }, new { timestamp = "1975-02-01T00:00:00Z", -value = 782, +value = 782F, }, new { timestamp = "1975-03-01T00:00:00Z", -value = 892, +value = 892F, }, new { timestamp = "1975-04-01T00:00:00Z", -value = 903, +value = 903F, }, new { timestamp = "1975-05-01T00:00:00Z", -value = 966, +value = 966F, }, new { timestamp = "1975-06-01T00:00:00Z", -value = 937, +value = 937F, }, new { timestamp = "1975-07-01T00:00:00Z", -value = 896, +value = 896F, }, new { timestamp = "1975-08-01T00:00:00Z", -value = 858, +value = 858F, }, new { timestamp = "1975-09-01T00:00:00Z", -value = 817, +value = 817F, }, new { timestamp = "1975-10-01T00:00:00Z", -value = 827, +value = 827F, }, new { timestamp = "1975-11-01T00:00:00Z", -value = 797, +value = 797F, }, new { timestamp = "1975-12-01T00:00:00Z", -value = 843, +value = 843F, } }, - maxAnomalyRatio = 0.25, + maxAnomalyRatio = 0.25F, sensitivity = 95, granularity = "monthly", imputeMode = "auto", @@ -301,245 +301,245 @@ public async Task Example_Univariate_DetectUnivariateEntireSeries_UnivariateDete new { timestamp = "1972-01-01T00:00:00Z", -value = 826, +value = 826F, }, new { timestamp = "1972-02-01T00:00:00Z", -value = 799, +value = 799F, }, new { timestamp = "1972-03-01T00:00:00Z", -value = 890, +value = 890F, }, new { timestamp = "1972-04-01T00:00:00Z", -value = 900, +value = 900F, }, new { timestamp = "1972-05-01T00:00:00Z", -value = 961, +value = 961F, }, new { timestamp = "1972-06-01T00:00:00Z", -value = 935, +value = 935F, }, new { timestamp = "1972-07-01T00:00:00Z", -value = 894, +value = 894F, }, new { timestamp = "1972-08-01T00:00:00Z", -value = 855, +value = 855F, }, new { timestamp = "1972-09-01T00:00:00Z", -value = 809, +value = 809F, }, new { timestamp = "1972-10-01T00:00:00Z", -value = 810, +value = 810F, }, new { timestamp = "1972-11-01T00:00:00Z", -value = 766, +value = 766F, }, new { timestamp = "1972-12-01T00:00:00Z", -value = 805, +value = 805F, }, new { timestamp = "1973-01-01T00:00:00Z", -value = 821, +value = 821F, }, new { timestamp = "1973-02-01T00:00:00Z", -value = 773, +value = 773F, }, new { timestamp = "1973-03-01T00:00:00Z", -value = 883, +value = 883F, }, new { timestamp = "1973-04-01T00:00:00Z", -value = 898, +value = 898F, }, new { timestamp = "1973-05-01T00:00:00Z", -value = 957, +value = 957F, }, new { timestamp = "1973-06-01T00:00:00Z", -value = 924, +value = 924F, }, new { timestamp = "1973-07-01T00:00:00Z", -value = 881, +value = 881F, }, new { timestamp = "1973-08-01T00:00:00Z", -value = 837, +value = 837F, }, new { timestamp = "1973-09-01T00:00:00Z", -value = 784, +value = 784F, }, new { timestamp = "1973-10-01T00:00:00Z", -value = 791, +value = 791F, }, new { timestamp = "1973-11-01T00:00:00Z", -value = 760, +value = 760F, }, new { timestamp = "1973-12-01T00:00:00Z", -value = 802, +value = 802F, }, new { timestamp = "1974-01-01T00:00:00Z", -value = 828, +value = 828F, }, new { timestamp = "1974-02-01T00:00:00Z", -value = 1030, +value = 1030F, }, new { timestamp = "1974-03-01T00:00:00Z", -value = 889, +value = 889F, }, new { timestamp = "1974-04-01T00:00:00Z", -value = 902, +value = 902F, }, new { timestamp = "1974-05-01T00:00:00Z", -value = 969, +value = 969F, }, new { timestamp = "1974-06-01T00:00:00Z", -value = 947, +value = 947F, }, new { timestamp = "1974-07-01T00:00:00Z", -value = 908, +value = 908F, }, new { timestamp = "1974-08-01T00:00:00Z", -value = 867, +value = 867F, }, new { timestamp = "1974-09-01T00:00:00Z", -value = 815, +value = 815F, }, new { timestamp = "1974-10-01T00:00:00Z", -value = 812, +value = 812F, }, new { timestamp = "1974-11-01T00:00:00Z", -value = 773, +value = 773F, }, new { timestamp = "1974-12-01T00:00:00Z", -value = 813, +value = 813F, }, new { timestamp = "1975-01-01T00:00:00Z", -value = 834, +value = 834F, }, new { timestamp = "1975-02-01T00:00:00Z", -value = 782, +value = 782F, }, new { timestamp = "1975-03-01T00:00:00Z", -value = 892, +value = 892F, }, new { timestamp = "1975-04-01T00:00:00Z", -value = 903, +value = 903F, }, new { timestamp = "1975-05-01T00:00:00Z", -value = 966, +value = 966F, }, new { timestamp = "1975-06-01T00:00:00Z", -value = 937, +value = 937F, }, new { timestamp = "1975-07-01T00:00:00Z", -value = 896, +value = 896F, }, new { timestamp = "1975-08-01T00:00:00Z", -value = 858, +value = 858F, }, new { timestamp = "1975-09-01T00:00:00Z", -value = 817, +value = 817F, }, new { timestamp = "1975-10-01T00:00:00Z", -value = 827, +value = 827F, }, new { timestamp = "1975-11-01T00:00:00Z", -value = 797, +value = 797F, }, new { timestamp = "1975-12-01T00:00:00Z", -value = 843, +value = 843F, } }, - maxAnomalyRatio = 0.25, + maxAnomalyRatio = 0.25F, sensitivity = 95, granularity = "monthly", imputeMode = "auto", @@ -571,249 +571,249 @@ public void Example_Univariate_DetectUnivariateLastPoint_DetectUnivariateLastPoi new { timestamp = "1972-01-01T00:00:00Z", -value = 826, +value = 826F, }, new { timestamp = "1972-02-01T00:00:00Z", -value = 799, +value = 799F, }, new { timestamp = "1972-03-01T00:00:00Z", -value = 890, +value = 890F, }, new { timestamp = "1972-04-01T00:00:00Z", -value = 900, +value = 900F, }, new { timestamp = "1972-05-01T00:00:00Z", -value = 961, +value = 961F, }, new { timestamp = "1972-06-01T00:00:00Z", -value = 935, +value = 935F, }, new { timestamp = "1972-07-01T00:00:00Z", -value = 894, +value = 894F, }, new { timestamp = "1972-08-01T00:00:00Z", -value = 855, +value = 855F, }, new { timestamp = "1972-09-01T00:00:00Z", -value = 809, +value = 809F, }, new { timestamp = "1972-10-01T00:00:00Z", -value = 810, +value = 810F, }, new { timestamp = "1972-11-01T00:00:00Z", -value = 766, +value = 766F, }, new { timestamp = "1972-12-01T00:00:00Z", -value = 805, +value = 805F, }, new { timestamp = "1973-01-01T00:00:00Z", -value = 821, +value = 821F, }, new { timestamp = "1973-02-01T00:00:00Z", -value = 773, +value = 773F, }, new { timestamp = "1973-03-01T00:00:00Z", -value = 883, +value = 883F, }, new { timestamp = "1973-04-01T00:00:00Z", -value = 898, +value = 898F, }, new { timestamp = "1973-05-01T00:00:00Z", -value = 957, +value = 957F, }, new { timestamp = "1973-06-01T00:00:00Z", -value = 924, +value = 924F, }, new { timestamp = "1973-07-01T00:00:00Z", -value = 881, +value = 881F, }, new { timestamp = "1973-08-01T00:00:00Z", -value = 837, +value = 837F, }, new { timestamp = "1973-09-01T00:00:00Z", -value = 784, +value = 784F, }, new { timestamp = "1973-10-01T00:00:00Z", -value = 791, +value = 791F, }, new { timestamp = "1973-11-01T00:00:00Z", -value = 760, +value = 760F, }, new { timestamp = "1973-12-01T00:00:00Z", -value = 802, +value = 802F, }, new { timestamp = "1974-01-01T00:00:00Z", -value = 828, +value = 828F, }, new { timestamp = "1974-02-01T00:00:00Z", -value = 1030, +value = 1030F, }, new { timestamp = "1974-03-01T00:00:00Z", -value = 889, +value = 889F, }, new { timestamp = "1974-04-01T00:00:00Z", -value = 902, +value = 902F, }, new { timestamp = "1974-05-01T00:00:00Z", -value = 969, +value = 969F, }, new { timestamp = "1974-06-01T00:00:00Z", -value = 947, +value = 947F, }, new { timestamp = "1974-07-01T00:00:00Z", -value = 908, +value = 908F, }, new { timestamp = "1974-08-01T00:00:00Z", -value = 867, +value = 867F, }, new { timestamp = "1974-09-01T00:00:00Z", -value = 815, +value = 815F, }, new { timestamp = "1974-10-01T00:00:00Z", -value = 812, +value = 812F, }, new { timestamp = "1974-11-01T00:00:00Z", -value = 773, +value = 773F, }, new { timestamp = "1974-12-01T00:00:00Z", -value = 813, +value = 813F, }, new { timestamp = "1975-01-01T00:00:00Z", -value = 834, +value = 834F, }, new { timestamp = "1975-02-01T00:00:00Z", -value = 782, +value = 782F, }, new { timestamp = "1975-03-01T00:00:00Z", -value = 892, +value = 892F, }, new { timestamp = "1975-04-01T00:00:00Z", -value = 903, +value = 903F, }, new { timestamp = "1975-05-01T00:00:00Z", -value = 966, +value = 966F, }, new { timestamp = "1975-06-01T00:00:00Z", -value = 937, +value = 937F, }, new { timestamp = "1975-07-01T00:00:00Z", -value = 896, +value = 896F, }, new { timestamp = "1975-08-01T00:00:00Z", -value = 858, +value = 858F, }, new { timestamp = "1975-09-01T00:00:00Z", -value = 817, +value = 817F, }, new { timestamp = "1975-10-01T00:00:00Z", -value = 827, +value = 827F, }, new { timestamp = "1975-11-01T00:00:00Z", -value = 797, +value = 797F, }, new { timestamp = "1975-12-01T00:00:00Z", -value = 843, +value = 843F, } }, - maxAnomalyRatio = 0.25, + maxAnomalyRatio = 0.25F, sensitivity = 95, granularity = "monthly", imputeMode = "fixed", - imputeFixedValue = 800, + imputeFixedValue = 800F, }); Response response = client.DetectUnivariateLastPoint(content); @@ -843,249 +843,249 @@ public async Task Example_Univariate_DetectUnivariateLastPoint_DetectUnivariateL new { timestamp = "1972-01-01T00:00:00Z", -value = 826, +value = 826F, }, new { timestamp = "1972-02-01T00:00:00Z", -value = 799, +value = 799F, }, new { timestamp = "1972-03-01T00:00:00Z", -value = 890, +value = 890F, }, new { timestamp = "1972-04-01T00:00:00Z", -value = 900, +value = 900F, }, new { timestamp = "1972-05-01T00:00:00Z", -value = 961, +value = 961F, }, new { timestamp = "1972-06-01T00:00:00Z", -value = 935, +value = 935F, }, new { timestamp = "1972-07-01T00:00:00Z", -value = 894, +value = 894F, }, new { timestamp = "1972-08-01T00:00:00Z", -value = 855, +value = 855F, }, new { timestamp = "1972-09-01T00:00:00Z", -value = 809, +value = 809F, }, new { timestamp = "1972-10-01T00:00:00Z", -value = 810, +value = 810F, }, new { timestamp = "1972-11-01T00:00:00Z", -value = 766, +value = 766F, }, new { timestamp = "1972-12-01T00:00:00Z", -value = 805, +value = 805F, }, new { timestamp = "1973-01-01T00:00:00Z", -value = 821, +value = 821F, }, new { timestamp = "1973-02-01T00:00:00Z", -value = 773, +value = 773F, }, new { timestamp = "1973-03-01T00:00:00Z", -value = 883, +value = 883F, }, new { timestamp = "1973-04-01T00:00:00Z", -value = 898, +value = 898F, }, new { timestamp = "1973-05-01T00:00:00Z", -value = 957, +value = 957F, }, new { timestamp = "1973-06-01T00:00:00Z", -value = 924, +value = 924F, }, new { timestamp = "1973-07-01T00:00:00Z", -value = 881, +value = 881F, }, new { timestamp = "1973-08-01T00:00:00Z", -value = 837, +value = 837F, }, new { timestamp = "1973-09-01T00:00:00Z", -value = 784, +value = 784F, }, new { timestamp = "1973-10-01T00:00:00Z", -value = 791, +value = 791F, }, new { timestamp = "1973-11-01T00:00:00Z", -value = 760, +value = 760F, }, new { timestamp = "1973-12-01T00:00:00Z", -value = 802, +value = 802F, }, new { timestamp = "1974-01-01T00:00:00Z", -value = 828, +value = 828F, }, new { timestamp = "1974-02-01T00:00:00Z", -value = 1030, +value = 1030F, }, new { timestamp = "1974-03-01T00:00:00Z", -value = 889, +value = 889F, }, new { timestamp = "1974-04-01T00:00:00Z", -value = 902, +value = 902F, }, new { timestamp = "1974-05-01T00:00:00Z", -value = 969, +value = 969F, }, new { timestamp = "1974-06-01T00:00:00Z", -value = 947, +value = 947F, }, new { timestamp = "1974-07-01T00:00:00Z", -value = 908, +value = 908F, }, new { timestamp = "1974-08-01T00:00:00Z", -value = 867, +value = 867F, }, new { timestamp = "1974-09-01T00:00:00Z", -value = 815, +value = 815F, }, new { timestamp = "1974-10-01T00:00:00Z", -value = 812, +value = 812F, }, new { timestamp = "1974-11-01T00:00:00Z", -value = 773, +value = 773F, }, new { timestamp = "1974-12-01T00:00:00Z", -value = 813, +value = 813F, }, new { timestamp = "1975-01-01T00:00:00Z", -value = 834, +value = 834F, }, new { timestamp = "1975-02-01T00:00:00Z", -value = 782, +value = 782F, }, new { timestamp = "1975-03-01T00:00:00Z", -value = 892, +value = 892F, }, new { timestamp = "1975-04-01T00:00:00Z", -value = 903, +value = 903F, }, new { timestamp = "1975-05-01T00:00:00Z", -value = 966, +value = 966F, }, new { timestamp = "1975-06-01T00:00:00Z", -value = 937, +value = 937F, }, new { timestamp = "1975-07-01T00:00:00Z", -value = 896, +value = 896F, }, new { timestamp = "1975-08-01T00:00:00Z", -value = 858, +value = 858F, }, new { timestamp = "1975-09-01T00:00:00Z", -value = 817, +value = 817F, }, new { timestamp = "1975-10-01T00:00:00Z", -value = 827, +value = 827F, }, new { timestamp = "1975-11-01T00:00:00Z", -value = 797, +value = 797F, }, new { timestamp = "1975-12-01T00:00:00Z", -value = 843, +value = 843F, } }, - maxAnomalyRatio = 0.25, + maxAnomalyRatio = 0.25F, sensitivity = 95, granularity = "monthly", imputeMode = "fixed", - imputeFixedValue = 800, + imputeFixedValue = 800F, }); Response response = await client.DetectUnivariateLastPointAsync(content); @@ -1110,205 +1110,205 @@ public void Example_Univariate_DetectUnivariateLastPoint_DetectUnivariateLastPoi UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[] { -new TimeSeriesPoint(826) +new TimeSeriesPoint(826F) { Timestamp = DateTimeOffset.Parse("1972-01-01T00:00:00Z"), }, -new TimeSeriesPoint(799) +new TimeSeriesPoint(799F) { Timestamp = DateTimeOffset.Parse("1972-02-01T00:00:00Z"), }, -new TimeSeriesPoint(890) +new TimeSeriesPoint(890F) { Timestamp = DateTimeOffset.Parse("1972-03-01T00:00:00Z"), }, -new TimeSeriesPoint(900) +new TimeSeriesPoint(900F) { Timestamp = DateTimeOffset.Parse("1972-04-01T00:00:00Z"), }, -new TimeSeriesPoint(961) +new TimeSeriesPoint(961F) { Timestamp = DateTimeOffset.Parse("1972-05-01T00:00:00Z"), }, -new TimeSeriesPoint(935) +new TimeSeriesPoint(935F) { Timestamp = DateTimeOffset.Parse("1972-06-01T00:00:00Z"), }, -new TimeSeriesPoint(894) +new TimeSeriesPoint(894F) { Timestamp = DateTimeOffset.Parse("1972-07-01T00:00:00Z"), }, -new TimeSeriesPoint(855) +new TimeSeriesPoint(855F) { Timestamp = DateTimeOffset.Parse("1972-08-01T00:00:00Z"), }, -new TimeSeriesPoint(809) +new TimeSeriesPoint(809F) { Timestamp = DateTimeOffset.Parse("1972-09-01T00:00:00Z"), }, -new TimeSeriesPoint(810) +new TimeSeriesPoint(810F) { Timestamp = DateTimeOffset.Parse("1972-10-01T00:00:00Z"), }, -new TimeSeriesPoint(766) +new TimeSeriesPoint(766F) { Timestamp = DateTimeOffset.Parse("1972-11-01T00:00:00Z"), }, -new TimeSeriesPoint(805) +new TimeSeriesPoint(805F) { Timestamp = DateTimeOffset.Parse("1972-12-01T00:00:00Z"), }, -new TimeSeriesPoint(821) +new TimeSeriesPoint(821F) { Timestamp = DateTimeOffset.Parse("1973-01-01T00:00:00Z"), }, -new TimeSeriesPoint(773) +new TimeSeriesPoint(773F) { Timestamp = DateTimeOffset.Parse("1973-02-01T00:00:00Z"), }, -new TimeSeriesPoint(883) +new TimeSeriesPoint(883F) { Timestamp = DateTimeOffset.Parse("1973-03-01T00:00:00Z"), }, -new TimeSeriesPoint(898) +new TimeSeriesPoint(898F) { Timestamp = DateTimeOffset.Parse("1973-04-01T00:00:00Z"), }, -new TimeSeriesPoint(957) +new TimeSeriesPoint(957F) { Timestamp = DateTimeOffset.Parse("1973-05-01T00:00:00Z"), }, -new TimeSeriesPoint(924) +new TimeSeriesPoint(924F) { Timestamp = DateTimeOffset.Parse("1973-06-01T00:00:00Z"), }, -new TimeSeriesPoint(881) +new TimeSeriesPoint(881F) { Timestamp = DateTimeOffset.Parse("1973-07-01T00:00:00Z"), }, -new TimeSeriesPoint(837) +new TimeSeriesPoint(837F) { Timestamp = DateTimeOffset.Parse("1973-08-01T00:00:00Z"), }, -new TimeSeriesPoint(784) +new TimeSeriesPoint(784F) { Timestamp = DateTimeOffset.Parse("1973-09-01T00:00:00Z"), }, -new TimeSeriesPoint(791) +new TimeSeriesPoint(791F) { Timestamp = DateTimeOffset.Parse("1973-10-01T00:00:00Z"), }, -new TimeSeriesPoint(760) +new TimeSeriesPoint(760F) { Timestamp = DateTimeOffset.Parse("1973-11-01T00:00:00Z"), }, -new TimeSeriesPoint(802) +new TimeSeriesPoint(802F) { Timestamp = DateTimeOffset.Parse("1973-12-01T00:00:00Z"), }, -new TimeSeriesPoint(828) +new TimeSeriesPoint(828F) { Timestamp = DateTimeOffset.Parse("1974-01-01T00:00:00Z"), }, -new TimeSeriesPoint(1030) +new TimeSeriesPoint(1030F) { Timestamp = DateTimeOffset.Parse("1974-02-01T00:00:00Z"), }, -new TimeSeriesPoint(889) +new TimeSeriesPoint(889F) { Timestamp = DateTimeOffset.Parse("1974-03-01T00:00:00Z"), }, -new TimeSeriesPoint(902) +new TimeSeriesPoint(902F) { Timestamp = DateTimeOffset.Parse("1974-04-01T00:00:00Z"), }, -new TimeSeriesPoint(969) +new TimeSeriesPoint(969F) { Timestamp = DateTimeOffset.Parse("1974-05-01T00:00:00Z"), }, -new TimeSeriesPoint(947) +new TimeSeriesPoint(947F) { Timestamp = DateTimeOffset.Parse("1974-06-01T00:00:00Z"), }, -new TimeSeriesPoint(908) +new TimeSeriesPoint(908F) { Timestamp = DateTimeOffset.Parse("1974-07-01T00:00:00Z"), }, -new TimeSeriesPoint(867) +new TimeSeriesPoint(867F) { Timestamp = DateTimeOffset.Parse("1974-08-01T00:00:00Z"), }, -new TimeSeriesPoint(815) +new TimeSeriesPoint(815F) { Timestamp = DateTimeOffset.Parse("1974-09-01T00:00:00Z"), }, -new TimeSeriesPoint(812) +new TimeSeriesPoint(812F) { Timestamp = DateTimeOffset.Parse("1974-10-01T00:00:00Z"), }, -new TimeSeriesPoint(773) +new TimeSeriesPoint(773F) { Timestamp = DateTimeOffset.Parse("1974-11-01T00:00:00Z"), }, -new TimeSeriesPoint(813) +new TimeSeriesPoint(813F) { Timestamp = DateTimeOffset.Parse("1974-12-01T00:00:00Z"), }, -new TimeSeriesPoint(834) +new TimeSeriesPoint(834F) { Timestamp = DateTimeOffset.Parse("1975-01-01T00:00:00Z"), }, -new TimeSeriesPoint(782) +new TimeSeriesPoint(782F) { Timestamp = DateTimeOffset.Parse("1975-02-01T00:00:00Z"), }, -new TimeSeriesPoint(892) +new TimeSeriesPoint(892F) { Timestamp = DateTimeOffset.Parse("1975-03-01T00:00:00Z"), }, -new TimeSeriesPoint(903) +new TimeSeriesPoint(903F) { Timestamp = DateTimeOffset.Parse("1975-04-01T00:00:00Z"), }, -new TimeSeriesPoint(966) +new TimeSeriesPoint(966F) { Timestamp = DateTimeOffset.Parse("1975-05-01T00:00:00Z"), }, -new TimeSeriesPoint(937) +new TimeSeriesPoint(937F) { Timestamp = DateTimeOffset.Parse("1975-06-01T00:00:00Z"), }, -new TimeSeriesPoint(896) +new TimeSeriesPoint(896F) { Timestamp = DateTimeOffset.Parse("1975-07-01T00:00:00Z"), }, -new TimeSeriesPoint(858) +new TimeSeriesPoint(858F) { Timestamp = DateTimeOffset.Parse("1975-08-01T00:00:00Z"), }, -new TimeSeriesPoint(817) +new TimeSeriesPoint(817F) { Timestamp = DateTimeOffset.Parse("1975-09-01T00:00:00Z"), }, -new TimeSeriesPoint(827) +new TimeSeriesPoint(827F) { Timestamp = DateTimeOffset.Parse("1975-10-01T00:00:00Z"), }, -new TimeSeriesPoint(797) +new TimeSeriesPoint(797F) { Timestamp = DateTimeOffset.Parse("1975-11-01T00:00:00Z"), }, -new TimeSeriesPoint(843) +new TimeSeriesPoint(843F) { Timestamp = DateTimeOffset.Parse("1975-12-01T00:00:00Z"), } }) { Granularity = TimeGranularity.Monthly, - MaxAnomalyRatio = (float)0.25, + MaxAnomalyRatio = 0.25F, Sensitivity = 95, ImputeMode = ImputeMode.Fixed, - ImputeFixedValue = 800, + ImputeFixedValue = 800F, }; Response response = client.DetectUnivariateLastPoint(options); } @@ -1323,205 +1323,205 @@ public async Task Example_Univariate_DetectUnivariateLastPoint_DetectUnivariateL UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[] { -new TimeSeriesPoint(826) +new TimeSeriesPoint(826F) { Timestamp = DateTimeOffset.Parse("1972-01-01T00:00:00Z"), }, -new TimeSeriesPoint(799) +new TimeSeriesPoint(799F) { Timestamp = DateTimeOffset.Parse("1972-02-01T00:00:00Z"), }, -new TimeSeriesPoint(890) +new TimeSeriesPoint(890F) { Timestamp = DateTimeOffset.Parse("1972-03-01T00:00:00Z"), }, -new TimeSeriesPoint(900) +new TimeSeriesPoint(900F) { Timestamp = DateTimeOffset.Parse("1972-04-01T00:00:00Z"), }, -new TimeSeriesPoint(961) +new TimeSeriesPoint(961F) { Timestamp = DateTimeOffset.Parse("1972-05-01T00:00:00Z"), }, -new TimeSeriesPoint(935) +new TimeSeriesPoint(935F) { Timestamp = DateTimeOffset.Parse("1972-06-01T00:00:00Z"), }, -new TimeSeriesPoint(894) +new TimeSeriesPoint(894F) { Timestamp = DateTimeOffset.Parse("1972-07-01T00:00:00Z"), }, -new TimeSeriesPoint(855) +new TimeSeriesPoint(855F) { Timestamp = DateTimeOffset.Parse("1972-08-01T00:00:00Z"), }, -new TimeSeriesPoint(809) +new TimeSeriesPoint(809F) { Timestamp = DateTimeOffset.Parse("1972-09-01T00:00:00Z"), }, -new TimeSeriesPoint(810) +new TimeSeriesPoint(810F) { Timestamp = DateTimeOffset.Parse("1972-10-01T00:00:00Z"), }, -new TimeSeriesPoint(766) +new TimeSeriesPoint(766F) { Timestamp = DateTimeOffset.Parse("1972-11-01T00:00:00Z"), }, -new TimeSeriesPoint(805) +new TimeSeriesPoint(805F) { Timestamp = DateTimeOffset.Parse("1972-12-01T00:00:00Z"), }, -new TimeSeriesPoint(821) +new TimeSeriesPoint(821F) { Timestamp = DateTimeOffset.Parse("1973-01-01T00:00:00Z"), }, -new TimeSeriesPoint(773) +new TimeSeriesPoint(773F) { Timestamp = DateTimeOffset.Parse("1973-02-01T00:00:00Z"), }, -new TimeSeriesPoint(883) +new TimeSeriesPoint(883F) { Timestamp = DateTimeOffset.Parse("1973-03-01T00:00:00Z"), }, -new TimeSeriesPoint(898) +new TimeSeriesPoint(898F) { Timestamp = DateTimeOffset.Parse("1973-04-01T00:00:00Z"), }, -new TimeSeriesPoint(957) +new TimeSeriesPoint(957F) { Timestamp = DateTimeOffset.Parse("1973-05-01T00:00:00Z"), }, -new TimeSeriesPoint(924) +new TimeSeriesPoint(924F) { Timestamp = DateTimeOffset.Parse("1973-06-01T00:00:00Z"), }, -new TimeSeriesPoint(881) +new TimeSeriesPoint(881F) { Timestamp = DateTimeOffset.Parse("1973-07-01T00:00:00Z"), }, -new TimeSeriesPoint(837) +new TimeSeriesPoint(837F) { Timestamp = DateTimeOffset.Parse("1973-08-01T00:00:00Z"), }, -new TimeSeriesPoint(784) +new TimeSeriesPoint(784F) { Timestamp = DateTimeOffset.Parse("1973-09-01T00:00:00Z"), }, -new TimeSeriesPoint(791) +new TimeSeriesPoint(791F) { Timestamp = DateTimeOffset.Parse("1973-10-01T00:00:00Z"), }, -new TimeSeriesPoint(760) +new TimeSeriesPoint(760F) { Timestamp = DateTimeOffset.Parse("1973-11-01T00:00:00Z"), }, -new TimeSeriesPoint(802) +new TimeSeriesPoint(802F) { Timestamp = DateTimeOffset.Parse("1973-12-01T00:00:00Z"), }, -new TimeSeriesPoint(828) +new TimeSeriesPoint(828F) { Timestamp = DateTimeOffset.Parse("1974-01-01T00:00:00Z"), }, -new TimeSeriesPoint(1030) +new TimeSeriesPoint(1030F) { Timestamp = DateTimeOffset.Parse("1974-02-01T00:00:00Z"), }, -new TimeSeriesPoint(889) +new TimeSeriesPoint(889F) { Timestamp = DateTimeOffset.Parse("1974-03-01T00:00:00Z"), }, -new TimeSeriesPoint(902) +new TimeSeriesPoint(902F) { Timestamp = DateTimeOffset.Parse("1974-04-01T00:00:00Z"), }, -new TimeSeriesPoint(969) +new TimeSeriesPoint(969F) { Timestamp = DateTimeOffset.Parse("1974-05-01T00:00:00Z"), }, -new TimeSeriesPoint(947) +new TimeSeriesPoint(947F) { Timestamp = DateTimeOffset.Parse("1974-06-01T00:00:00Z"), }, -new TimeSeriesPoint(908) +new TimeSeriesPoint(908F) { Timestamp = DateTimeOffset.Parse("1974-07-01T00:00:00Z"), }, -new TimeSeriesPoint(867) +new TimeSeriesPoint(867F) { Timestamp = DateTimeOffset.Parse("1974-08-01T00:00:00Z"), }, -new TimeSeriesPoint(815) +new TimeSeriesPoint(815F) { Timestamp = DateTimeOffset.Parse("1974-09-01T00:00:00Z"), }, -new TimeSeriesPoint(812) +new TimeSeriesPoint(812F) { Timestamp = DateTimeOffset.Parse("1974-10-01T00:00:00Z"), }, -new TimeSeriesPoint(773) +new TimeSeriesPoint(773F) { Timestamp = DateTimeOffset.Parse("1974-11-01T00:00:00Z"), }, -new TimeSeriesPoint(813) +new TimeSeriesPoint(813F) { Timestamp = DateTimeOffset.Parse("1974-12-01T00:00:00Z"), }, -new TimeSeriesPoint(834) +new TimeSeriesPoint(834F) { Timestamp = DateTimeOffset.Parse("1975-01-01T00:00:00Z"), }, -new TimeSeriesPoint(782) +new TimeSeriesPoint(782F) { Timestamp = DateTimeOffset.Parse("1975-02-01T00:00:00Z"), }, -new TimeSeriesPoint(892) +new TimeSeriesPoint(892F) { Timestamp = DateTimeOffset.Parse("1975-03-01T00:00:00Z"), }, -new TimeSeriesPoint(903) +new TimeSeriesPoint(903F) { Timestamp = DateTimeOffset.Parse("1975-04-01T00:00:00Z"), }, -new TimeSeriesPoint(966) +new TimeSeriesPoint(966F) { Timestamp = DateTimeOffset.Parse("1975-05-01T00:00:00Z"), }, -new TimeSeriesPoint(937) +new TimeSeriesPoint(937F) { Timestamp = DateTimeOffset.Parse("1975-06-01T00:00:00Z"), }, -new TimeSeriesPoint(896) +new TimeSeriesPoint(896F) { Timestamp = DateTimeOffset.Parse("1975-07-01T00:00:00Z"), }, -new TimeSeriesPoint(858) +new TimeSeriesPoint(858F) { Timestamp = DateTimeOffset.Parse("1975-08-01T00:00:00Z"), }, -new TimeSeriesPoint(817) +new TimeSeriesPoint(817F) { Timestamp = DateTimeOffset.Parse("1975-09-01T00:00:00Z"), }, -new TimeSeriesPoint(827) +new TimeSeriesPoint(827F) { Timestamp = DateTimeOffset.Parse("1975-10-01T00:00:00Z"), }, -new TimeSeriesPoint(797) +new TimeSeriesPoint(797F) { Timestamp = DateTimeOffset.Parse("1975-11-01T00:00:00Z"), }, -new TimeSeriesPoint(843) +new TimeSeriesPoint(843F) { Timestamp = DateTimeOffset.Parse("1975-12-01T00:00:00Z"), } }) { Granularity = TimeGranularity.Monthly, - MaxAnomalyRatio = (float)0.25, + MaxAnomalyRatio = 0.25F, Sensitivity = 95, ImputeMode = ImputeMode.Fixed, - ImputeFixedValue = 800, + ImputeFixedValue = 800F, }; Response response = await client.DetectUnivariateLastPointAsync(options); } @@ -1541,1293 +1541,1293 @@ public void Example_Univariate_DetectUnivariateChangePoint_UnivariateDetectionOf new { timestamp = "2017-01-01T06:45:00Z", -value = 1639196, +value = 1639196F, }, new { timestamp = "2017-01-01T06:50:00Z", -value = 1639290, +value = 1639290F, }, new { timestamp = "2017-01-01T06:55:00Z", -value = 1667293, +value = 1667293F, }, new { timestamp = "2017-01-01T07:00:00Z", -value = 1703130, +value = 1703130F, }, new { timestamp = "2017-01-01T07:05:00Z", -value = 1650912, +value = 1650912F, }, new { timestamp = "2017-01-01T07:10:00Z", -value = 1653596, +value = 1653596F, }, new { timestamp = "2017-01-01T07:15:00Z", -value = 1653793, +value = 1653793F, }, new { timestamp = "2017-01-01T07:20:00Z", -value = 1653795, +value = 1653795F, }, new { timestamp = "2017-01-01T07:25:00Z", -value = 1663471, +value = 1663471F, }, new { timestamp = "2017-01-01T07:30:00Z", -value = 1662358, +value = 1662358F, }, new { timestamp = "2017-01-01T07:35:00Z", -value = 1664320, +value = 1664320F, }, new { timestamp = "2017-01-01T07:40:00Z", -value = 1664942, +value = 1664942F, }, new { timestamp = "2017-01-01T07:45:00Z", -value = 1664966, +value = 1664966F, }, new { timestamp = "2017-01-01T07:50:00Z", -value = 1724271, +value = 1724271F, }, new { timestamp = "2017-01-01T07:55:00Z", -value = 1678720, +value = 1678720F, }, new { timestamp = "2017-01-01T08:00:00Z", -value = 1672536, +value = 1672536F, }, new { timestamp = "2017-01-01T08:05:00Z", -value = 1672544, +value = 1672544F, }, new { timestamp = "2017-01-01T08:10:00Z", -value = 1672364, +value = 1672364F, }, new { timestamp = "2017-01-01T08:15:00Z", -value = 1672912, +value = 1672912F, }, new { timestamp = "2017-01-01T08:20:00Z", -value = 1672736, +value = 1672736F, }, new { timestamp = "2017-01-01T08:25:00Z", -value = 1672725, +value = 1672725F, }, new { timestamp = "2017-01-01T08:30:00Z", -value = 1673247, +value = 1673247F, }, new { timestamp = "2017-01-01T08:35:00Z", -value = 1673109, +value = 1673109F, }, new { timestamp = "2017-01-01T08:40:00Z", -value = 1690088, +value = 1690088F, }, new { timestamp = "2017-01-01T08:45:00Z", -value = 1703865, +value = 1703865F, }, new { timestamp = "2017-01-01T08:50:00Z", -value = 1703865, +value = 1703865F, }, new { timestamp = "2017-01-01T08:55:00Z", -value = 1786581, +value = 1786581F, }, new { timestamp = "2017-01-01T09:00:00Z", -value = 1800945, +value = 1800945F, }, new { timestamp = "2017-01-01T09:05:00Z", -value = 1800957, +value = 1800957F, }, new { timestamp = "2017-01-01T09:10:00Z", -value = 1801191, +value = 1801191F, }, new { timestamp = "2017-01-01T09:15:00Z", -value = 1801412, +value = 1801412F, }, new { timestamp = "2017-01-01T09:20:00Z", -value = 1801621, +value = 1801621F, }, new { timestamp = "2017-01-01T09:25:00Z", -value = 1801621, +value = 1801621F, }, new { timestamp = "2017-01-01T09:30:00Z", -value = 1801654, +value = 1801654F, }, new { timestamp = "2017-01-01T09:35:00Z", -value = 1802105, +value = 1802105F, }, new { timestamp = "2017-01-01T09:40:00Z", -value = 1801800, +value = 1801800F, }, new { timestamp = "2017-01-01T09:45:00Z", -value = 1803040, +value = 1803040F, }, new { timestamp = "2017-01-01T09:50:00Z", -value = 1803672, +value = 1803672F, }, new { timestamp = "2017-01-01T09:55:00Z", -value = 1803535, +value = 1803535F, }, new { timestamp = "2017-01-01T10:00:00Z", -value = 1803541, +value = 1803541F, }, new { timestamp = "2017-01-01T10:05:00Z", -value = 1803545, +value = 1803545F, }, new { timestamp = "2017-01-01T10:10:00Z", -value = 1803599, +value = 1803599F, }, new { timestamp = "2017-01-01T10:15:00Z", -value = 1803616, +value = 1803616F, }, new { timestamp = "2017-01-01T10:20:00Z", -value = 1803619, +value = 1803619F, }, new { timestamp = "2017-01-01T10:25:00Z", -value = 1809942, +value = 1809942F, }, new { timestamp = "2017-01-01T10:30:00Z", -value = 1802720, +value = 1802720F, }, new { timestamp = "2017-01-01T10:35:00Z", -value = 1802720, +value = 1802720F, }, new { timestamp = "2017-01-01T10:40:00Z", -value = 1802888, +value = 1802888F, }, new { timestamp = "2017-01-01T10:45:00Z", -value = 1809574, +value = 1809574F, }, new { timestamp = "2017-01-01T10:50:00Z", -value = 1803896, +value = 1803896F, }, new { timestamp = "2017-01-01T10:55:00Z", -value = 1803850, +value = 1803850F, }, new { timestamp = "2017-01-01T11:00:00Z", -value = 1803854, +value = 1803854F, }, new { timestamp = "2017-01-01T11:05:00Z", -value = 1803854, +value = 1803854F, }, new { timestamp = "2017-01-01T11:10:00Z", -value = 1803797, +value = 1803797F, }, new { timestamp = "2017-01-01T11:15:00Z", -value = 1803921, +value = 1803921F, }, new { timestamp = "2017-01-01T11:20:00Z", -value = 1803933, +value = 1803933F, }, new { timestamp = "2017-01-01T11:25:00Z", -value = 1804040, +value = 1804040F, }, new { timestamp = "2017-01-01T11:30:00Z", -value = 1804044, +value = 1804044F, }, new { timestamp = "2017-01-01T11:35:00Z", -value = 1804070, +value = 1804070F, }, new { timestamp = "2017-01-01T11:40:00Z", -value = 1804070, +value = 1804070F, }, new { timestamp = "2017-01-01T11:45:00Z", -value = 1804068, +value = 1804068F, }, new { timestamp = "2017-01-01T11:50:00Z", -value = 1804073, +value = 1804073F, }, new { timestamp = "2017-01-01T11:55:00Z", -value = 1804101, +value = 1804101F, }, new { timestamp = "2017-01-01T12:00:00Z", -value = 1804674, +value = 1804674F, }, new { timestamp = "2017-01-01T12:05:00Z", -value = 1804714, +value = 1804714F, }, new { timestamp = "2017-01-01T12:10:00Z", -value = 1804730, +value = 1804730F, }, new { timestamp = "2017-01-01T12:15:00Z", -value = 1804816, +value = 1804816F, }, new { timestamp = "2017-01-01T12:20:00Z", -value = 1803996, +value = 1803996F, }, new { timestamp = "2017-01-01T12:25:00Z", -value = 1803998, +value = 1803998F, }, new { timestamp = "2017-01-01T12:30:00Z", -value = 1804015, +value = 1804015F, }, new { timestamp = "2017-01-01T12:35:00Z", -value = 1804047, +value = 1804047F, }, new { timestamp = "2017-01-01T12:40:00Z", -value = 1804050, +value = 1804050F, }, new { timestamp = "2017-01-01T12:45:00Z", -value = 1804218, +value = 1804218F, }, new { timestamp = "2017-01-01T12:50:00Z", -value = 1804217, +value = 1804217F, }, new { timestamp = "2017-01-01T12:55:00Z", -value = 1804217, +value = 1804217F, }, new { timestamp = "2017-01-01T13:00:00Z", -value = 1804205, +value = 1804205F, }, new { timestamp = "2017-01-01T13:05:00Z", -value = 1804728, +value = 1804728F, }, new { timestamp = "2017-01-01T13:10:00Z", -value = 1804748, +value = 1804748F, }, new { timestamp = "2017-01-01T13:15:00Z", -value = 1805232, +value = 1805232F, }, new { timestamp = "2017-01-01T13:20:00Z", -value = 1814121, +value = 1814121F, }, new { timestamp = "2017-01-01T13:25:00Z", -value = 1806789, +value = 1806789F, }, new { timestamp = "2017-01-01T13:30:00Z", -value = 1806119, +value = 1806119F, }, new { timestamp = "2017-01-01T13:35:00Z", -value = 1806329, +value = 1806329F, }, new { timestamp = "2017-01-01T13:40:00Z", -value = 1806454, +value = 1806454F, }, new { timestamp = "2017-01-01T13:45:00Z", -value = 1806852, +value = 1806852F, }, new { timestamp = "2017-01-01T13:50:00Z", -value = 1807347, +value = 1807347F, }, new { timestamp = "2017-01-01T13:55:00Z", -value = 1812144, +value = 1812144F, }, new { timestamp = "2017-01-01T14:00:00Z", -value = 1807418, +value = 1807418F, }, new { timestamp = "2017-01-01T14:05:00Z", -value = 1807418, +value = 1807418F, }, new { timestamp = "2017-01-01T14:10:00Z", -value = 1807432, +value = 1807432F, }, new { timestamp = "2017-01-01T14:15:00Z", -value = 1808540, +value = 1808540F, }, new { timestamp = "2017-01-01T14:20:00Z", -value = 1808541, +value = 1808541F, }, new { timestamp = "2017-01-01T14:25:00Z", -value = 1807831, +value = 1807831F, }, new { timestamp = "2017-01-01T14:30:00Z", -value = 1807852, +value = 1807852F, }, new { timestamp = "2017-01-01T14:35:00Z", -value = 1807811, +value = 1807811F, }, new { timestamp = "2017-01-01T14:40:00Z", -value = 2214285, +value = 2214285F, }, new { timestamp = "2017-01-01T14:45:00Z", -value = 2215019, +value = 2215019F, }, new { timestamp = "2017-01-01T14:50:00Z", -value = 2215329, +value = 2215329F, }, new { timestamp = "2017-01-01T14:55:00Z", -value = 2215097, +value = 2215097F, }, new { timestamp = "2017-01-01T15:00:00Z", -value = 2215129, +value = 2215129F, }, new { timestamp = "2017-01-01T15:05:00Z", -value = 2215120, +value = 2215120F, }, new { timestamp = "2017-01-01T15:10:00Z", -value = 2217056, +value = 2217056F, }, new { timestamp = "2017-01-01T15:15:00Z", -value = 2217056, +value = 2217056F, }, new { timestamp = "2017-01-01T15:20:00Z", -value = 2222126, +value = 2222126F, }, new { timestamp = "2017-01-01T15:25:00Z", -value = 2226472, +value = 2226472F, }, new { timestamp = "2017-01-01T15:30:00Z", -value = 2226722, +value = 2226722F, }, new { timestamp = "2017-01-01T15:35:00Z", -value = 2226729, +value = 2226729F, }, new { timestamp = "2017-01-01T15:40:00Z", -value = 2226735, +value = 2226735F, }, new { timestamp = "2017-01-01T15:45:00Z", -value = 2226735, +value = 2226735F, }, new { timestamp = "2017-01-01T15:50:00Z", -value = 2226735, +value = 2226735F, }, new { timestamp = "2017-01-01T15:55:00Z", -value = 2226952, +value = 2226952F, }, new { timestamp = "2017-01-01T16:00:00Z", -value = 2226962, +value = 2226962F, }, new { timestamp = "2017-01-01T16:05:00Z", -value = 2649337, +value = 2649337F, }, new { timestamp = "2017-01-01T16:10:00Z", -value = 2092796, +value = 2092796F, }, new { timestamp = "2017-01-01T16:15:00Z", -value = 2092839, +value = 2092839F, }, new { timestamp = "2017-01-01T16:20:00Z", -value = 2092940, +value = 2092940F, }, new { timestamp = "2017-01-01T16:25:00Z", -value = 2092940, +value = 2092940F, }, new { timestamp = "2017-01-01T16:30:00Z", -value = 2092965, +value = 2092965F, }, new { timestamp = "2017-01-01T16:35:00Z", -value = 2092979, +value = 2092979F, }, new { timestamp = "2017-01-01T16:40:00Z", -value = 2095588, +value = 2095588F, }, new { timestamp = "2017-01-01T16:45:00Z", -value = 2099586, +value = 2099586F, }, new { timestamp = "2017-01-01T16:50:00Z", -value = 2102981, +value = 2102981F, }, new { timestamp = "2017-01-01T16:55:00Z", -value = 2108053, +value = 2108053F, }, new { timestamp = "2017-01-01T17:00:00Z", -value = 2107907, +value = 2107907F, }, new { timestamp = "2017-01-01T17:05:00Z", -value = 2108241, +value = 2108241F, }, new { timestamp = "2017-01-01T17:10:00Z", -value = 2100321, +value = 2100321F, }, new { timestamp = "2017-01-01T17:15:00Z", -value = 2100448, +value = 2100448F, }, new { timestamp = "2017-01-01T17:20:00Z", -value = 2100483, +value = 2100483F, }, new { timestamp = "2017-01-01T17:25:00Z", -value = 2103042, +value = 2103042F, }, new { timestamp = "2017-01-01T17:30:00Z", -value = 2103037, +value = 2103037F, }, new { timestamp = "2017-01-01T17:35:00Z", -value = 2103040, +value = 2103040F, }, new { timestamp = "2017-01-01T17:40:00Z", -value = 2103054, +value = 2103054F, }, new { timestamp = "2017-01-01T17:45:00Z", -value = 2103058, +value = 2103058F, }, new { timestamp = "2017-01-01T17:50:00Z", -value = 1830757, +value = 1830757F, }, new { timestamp = "2017-01-01T17:55:00Z", -value = 1830855, +value = 1830855F, }, new { timestamp = "2017-01-01T18:00:00Z", -value = 1831495, +value = 1831495F, }, new { timestamp = "2017-01-01T18:05:00Z", -value = 1831463, +value = 1831463F, }, new { timestamp = "2017-01-01T18:10:00Z", -value = 1831963, +value = 1831963F, }, new { timestamp = "2017-01-01T18:15:00Z", -value = 1832046, +value = 1832046F, }, new { timestamp = "2017-01-01T18:20:00Z", -value = 1832070, +value = 1832070F, }, new { timestamp = "2017-01-01T18:25:00Z", -value = 1835511, +value = 1835511F, }, new { timestamp = "2017-01-01T18:30:00Z", -value = 1835265, +value = 1835265F, }, new { timestamp = "2017-01-01T18:35:00Z", -value = 1835481, +value = 1835481F, }, new { timestamp = "2017-01-01T18:40:00Z", -value = 1835578, +value = 1835578F, }, new { timestamp = "2017-01-01T18:45:00Z", -value = 1835611, +value = 1835611F, }, new { timestamp = "2017-01-01T18:50:00Z", -value = 1836314, +value = 1836314F, }, new { timestamp = "2017-01-01T18:55:00Z", -value = 1836369, +value = 1836369F, }, new { timestamp = "2017-01-01T19:00:00Z", -value = 1837280, +value = 1837280F, }, new { timestamp = "2017-01-01T19:05:00Z", -value = 1842939, +value = 1842939F, }, new { timestamp = "2017-01-01T19:10:00Z", -value = 1843126, +value = 1843126F, }, new { timestamp = "2017-01-01T19:15:00Z", -value = 1845840, +value = 1845840F, }, new { timestamp = "2017-01-01T19:20:00Z", -value = 1842444, +value = 1842444F, }, new { timestamp = "2017-01-01T19:25:00Z", -value = 1839891, +value = 1839891F, }, new { timestamp = "2017-01-01T19:30:00Z", -value = 1839875, +value = 1839875F, }, new { timestamp = "2017-01-01T19:35:00Z", -value = 1839870, +value = 1839870F, }, new { timestamp = "2017-01-01T19:40:00Z", -value = 1840090, +value = 1840090F, }, new { timestamp = "2017-01-01T19:45:00Z", -value = 1840479, +value = 1840479F, }, new { timestamp = "2017-01-01T19:50:00Z", -value = 1840479, +value = 1840479F, }, new { timestamp = "2017-01-01T19:55:00Z", -value = 1840482, +value = 1840482F, }, new { timestamp = "2017-01-01T20:00:00Z", -value = 1841522, +value = 1841522F, }, new { timestamp = "2017-01-01T20:05:00Z", -value = 1841836, +value = 1841836F, }, new { timestamp = "2017-01-01T20:10:00Z", -value = 1842377, +value = 1842377F, }, new { timestamp = "2017-01-01T20:15:00Z", -value = 1842388, +value = 1842388F, }, new { timestamp = "2017-01-01T20:20:00Z", -value = 1842489, +value = 1842489F, }, new { timestamp = "2017-01-01T20:25:00Z", -value = 1842489, +value = 1842489F, }, new { timestamp = "2017-01-01T20:30:00Z", -value = 1842489, +value = 1842489F, }, new { timestamp = "2017-01-01T20:35:00Z", -value = 1842496, +value = 1842496F, }, new { timestamp = "2017-01-01T20:40:00Z", -value = 1842689, +value = 1842689F, }, new { timestamp = "2017-01-01T20:45:00Z", -value = 1843117, +value = 1843117F, }, new { timestamp = "2017-01-01T20:50:00Z", -value = 1843116, +value = 1843116F, }, new { timestamp = "2017-01-01T20:55:00Z", -value = 1843227, +value = 1843227F, }, new { timestamp = "2017-01-01T21:00:00Z", -value = 1843138, +value = 1843138F, }, new { timestamp = "2017-01-01T21:05:00Z", -value = 1843141, +value = 1843141F, }, new { timestamp = "2017-01-01T21:10:00Z", -value = 1843310, +value = 1843310F, }, new { timestamp = "2017-01-01T21:15:00Z", -value = 1843310, +value = 1843310F, }, new { timestamp = "2017-01-01T21:20:00Z", -value = 1843507, +value = 1843507F, }, new { timestamp = "2017-01-01T21:25:00Z", -value = 1843953, +value = 1843953F, }, new { timestamp = "2017-01-01T21:30:00Z", -value = 1844778, +value = 1844778F, }, new { timestamp = "2017-01-01T21:35:00Z", -value = 1843918, +value = 1843918F, }, new { timestamp = "2017-01-01T21:40:00Z", -value = 1882692, +value = 1882692F, }, new { timestamp = "2017-01-01T21:45:00Z", -value = 1974888, +value = 1974888F, }, new { timestamp = "2017-01-01T21:50:00Z", -value = 2157136, +value = 2157136F, }, new { timestamp = "2017-01-01T21:55:00Z", -value = 2154987, +value = 2154987F, }, new { timestamp = "2017-01-01T22:00:00Z", -value = 2155664, +value = 2155664F, }, new { timestamp = "2017-01-01T22:05:00Z", -value = 2155660, +value = 2155660F, }, new { timestamp = "2017-01-01T22:10:00Z", -value = 2155824, +value = 2155824F, }, new { timestamp = "2017-01-01T22:15:00Z", -value = 2155824, +value = 2155824F, }, new { timestamp = "2017-01-01T22:20:00Z", -value = 2156329, +value = 2156329F, }, new { timestamp = "2017-01-01T22:25:00Z", -value = 2156479, +value = 2156479F, }, new { timestamp = "2017-01-01T22:30:00Z", -value = 2165269, +value = 2165269F, }, new { timestamp = "2017-01-01T22:35:00Z", -value = 2165433, +value = 2165433F, }, new { timestamp = "2017-01-01T22:40:00Z", -value = 2165739, +value = 2165739F, }, new { timestamp = "2017-01-01T22:45:00Z", -value = 2165931, +value = 2165931F, }, new { timestamp = "2017-01-01T22:50:00Z", -value = 2165928, +value = 2165928F, }, new { timestamp = "2017-01-01T22:55:00Z", -value = 2165989, +value = 2165989F, }, new { timestamp = "2017-01-01T23:00:00Z", -value = 2228961, +value = 2228961F, }, new { timestamp = "2017-01-01T23:05:00Z", -value = 2228961, +value = 2228961F, }, new { timestamp = "2017-01-01T23:10:00Z", -value = 2228961, +value = 2228961F, }, new { timestamp = "2017-01-01T23:15:00Z", -value = 2485802, +value = 2485802F, }, new { timestamp = "2017-01-01T23:20:00Z", -value = 2485802, +value = 2485802F, }, new { timestamp = "2017-01-01T23:25:00Z", -value = 2486021, +value = 2486021F, }, new { timestamp = "2017-01-01T23:30:00Z", -value = 2485293, +value = 2485293F, }, new { timestamp = "2017-01-01T23:35:00Z", -value = 2485293, +value = 2485293F, }, new { timestamp = "2017-01-01T23:40:00Z", -value = 2485324, +value = 2485324F, }, new { timestamp = "2017-01-01T23:45:00Z", -value = 2489142, +value = 2489142F, }, new { timestamp = "2017-01-01T23:50:00Z", -value = 2526312, +value = 2526312F, }, new { timestamp = "2017-01-01T23:55:00Z", -value = 2526313, +value = 2526313F, }, new { timestamp = "2017-01-02T00:00:00Z", -value = 2526314, +value = 2526314F, }, new { timestamp = "2017-01-02T00:05:00Z", -value = 2526324, +value = 2526324F, }, new { timestamp = "2017-01-02T00:10:00Z", -value = 2526325, +value = 2526325F, }, new { timestamp = "2017-01-02T00:15:00Z", -value = 2526205, +value = 2526205F, }, new { timestamp = "2017-01-02T00:20:00Z", -value = 2526226, +value = 2526226F, }, new { timestamp = "2017-01-02T00:25:00Z", -value = 2526475, +value = 2526475F, }, new { timestamp = "2017-01-02T00:30:00Z", -value = 2526471, +value = 2526471F, }, new { timestamp = "2017-01-02T00:35:00Z", -value = 2526471, +value = 2526471F, }, new { timestamp = "2017-01-02T00:40:00Z", -value = 2526534, +value = 2526534F, }, new { timestamp = "2017-01-02T00:45:00Z", -value = 2526646, +value = 2526646F, }, new { timestamp = "2017-01-02T00:50:00Z", -value = 2526646, +value = 2526646F, }, new { timestamp = "2017-01-02T00:55:00Z", -value = 2526648, +value = 2526648F, }, new { timestamp = "2017-01-02T01:00:00Z", -value = 2526658, +value = 2526658F, }, new { timestamp = "2017-01-02T01:05:00Z", -value = 2526771, +value = 2526771F, }, new { timestamp = "2017-01-02T01:10:00Z", -value = 2526773, +value = 2526773F, }, new { timestamp = "2017-01-02T01:15:00Z", -value = 2526793, +value = 2526793F, }, new { timestamp = "2017-01-02T01:20:00Z", -value = 2527010, +value = 2527010F, }, new { timestamp = "2017-01-02T01:25:00Z", -value = 2527031, +value = 2527031F, }, new { timestamp = "2017-01-02T01:30:00Z", -value = 3178096, +value = 3178096F, }, new { timestamp = "2017-01-02T01:35:00Z", -value = 3196305, +value = 3196305F, }, new { timestamp = "2017-01-02T01:40:00Z", -value = 3196202, +value = 3196202F, }, new { timestamp = "2017-01-02T01:45:00Z", -value = 3196202, +value = 3196202F, }, new { timestamp = "2017-01-02T01:50:00Z", -value = 3196205, +value = 3196205F, }, new { timestamp = "2017-01-02T01:55:00Z", -value = 3229232, +value = 3229232F, }, new { timestamp = "2017-01-02T02:00:00Z", -value = 3230463, +value = 3230463F, }, new { timestamp = "2017-01-02T02:05:00Z", -value = 3230468, +value = 3230468F, }, new { timestamp = "2017-01-02T02:10:00Z", -value = 3230468, +value = 3230468F, }, new { timestamp = "2017-01-02T02:15:00Z", -value = 3230468, +value = 3230468F, }, new { timestamp = "2017-01-02T02:20:00Z", -value = 3230470, +value = 3230470F, }, new { timestamp = "2017-01-02T02:25:00Z", -value = 3230467, +value = 3230467F, }, new { timestamp = "2017-01-02T02:30:00Z", -value = 3230506, +value = 3230506F, }, new { timestamp = "2017-01-02T02:35:00Z", -value = 3231536, +value = 3231536F, }, new { timestamp = "2017-01-02T02:40:00Z", -value = 3230723, +value = 3230723F, }, new { timestamp = "2017-01-02T02:45:00Z", -value = 3230727, +value = 3230727F, }, new { timestamp = "2017-01-02T02:50:00Z", -value = 3230727, +value = 3230727F, }, new { timestamp = "2017-01-02T02:55:00Z", -value = 3230727, +value = 3230727F, }, new { timestamp = "2017-01-02T03:00:00Z", -value = 3231880, +value = 3231880F, }, new { timestamp = "2017-01-02T03:05:00Z", -value = 3232283, +value = 3232283F, }, new { timestamp = "2017-01-02T03:10:00Z", -value = 3232283, +value = 3232283F, }, new { timestamp = "2017-01-02T03:15:00Z", -value = 3232283, +value = 3232283F, }, new { timestamp = "2017-01-02T03:20:00Z", -value = 3232325, +value = 3232325F, }, new { timestamp = "2017-01-02T03:25:00Z", -value = 3232323, +value = 3232323F, }, new { timestamp = "2017-01-02T03:30:00Z", -value = 3232327, +value = 3232327F, }, new { timestamp = "2017-01-02T03:35:00Z", -value = 3232340, +value = 3232340F, }, new { timestamp = "2017-01-02T03:40:00Z", -value = 3232713, +value = 3232713F, }, new { timestamp = "2017-01-02T03:45:00Z", -value = 3232729, +value = 3232729F, }, new { timestamp = "2017-01-02T03:50:00Z", -value = 3232756, +value = 3232756F, }, new { timestamp = "2017-01-02T03:55:00Z", -value = 3233500, +value = 3233500F, }, new { timestamp = "2017-01-02T04:00:00Z", -value = 3233500, +value = 3233500F, }, new { timestamp = "2017-01-02T04:05:00Z", -value = 3233500, +value = 3233500F, } }, granularity = "minutely", customInterval = 5, stableTrendWindow = 10, - threshold = 0.99, + threshold = 0.99F, period = 0, }); Response response = client.DetectUnivariateChangePoint(content); @@ -2851,1293 +2851,1293 @@ public async Task Example_Univariate_DetectUnivariateChangePoint_UnivariateDetec new { timestamp = "2017-01-01T06:45:00Z", -value = 1639196, +value = 1639196F, }, new { timestamp = "2017-01-01T06:50:00Z", -value = 1639290, +value = 1639290F, }, new { timestamp = "2017-01-01T06:55:00Z", -value = 1667293, +value = 1667293F, }, new { timestamp = "2017-01-01T07:00:00Z", -value = 1703130, +value = 1703130F, }, new { timestamp = "2017-01-01T07:05:00Z", -value = 1650912, +value = 1650912F, }, new { timestamp = "2017-01-01T07:10:00Z", -value = 1653596, +value = 1653596F, }, new { timestamp = "2017-01-01T07:15:00Z", -value = 1653793, +value = 1653793F, }, new { timestamp = "2017-01-01T07:20:00Z", -value = 1653795, +value = 1653795F, }, new { timestamp = "2017-01-01T07:25:00Z", -value = 1663471, +value = 1663471F, }, new { timestamp = "2017-01-01T07:30:00Z", -value = 1662358, +value = 1662358F, }, new { timestamp = "2017-01-01T07:35:00Z", -value = 1664320, +value = 1664320F, }, new { timestamp = "2017-01-01T07:40:00Z", -value = 1664942, +value = 1664942F, }, new { timestamp = "2017-01-01T07:45:00Z", -value = 1664966, +value = 1664966F, }, new { timestamp = "2017-01-01T07:50:00Z", -value = 1724271, +value = 1724271F, }, new { timestamp = "2017-01-01T07:55:00Z", -value = 1678720, +value = 1678720F, }, new { timestamp = "2017-01-01T08:00:00Z", -value = 1672536, +value = 1672536F, }, new { timestamp = "2017-01-01T08:05:00Z", -value = 1672544, +value = 1672544F, }, new { timestamp = "2017-01-01T08:10:00Z", -value = 1672364, +value = 1672364F, }, new { timestamp = "2017-01-01T08:15:00Z", -value = 1672912, +value = 1672912F, }, new { timestamp = "2017-01-01T08:20:00Z", -value = 1672736, +value = 1672736F, }, new { timestamp = "2017-01-01T08:25:00Z", -value = 1672725, +value = 1672725F, }, new { timestamp = "2017-01-01T08:30:00Z", -value = 1673247, +value = 1673247F, }, new { timestamp = "2017-01-01T08:35:00Z", -value = 1673109, +value = 1673109F, }, new { timestamp = "2017-01-01T08:40:00Z", -value = 1690088, +value = 1690088F, }, new { timestamp = "2017-01-01T08:45:00Z", -value = 1703865, +value = 1703865F, }, new { timestamp = "2017-01-01T08:50:00Z", -value = 1703865, +value = 1703865F, }, new { timestamp = "2017-01-01T08:55:00Z", -value = 1786581, +value = 1786581F, }, new { timestamp = "2017-01-01T09:00:00Z", -value = 1800945, +value = 1800945F, }, new { timestamp = "2017-01-01T09:05:00Z", -value = 1800957, +value = 1800957F, }, new { timestamp = "2017-01-01T09:10:00Z", -value = 1801191, +value = 1801191F, }, new { timestamp = "2017-01-01T09:15:00Z", -value = 1801412, +value = 1801412F, }, new { timestamp = "2017-01-01T09:20:00Z", -value = 1801621, +value = 1801621F, }, new { timestamp = "2017-01-01T09:25:00Z", -value = 1801621, +value = 1801621F, }, new { timestamp = "2017-01-01T09:30:00Z", -value = 1801654, +value = 1801654F, }, new { timestamp = "2017-01-01T09:35:00Z", -value = 1802105, +value = 1802105F, }, new { timestamp = "2017-01-01T09:40:00Z", -value = 1801800, +value = 1801800F, }, new { timestamp = "2017-01-01T09:45:00Z", -value = 1803040, +value = 1803040F, }, new { timestamp = "2017-01-01T09:50:00Z", -value = 1803672, +value = 1803672F, }, new { timestamp = "2017-01-01T09:55:00Z", -value = 1803535, +value = 1803535F, }, new { timestamp = "2017-01-01T10:00:00Z", -value = 1803541, +value = 1803541F, }, new { timestamp = "2017-01-01T10:05:00Z", -value = 1803545, +value = 1803545F, }, new { timestamp = "2017-01-01T10:10:00Z", -value = 1803599, +value = 1803599F, }, new { timestamp = "2017-01-01T10:15:00Z", -value = 1803616, +value = 1803616F, }, new { timestamp = "2017-01-01T10:20:00Z", -value = 1803619, +value = 1803619F, }, new { timestamp = "2017-01-01T10:25:00Z", -value = 1809942, +value = 1809942F, }, new { timestamp = "2017-01-01T10:30:00Z", -value = 1802720, +value = 1802720F, }, new { timestamp = "2017-01-01T10:35:00Z", -value = 1802720, +value = 1802720F, }, new { timestamp = "2017-01-01T10:40:00Z", -value = 1802888, +value = 1802888F, }, new { timestamp = "2017-01-01T10:45:00Z", -value = 1809574, +value = 1809574F, }, new { timestamp = "2017-01-01T10:50:00Z", -value = 1803896, +value = 1803896F, }, new { timestamp = "2017-01-01T10:55:00Z", -value = 1803850, +value = 1803850F, }, new { timestamp = "2017-01-01T11:00:00Z", -value = 1803854, +value = 1803854F, }, new { timestamp = "2017-01-01T11:05:00Z", -value = 1803854, +value = 1803854F, }, new { timestamp = "2017-01-01T11:10:00Z", -value = 1803797, +value = 1803797F, }, new { timestamp = "2017-01-01T11:15:00Z", -value = 1803921, +value = 1803921F, }, new { timestamp = "2017-01-01T11:20:00Z", -value = 1803933, +value = 1803933F, }, new { timestamp = "2017-01-01T11:25:00Z", -value = 1804040, +value = 1804040F, }, new { timestamp = "2017-01-01T11:30:00Z", -value = 1804044, +value = 1804044F, }, new { timestamp = "2017-01-01T11:35:00Z", -value = 1804070, +value = 1804070F, }, new { timestamp = "2017-01-01T11:40:00Z", -value = 1804070, +value = 1804070F, }, new { timestamp = "2017-01-01T11:45:00Z", -value = 1804068, +value = 1804068F, }, new { timestamp = "2017-01-01T11:50:00Z", -value = 1804073, +value = 1804073F, }, new { timestamp = "2017-01-01T11:55:00Z", -value = 1804101, +value = 1804101F, }, new { timestamp = "2017-01-01T12:00:00Z", -value = 1804674, +value = 1804674F, }, new { timestamp = "2017-01-01T12:05:00Z", -value = 1804714, +value = 1804714F, }, new { timestamp = "2017-01-01T12:10:00Z", -value = 1804730, +value = 1804730F, }, new { timestamp = "2017-01-01T12:15:00Z", -value = 1804816, +value = 1804816F, }, new { timestamp = "2017-01-01T12:20:00Z", -value = 1803996, +value = 1803996F, }, new { timestamp = "2017-01-01T12:25:00Z", -value = 1803998, +value = 1803998F, }, new { timestamp = "2017-01-01T12:30:00Z", -value = 1804015, +value = 1804015F, }, new { timestamp = "2017-01-01T12:35:00Z", -value = 1804047, +value = 1804047F, }, new { timestamp = "2017-01-01T12:40:00Z", -value = 1804050, +value = 1804050F, }, new { timestamp = "2017-01-01T12:45:00Z", -value = 1804218, +value = 1804218F, }, new { timestamp = "2017-01-01T12:50:00Z", -value = 1804217, +value = 1804217F, }, new { timestamp = "2017-01-01T12:55:00Z", -value = 1804217, +value = 1804217F, }, new { timestamp = "2017-01-01T13:00:00Z", -value = 1804205, +value = 1804205F, }, new { timestamp = "2017-01-01T13:05:00Z", -value = 1804728, +value = 1804728F, }, new { timestamp = "2017-01-01T13:10:00Z", -value = 1804748, +value = 1804748F, }, new { timestamp = "2017-01-01T13:15:00Z", -value = 1805232, +value = 1805232F, }, new { timestamp = "2017-01-01T13:20:00Z", -value = 1814121, +value = 1814121F, }, new { timestamp = "2017-01-01T13:25:00Z", -value = 1806789, +value = 1806789F, }, new { timestamp = "2017-01-01T13:30:00Z", -value = 1806119, +value = 1806119F, }, new { timestamp = "2017-01-01T13:35:00Z", -value = 1806329, +value = 1806329F, }, new { timestamp = "2017-01-01T13:40:00Z", -value = 1806454, +value = 1806454F, }, new { timestamp = "2017-01-01T13:45:00Z", -value = 1806852, +value = 1806852F, }, new { timestamp = "2017-01-01T13:50:00Z", -value = 1807347, +value = 1807347F, }, new { timestamp = "2017-01-01T13:55:00Z", -value = 1812144, +value = 1812144F, }, new { timestamp = "2017-01-01T14:00:00Z", -value = 1807418, +value = 1807418F, }, new { timestamp = "2017-01-01T14:05:00Z", -value = 1807418, +value = 1807418F, }, new { timestamp = "2017-01-01T14:10:00Z", -value = 1807432, +value = 1807432F, }, new { timestamp = "2017-01-01T14:15:00Z", -value = 1808540, +value = 1808540F, }, new { timestamp = "2017-01-01T14:20:00Z", -value = 1808541, +value = 1808541F, }, new { timestamp = "2017-01-01T14:25:00Z", -value = 1807831, +value = 1807831F, }, new { timestamp = "2017-01-01T14:30:00Z", -value = 1807852, +value = 1807852F, }, new { timestamp = "2017-01-01T14:35:00Z", -value = 1807811, +value = 1807811F, }, new { timestamp = "2017-01-01T14:40:00Z", -value = 2214285, +value = 2214285F, }, new { timestamp = "2017-01-01T14:45:00Z", -value = 2215019, +value = 2215019F, }, new { timestamp = "2017-01-01T14:50:00Z", -value = 2215329, +value = 2215329F, }, new { timestamp = "2017-01-01T14:55:00Z", -value = 2215097, +value = 2215097F, }, new { timestamp = "2017-01-01T15:00:00Z", -value = 2215129, +value = 2215129F, }, new { timestamp = "2017-01-01T15:05:00Z", -value = 2215120, +value = 2215120F, }, new { timestamp = "2017-01-01T15:10:00Z", -value = 2217056, +value = 2217056F, }, new { timestamp = "2017-01-01T15:15:00Z", -value = 2217056, +value = 2217056F, }, new { timestamp = "2017-01-01T15:20:00Z", -value = 2222126, +value = 2222126F, }, new { timestamp = "2017-01-01T15:25:00Z", -value = 2226472, +value = 2226472F, }, new { timestamp = "2017-01-01T15:30:00Z", -value = 2226722, +value = 2226722F, }, new { timestamp = "2017-01-01T15:35:00Z", -value = 2226729, +value = 2226729F, }, new { timestamp = "2017-01-01T15:40:00Z", -value = 2226735, +value = 2226735F, }, new { timestamp = "2017-01-01T15:45:00Z", -value = 2226735, +value = 2226735F, }, new { timestamp = "2017-01-01T15:50:00Z", -value = 2226735, +value = 2226735F, }, new { timestamp = "2017-01-01T15:55:00Z", -value = 2226952, +value = 2226952F, }, new { timestamp = "2017-01-01T16:00:00Z", -value = 2226962, +value = 2226962F, }, new { timestamp = "2017-01-01T16:05:00Z", -value = 2649337, +value = 2649337F, }, new { timestamp = "2017-01-01T16:10:00Z", -value = 2092796, +value = 2092796F, }, new { timestamp = "2017-01-01T16:15:00Z", -value = 2092839, +value = 2092839F, }, new { timestamp = "2017-01-01T16:20:00Z", -value = 2092940, +value = 2092940F, }, new { timestamp = "2017-01-01T16:25:00Z", -value = 2092940, +value = 2092940F, }, new { timestamp = "2017-01-01T16:30:00Z", -value = 2092965, +value = 2092965F, }, new { timestamp = "2017-01-01T16:35:00Z", -value = 2092979, +value = 2092979F, }, new { timestamp = "2017-01-01T16:40:00Z", -value = 2095588, +value = 2095588F, }, new { timestamp = "2017-01-01T16:45:00Z", -value = 2099586, +value = 2099586F, }, new { timestamp = "2017-01-01T16:50:00Z", -value = 2102981, +value = 2102981F, }, new { timestamp = "2017-01-01T16:55:00Z", -value = 2108053, +value = 2108053F, }, new { timestamp = "2017-01-01T17:00:00Z", -value = 2107907, +value = 2107907F, }, new { timestamp = "2017-01-01T17:05:00Z", -value = 2108241, +value = 2108241F, }, new { timestamp = "2017-01-01T17:10:00Z", -value = 2100321, +value = 2100321F, }, new { timestamp = "2017-01-01T17:15:00Z", -value = 2100448, +value = 2100448F, }, new { timestamp = "2017-01-01T17:20:00Z", -value = 2100483, +value = 2100483F, }, new { timestamp = "2017-01-01T17:25:00Z", -value = 2103042, +value = 2103042F, }, new { timestamp = "2017-01-01T17:30:00Z", -value = 2103037, +value = 2103037F, }, new { timestamp = "2017-01-01T17:35:00Z", -value = 2103040, +value = 2103040F, }, new { timestamp = "2017-01-01T17:40:00Z", -value = 2103054, +value = 2103054F, }, new { timestamp = "2017-01-01T17:45:00Z", -value = 2103058, +value = 2103058F, }, new { timestamp = "2017-01-01T17:50:00Z", -value = 1830757, +value = 1830757F, }, new { timestamp = "2017-01-01T17:55:00Z", -value = 1830855, +value = 1830855F, }, new { timestamp = "2017-01-01T18:00:00Z", -value = 1831495, +value = 1831495F, }, new { timestamp = "2017-01-01T18:05:00Z", -value = 1831463, +value = 1831463F, }, new { timestamp = "2017-01-01T18:10:00Z", -value = 1831963, +value = 1831963F, }, new { timestamp = "2017-01-01T18:15:00Z", -value = 1832046, +value = 1832046F, }, new { timestamp = "2017-01-01T18:20:00Z", -value = 1832070, +value = 1832070F, }, new { timestamp = "2017-01-01T18:25:00Z", -value = 1835511, +value = 1835511F, }, new { timestamp = "2017-01-01T18:30:00Z", -value = 1835265, +value = 1835265F, }, new { timestamp = "2017-01-01T18:35:00Z", -value = 1835481, +value = 1835481F, }, new { timestamp = "2017-01-01T18:40:00Z", -value = 1835578, +value = 1835578F, }, new { timestamp = "2017-01-01T18:45:00Z", -value = 1835611, +value = 1835611F, }, new { timestamp = "2017-01-01T18:50:00Z", -value = 1836314, +value = 1836314F, }, new { timestamp = "2017-01-01T18:55:00Z", -value = 1836369, +value = 1836369F, }, new { timestamp = "2017-01-01T19:00:00Z", -value = 1837280, +value = 1837280F, }, new { timestamp = "2017-01-01T19:05:00Z", -value = 1842939, +value = 1842939F, }, new { timestamp = "2017-01-01T19:10:00Z", -value = 1843126, +value = 1843126F, }, new { timestamp = "2017-01-01T19:15:00Z", -value = 1845840, +value = 1845840F, }, new { timestamp = "2017-01-01T19:20:00Z", -value = 1842444, +value = 1842444F, }, new { timestamp = "2017-01-01T19:25:00Z", -value = 1839891, +value = 1839891F, }, new { timestamp = "2017-01-01T19:30:00Z", -value = 1839875, +value = 1839875F, }, new { timestamp = "2017-01-01T19:35:00Z", -value = 1839870, +value = 1839870F, }, new { timestamp = "2017-01-01T19:40:00Z", -value = 1840090, +value = 1840090F, }, new { timestamp = "2017-01-01T19:45:00Z", -value = 1840479, +value = 1840479F, }, new { timestamp = "2017-01-01T19:50:00Z", -value = 1840479, +value = 1840479F, }, new { timestamp = "2017-01-01T19:55:00Z", -value = 1840482, +value = 1840482F, }, new { timestamp = "2017-01-01T20:00:00Z", -value = 1841522, +value = 1841522F, }, new { timestamp = "2017-01-01T20:05:00Z", -value = 1841836, +value = 1841836F, }, new { timestamp = "2017-01-01T20:10:00Z", -value = 1842377, +value = 1842377F, }, new { timestamp = "2017-01-01T20:15:00Z", -value = 1842388, +value = 1842388F, }, new { timestamp = "2017-01-01T20:20:00Z", -value = 1842489, +value = 1842489F, }, new { timestamp = "2017-01-01T20:25:00Z", -value = 1842489, +value = 1842489F, }, new { timestamp = "2017-01-01T20:30:00Z", -value = 1842489, +value = 1842489F, }, new { timestamp = "2017-01-01T20:35:00Z", -value = 1842496, +value = 1842496F, }, new { timestamp = "2017-01-01T20:40:00Z", -value = 1842689, +value = 1842689F, }, new { timestamp = "2017-01-01T20:45:00Z", -value = 1843117, +value = 1843117F, }, new { timestamp = "2017-01-01T20:50:00Z", -value = 1843116, +value = 1843116F, }, new { timestamp = "2017-01-01T20:55:00Z", -value = 1843227, +value = 1843227F, }, new { timestamp = "2017-01-01T21:00:00Z", -value = 1843138, +value = 1843138F, }, new { timestamp = "2017-01-01T21:05:00Z", -value = 1843141, +value = 1843141F, }, new { timestamp = "2017-01-01T21:10:00Z", -value = 1843310, +value = 1843310F, }, new { timestamp = "2017-01-01T21:15:00Z", -value = 1843310, +value = 1843310F, }, new { timestamp = "2017-01-01T21:20:00Z", -value = 1843507, +value = 1843507F, }, new { timestamp = "2017-01-01T21:25:00Z", -value = 1843953, +value = 1843953F, }, new { timestamp = "2017-01-01T21:30:00Z", -value = 1844778, +value = 1844778F, }, new { timestamp = "2017-01-01T21:35:00Z", -value = 1843918, +value = 1843918F, }, new { timestamp = "2017-01-01T21:40:00Z", -value = 1882692, +value = 1882692F, }, new { timestamp = "2017-01-01T21:45:00Z", -value = 1974888, +value = 1974888F, }, new { timestamp = "2017-01-01T21:50:00Z", -value = 2157136, +value = 2157136F, }, new { timestamp = "2017-01-01T21:55:00Z", -value = 2154987, +value = 2154987F, }, new { timestamp = "2017-01-01T22:00:00Z", -value = 2155664, +value = 2155664F, }, new { timestamp = "2017-01-01T22:05:00Z", -value = 2155660, +value = 2155660F, }, new { timestamp = "2017-01-01T22:10:00Z", -value = 2155824, +value = 2155824F, }, new { timestamp = "2017-01-01T22:15:00Z", -value = 2155824, +value = 2155824F, }, new { timestamp = "2017-01-01T22:20:00Z", -value = 2156329, +value = 2156329F, }, new { timestamp = "2017-01-01T22:25:00Z", -value = 2156479, +value = 2156479F, }, new { timestamp = "2017-01-01T22:30:00Z", -value = 2165269, +value = 2165269F, }, new { timestamp = "2017-01-01T22:35:00Z", -value = 2165433, +value = 2165433F, }, new { timestamp = "2017-01-01T22:40:00Z", -value = 2165739, +value = 2165739F, }, new { timestamp = "2017-01-01T22:45:00Z", -value = 2165931, +value = 2165931F, }, new { timestamp = "2017-01-01T22:50:00Z", -value = 2165928, +value = 2165928F, }, new { timestamp = "2017-01-01T22:55:00Z", -value = 2165989, +value = 2165989F, }, new { timestamp = "2017-01-01T23:00:00Z", -value = 2228961, +value = 2228961F, }, new { timestamp = "2017-01-01T23:05:00Z", -value = 2228961, +value = 2228961F, }, new { timestamp = "2017-01-01T23:10:00Z", -value = 2228961, +value = 2228961F, }, new { timestamp = "2017-01-01T23:15:00Z", -value = 2485802, +value = 2485802F, }, new { timestamp = "2017-01-01T23:20:00Z", -value = 2485802, +value = 2485802F, }, new { timestamp = "2017-01-01T23:25:00Z", -value = 2486021, +value = 2486021F, }, new { timestamp = "2017-01-01T23:30:00Z", -value = 2485293, +value = 2485293F, }, new { timestamp = "2017-01-01T23:35:00Z", -value = 2485293, +value = 2485293F, }, new { timestamp = "2017-01-01T23:40:00Z", -value = 2485324, +value = 2485324F, }, new { timestamp = "2017-01-01T23:45:00Z", -value = 2489142, +value = 2489142F, }, new { timestamp = "2017-01-01T23:50:00Z", -value = 2526312, +value = 2526312F, }, new { timestamp = "2017-01-01T23:55:00Z", -value = 2526313, +value = 2526313F, }, new { timestamp = "2017-01-02T00:00:00Z", -value = 2526314, +value = 2526314F, }, new { timestamp = "2017-01-02T00:05:00Z", -value = 2526324, +value = 2526324F, }, new { timestamp = "2017-01-02T00:10:00Z", -value = 2526325, +value = 2526325F, }, new { timestamp = "2017-01-02T00:15:00Z", -value = 2526205, +value = 2526205F, }, new { timestamp = "2017-01-02T00:20:00Z", -value = 2526226, +value = 2526226F, }, new { timestamp = "2017-01-02T00:25:00Z", -value = 2526475, +value = 2526475F, }, new { timestamp = "2017-01-02T00:30:00Z", -value = 2526471, +value = 2526471F, }, new { timestamp = "2017-01-02T00:35:00Z", -value = 2526471, +value = 2526471F, }, new { timestamp = "2017-01-02T00:40:00Z", -value = 2526534, +value = 2526534F, }, new { timestamp = "2017-01-02T00:45:00Z", -value = 2526646, +value = 2526646F, }, new { timestamp = "2017-01-02T00:50:00Z", -value = 2526646, +value = 2526646F, }, new { timestamp = "2017-01-02T00:55:00Z", -value = 2526648, +value = 2526648F, }, new { timestamp = "2017-01-02T01:00:00Z", -value = 2526658, +value = 2526658F, }, new { timestamp = "2017-01-02T01:05:00Z", -value = 2526771, +value = 2526771F, }, new { timestamp = "2017-01-02T01:10:00Z", -value = 2526773, +value = 2526773F, }, new { timestamp = "2017-01-02T01:15:00Z", -value = 2526793, +value = 2526793F, }, new { timestamp = "2017-01-02T01:20:00Z", -value = 2527010, +value = 2527010F, }, new { timestamp = "2017-01-02T01:25:00Z", -value = 2527031, +value = 2527031F, }, new { timestamp = "2017-01-02T01:30:00Z", -value = 3178096, +value = 3178096F, }, new { timestamp = "2017-01-02T01:35:00Z", -value = 3196305, +value = 3196305F, }, new { timestamp = "2017-01-02T01:40:00Z", -value = 3196202, +value = 3196202F, }, new { timestamp = "2017-01-02T01:45:00Z", -value = 3196202, +value = 3196202F, }, new { timestamp = "2017-01-02T01:50:00Z", -value = 3196205, +value = 3196205F, }, new { timestamp = "2017-01-02T01:55:00Z", -value = 3229232, +value = 3229232F, }, new { timestamp = "2017-01-02T02:00:00Z", -value = 3230463, +value = 3230463F, }, new { timestamp = "2017-01-02T02:05:00Z", -value = 3230468, +value = 3230468F, }, new { timestamp = "2017-01-02T02:10:00Z", -value = 3230468, +value = 3230468F, }, new { timestamp = "2017-01-02T02:15:00Z", -value = 3230468, +value = 3230468F, }, new { timestamp = "2017-01-02T02:20:00Z", -value = 3230470, +value = 3230470F, }, new { timestamp = "2017-01-02T02:25:00Z", -value = 3230467, +value = 3230467F, }, new { timestamp = "2017-01-02T02:30:00Z", -value = 3230506, +value = 3230506F, }, new { timestamp = "2017-01-02T02:35:00Z", -value = 3231536, +value = 3231536F, }, new { timestamp = "2017-01-02T02:40:00Z", -value = 3230723, +value = 3230723F, }, new { timestamp = "2017-01-02T02:45:00Z", -value = 3230727, +value = 3230727F, }, new { timestamp = "2017-01-02T02:50:00Z", -value = 3230727, +value = 3230727F, }, new { timestamp = "2017-01-02T02:55:00Z", -value = 3230727, +value = 3230727F, }, new { timestamp = "2017-01-02T03:00:00Z", -value = 3231880, +value = 3231880F, }, new { timestamp = "2017-01-02T03:05:00Z", -value = 3232283, +value = 3232283F, }, new { timestamp = "2017-01-02T03:10:00Z", -value = 3232283, +value = 3232283F, }, new { timestamp = "2017-01-02T03:15:00Z", -value = 3232283, +value = 3232283F, }, new { timestamp = "2017-01-02T03:20:00Z", -value = 3232325, +value = 3232325F, }, new { timestamp = "2017-01-02T03:25:00Z", -value = 3232323, +value = 3232323F, }, new { timestamp = "2017-01-02T03:30:00Z", -value = 3232327, +value = 3232327F, }, new { timestamp = "2017-01-02T03:35:00Z", -value = 3232340, +value = 3232340F, }, new { timestamp = "2017-01-02T03:40:00Z", -value = 3232713, +value = 3232713F, }, new { timestamp = "2017-01-02T03:45:00Z", -value = 3232729, +value = 3232729F, }, new { timestamp = "2017-01-02T03:50:00Z", -value = 3232756, +value = 3232756F, }, new { timestamp = "2017-01-02T03:55:00Z", -value = 3233500, +value = 3233500F, }, new { timestamp = "2017-01-02T04:00:00Z", -value = 3233500, +value = 3233500F, }, new { timestamp = "2017-01-02T04:05:00Z", -value = 3233500, +value = 3233500F, } }, granularity = "minutely", customInterval = 5, stableTrendWindow = 10, - threshold = 0.99, + threshold = 0.99F, period = 0, }); Response response = await client.DetectUnivariateChangePointAsync(content); @@ -4156,1031 +4156,1031 @@ public void Example_Univariate_DetectUnivariateChangePoint_UnivariateDetectionOf UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[] { -new TimeSeriesPoint(1639196) +new TimeSeriesPoint(1639196F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:45:00Z"), }, -new TimeSeriesPoint(1639290) +new TimeSeriesPoint(1639290F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:50:00Z"), }, -new TimeSeriesPoint(1667293) +new TimeSeriesPoint(1667293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:55:00Z"), }, -new TimeSeriesPoint(1703130) +new TimeSeriesPoint(1703130F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:00:00Z"), }, -new TimeSeriesPoint(1650912) +new TimeSeriesPoint(1650912F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:05:00Z"), }, -new TimeSeriesPoint(1653596) +new TimeSeriesPoint(1653596F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:10:00Z"), }, -new TimeSeriesPoint(1653793) +new TimeSeriesPoint(1653793F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:15:00Z"), }, -new TimeSeriesPoint(1653795) +new TimeSeriesPoint(1653795F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:20:00Z"), }, -new TimeSeriesPoint(1663471) +new TimeSeriesPoint(1663471F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:25:00Z"), }, -new TimeSeriesPoint(1662358) +new TimeSeriesPoint(1662358F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:30:00Z"), }, -new TimeSeriesPoint(1664320) +new TimeSeriesPoint(1664320F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:35:00Z"), }, -new TimeSeriesPoint(1664942) +new TimeSeriesPoint(1664942F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:40:00Z"), }, -new TimeSeriesPoint(1664966) +new TimeSeriesPoint(1664966F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:45:00Z"), }, -new TimeSeriesPoint(1724271) +new TimeSeriesPoint(1724271F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:50:00Z"), }, -new TimeSeriesPoint(1678720) +new TimeSeriesPoint(1678720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:55:00Z"), }, -new TimeSeriesPoint(1672536) +new TimeSeriesPoint(1672536F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:00:00Z"), }, -new TimeSeriesPoint(1672544) +new TimeSeriesPoint(1672544F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:05:00Z"), }, -new TimeSeriesPoint(1672364) +new TimeSeriesPoint(1672364F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:10:00Z"), }, -new TimeSeriesPoint(1672912) +new TimeSeriesPoint(1672912F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:15:00Z"), }, -new TimeSeriesPoint(1672736) +new TimeSeriesPoint(1672736F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:20:00Z"), }, -new TimeSeriesPoint(1672725) +new TimeSeriesPoint(1672725F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:25:00Z"), }, -new TimeSeriesPoint(1673247) +new TimeSeriesPoint(1673247F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:30:00Z"), }, -new TimeSeriesPoint(1673109) +new TimeSeriesPoint(1673109F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:35:00Z"), }, -new TimeSeriesPoint(1690088) +new TimeSeriesPoint(1690088F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:40:00Z"), }, -new TimeSeriesPoint(1703865) +new TimeSeriesPoint(1703865F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:45:00Z"), }, -new TimeSeriesPoint(1703865) +new TimeSeriesPoint(1703865F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:50:00Z"), }, -new TimeSeriesPoint(1786581) +new TimeSeriesPoint(1786581F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:55:00Z"), }, -new TimeSeriesPoint(1800945) +new TimeSeriesPoint(1800945F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:00:00Z"), }, -new TimeSeriesPoint(1800957) +new TimeSeriesPoint(1800957F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:05:00Z"), }, -new TimeSeriesPoint(1801191) +new TimeSeriesPoint(1801191F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:10:00Z"), }, -new TimeSeriesPoint(1801412) +new TimeSeriesPoint(1801412F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:15:00Z"), }, -new TimeSeriesPoint(1801621) +new TimeSeriesPoint(1801621F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:20:00Z"), }, -new TimeSeriesPoint(1801621) +new TimeSeriesPoint(1801621F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:25:00Z"), }, -new TimeSeriesPoint(1801654) +new TimeSeriesPoint(1801654F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:30:00Z"), }, -new TimeSeriesPoint(1802105) +new TimeSeriesPoint(1802105F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:35:00Z"), }, -new TimeSeriesPoint(1801800) +new TimeSeriesPoint(1801800F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:40:00Z"), }, -new TimeSeriesPoint(1803040) +new TimeSeriesPoint(1803040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:45:00Z"), }, -new TimeSeriesPoint(1803672) +new TimeSeriesPoint(1803672F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:50:00Z"), }, -new TimeSeriesPoint(1803535) +new TimeSeriesPoint(1803535F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:55:00Z"), }, -new TimeSeriesPoint(1803541) +new TimeSeriesPoint(1803541F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:00:00Z"), }, -new TimeSeriesPoint(1803545) +new TimeSeriesPoint(1803545F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:05:00Z"), }, -new TimeSeriesPoint(1803599) +new TimeSeriesPoint(1803599F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:10:00Z"), }, -new TimeSeriesPoint(1803616) +new TimeSeriesPoint(1803616F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:15:00Z"), }, -new TimeSeriesPoint(1803619) +new TimeSeriesPoint(1803619F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:20:00Z"), }, -new TimeSeriesPoint(1809942) +new TimeSeriesPoint(1809942F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:25:00Z"), }, -new TimeSeriesPoint(1802720) +new TimeSeriesPoint(1802720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:30:00Z"), }, -new TimeSeriesPoint(1802720) +new TimeSeriesPoint(1802720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:35:00Z"), }, -new TimeSeriesPoint(1802888) +new TimeSeriesPoint(1802888F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:40:00Z"), }, -new TimeSeriesPoint(1809574) +new TimeSeriesPoint(1809574F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:45:00Z"), }, -new TimeSeriesPoint(1803896) +new TimeSeriesPoint(1803896F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:50:00Z"), }, -new TimeSeriesPoint(1803850) +new TimeSeriesPoint(1803850F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:55:00Z"), }, -new TimeSeriesPoint(1803854) +new TimeSeriesPoint(1803854F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:00:00Z"), }, -new TimeSeriesPoint(1803854) +new TimeSeriesPoint(1803854F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:05:00Z"), }, -new TimeSeriesPoint(1803797) +new TimeSeriesPoint(1803797F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:10:00Z"), }, -new TimeSeriesPoint(1803921) +new TimeSeriesPoint(1803921F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:15:00Z"), }, -new TimeSeriesPoint(1803933) +new TimeSeriesPoint(1803933F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:20:00Z"), }, -new TimeSeriesPoint(1804040) +new TimeSeriesPoint(1804040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:25:00Z"), }, -new TimeSeriesPoint(1804044) +new TimeSeriesPoint(1804044F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:30:00Z"), }, -new TimeSeriesPoint(1804070) +new TimeSeriesPoint(1804070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:35:00Z"), }, -new TimeSeriesPoint(1804070) +new TimeSeriesPoint(1804070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:40:00Z"), }, -new TimeSeriesPoint(1804068) +new TimeSeriesPoint(1804068F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:45:00Z"), }, -new TimeSeriesPoint(1804073) +new TimeSeriesPoint(1804073F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:50:00Z"), }, -new TimeSeriesPoint(1804101) +new TimeSeriesPoint(1804101F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:55:00Z"), }, -new TimeSeriesPoint(1804674) +new TimeSeriesPoint(1804674F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:00:00Z"), }, -new TimeSeriesPoint(1804714) +new TimeSeriesPoint(1804714F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:05:00Z"), }, -new TimeSeriesPoint(1804730) +new TimeSeriesPoint(1804730F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:10:00Z"), }, -new TimeSeriesPoint(1804816) +new TimeSeriesPoint(1804816F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:15:00Z"), }, -new TimeSeriesPoint(1803996) +new TimeSeriesPoint(1803996F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:20:00Z"), }, -new TimeSeriesPoint(1803998) +new TimeSeriesPoint(1803998F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:25:00Z"), }, -new TimeSeriesPoint(1804015) +new TimeSeriesPoint(1804015F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:30:00Z"), }, -new TimeSeriesPoint(1804047) +new TimeSeriesPoint(1804047F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:35:00Z"), }, -new TimeSeriesPoint(1804050) +new TimeSeriesPoint(1804050F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:40:00Z"), }, -new TimeSeriesPoint(1804218) +new TimeSeriesPoint(1804218F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:45:00Z"), }, -new TimeSeriesPoint(1804217) +new TimeSeriesPoint(1804217F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:50:00Z"), }, -new TimeSeriesPoint(1804217) +new TimeSeriesPoint(1804217F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:55:00Z"), }, -new TimeSeriesPoint(1804205) +new TimeSeriesPoint(1804205F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:00:00Z"), }, -new TimeSeriesPoint(1804728) +new TimeSeriesPoint(1804728F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:05:00Z"), }, -new TimeSeriesPoint(1804748) +new TimeSeriesPoint(1804748F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:10:00Z"), }, -new TimeSeriesPoint(1805232) +new TimeSeriesPoint(1805232F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:15:00Z"), }, -new TimeSeriesPoint(1814121) +new TimeSeriesPoint(1814121F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:20:00Z"), }, -new TimeSeriesPoint(1806789) +new TimeSeriesPoint(1806789F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:25:00Z"), }, -new TimeSeriesPoint(1806119) +new TimeSeriesPoint(1806119F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:30:00Z"), }, -new TimeSeriesPoint(1806329) +new TimeSeriesPoint(1806329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:35:00Z"), }, -new TimeSeriesPoint(1806454) +new TimeSeriesPoint(1806454F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:40:00Z"), }, -new TimeSeriesPoint(1806852) +new TimeSeriesPoint(1806852F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:45:00Z"), }, -new TimeSeriesPoint(1807347) +new TimeSeriesPoint(1807347F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:50:00Z"), }, -new TimeSeriesPoint(1812144) +new TimeSeriesPoint(1812144F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:55:00Z"), }, -new TimeSeriesPoint(1807418) +new TimeSeriesPoint(1807418F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:00:00Z"), }, -new TimeSeriesPoint(1807418) +new TimeSeriesPoint(1807418F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:05:00Z"), }, -new TimeSeriesPoint(1807432) +new TimeSeriesPoint(1807432F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:10:00Z"), }, -new TimeSeriesPoint(1808540) +new TimeSeriesPoint(1808540F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:15:00Z"), }, -new TimeSeriesPoint(1808541) +new TimeSeriesPoint(1808541F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:20:00Z"), }, -new TimeSeriesPoint(1807831) +new TimeSeriesPoint(1807831F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:25:00Z"), }, -new TimeSeriesPoint(1807852) +new TimeSeriesPoint(1807852F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:30:00Z"), }, -new TimeSeriesPoint(1807811) +new TimeSeriesPoint(1807811F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:35:00Z"), }, -new TimeSeriesPoint(2214285) +new TimeSeriesPoint(2214285F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:40:00Z"), }, -new TimeSeriesPoint(2215019) +new TimeSeriesPoint(2215019F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:45:00Z"), }, -new TimeSeriesPoint(2215329) +new TimeSeriesPoint(2215329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:50:00Z"), }, -new TimeSeriesPoint(2215097) +new TimeSeriesPoint(2215097F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:55:00Z"), }, -new TimeSeriesPoint(2215129) +new TimeSeriesPoint(2215129F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:00:00Z"), }, -new TimeSeriesPoint(2215120) +new TimeSeriesPoint(2215120F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:05:00Z"), }, -new TimeSeriesPoint(2217056) +new TimeSeriesPoint(2217056F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:10:00Z"), }, -new TimeSeriesPoint(2217056) +new TimeSeriesPoint(2217056F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:15:00Z"), }, -new TimeSeriesPoint(2222126) +new TimeSeriesPoint(2222126F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:20:00Z"), }, -new TimeSeriesPoint(2226472) +new TimeSeriesPoint(2226472F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:25:00Z"), }, -new TimeSeriesPoint(2226722) +new TimeSeriesPoint(2226722F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:30:00Z"), }, -new TimeSeriesPoint(2226729) +new TimeSeriesPoint(2226729F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:35:00Z"), }, -new TimeSeriesPoint(2226735) +new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:40:00Z"), }, -new TimeSeriesPoint(2226735) +new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:45:00Z"), }, -new TimeSeriesPoint(2226735) +new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:50:00Z"), }, -new TimeSeriesPoint(2226952) +new TimeSeriesPoint(2226952F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:55:00Z"), }, -new TimeSeriesPoint(2226962) +new TimeSeriesPoint(2226962F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:00:00Z"), }, -new TimeSeriesPoint(2649337) +new TimeSeriesPoint(2649337F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:05:00Z"), }, -new TimeSeriesPoint(2092796) +new TimeSeriesPoint(2092796F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:10:00Z"), }, -new TimeSeriesPoint(2092839) +new TimeSeriesPoint(2092839F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:15:00Z"), }, -new TimeSeriesPoint(2092940) +new TimeSeriesPoint(2092940F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:20:00Z"), }, -new TimeSeriesPoint(2092940) +new TimeSeriesPoint(2092940F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:25:00Z"), }, -new TimeSeriesPoint(2092965) +new TimeSeriesPoint(2092965F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:30:00Z"), }, -new TimeSeriesPoint(2092979) +new TimeSeriesPoint(2092979F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:35:00Z"), }, -new TimeSeriesPoint(2095588) +new TimeSeriesPoint(2095588F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:40:00Z"), }, -new TimeSeriesPoint(2099586) +new TimeSeriesPoint(2099586F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:45:00Z"), }, -new TimeSeriesPoint(2102981) +new TimeSeriesPoint(2102981F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:50:00Z"), }, -new TimeSeriesPoint(2108053) +new TimeSeriesPoint(2108053F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:55:00Z"), }, -new TimeSeriesPoint(2107907) +new TimeSeriesPoint(2107907F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:00:00Z"), }, -new TimeSeriesPoint(2108241) +new TimeSeriesPoint(2108241F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:05:00Z"), }, -new TimeSeriesPoint(2100321) +new TimeSeriesPoint(2100321F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:10:00Z"), }, -new TimeSeriesPoint(2100448) +new TimeSeriesPoint(2100448F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:15:00Z"), }, -new TimeSeriesPoint(2100483) +new TimeSeriesPoint(2100483F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:20:00Z"), }, -new TimeSeriesPoint(2103042) +new TimeSeriesPoint(2103042F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:25:00Z"), }, -new TimeSeriesPoint(2103037) +new TimeSeriesPoint(2103037F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:30:00Z"), }, -new TimeSeriesPoint(2103040) +new TimeSeriesPoint(2103040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:35:00Z"), }, -new TimeSeriesPoint(2103054) +new TimeSeriesPoint(2103054F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:40:00Z"), }, -new TimeSeriesPoint(2103058) +new TimeSeriesPoint(2103058F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:45:00Z"), }, -new TimeSeriesPoint(1830757) +new TimeSeriesPoint(1830757F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:50:00Z"), }, -new TimeSeriesPoint(1830855) +new TimeSeriesPoint(1830855F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:55:00Z"), }, -new TimeSeriesPoint(1831495) +new TimeSeriesPoint(1831495F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:00:00Z"), }, -new TimeSeriesPoint(1831463) +new TimeSeriesPoint(1831463F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:05:00Z"), }, -new TimeSeriesPoint(1831963) +new TimeSeriesPoint(1831963F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:10:00Z"), }, -new TimeSeriesPoint(1832046) +new TimeSeriesPoint(1832046F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:15:00Z"), }, -new TimeSeriesPoint(1832070) +new TimeSeriesPoint(1832070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:20:00Z"), }, -new TimeSeriesPoint(1835511) +new TimeSeriesPoint(1835511F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:25:00Z"), }, -new TimeSeriesPoint(1835265) +new TimeSeriesPoint(1835265F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:30:00Z"), }, -new TimeSeriesPoint(1835481) +new TimeSeriesPoint(1835481F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:35:00Z"), }, -new TimeSeriesPoint(1835578) +new TimeSeriesPoint(1835578F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:40:00Z"), }, -new TimeSeriesPoint(1835611) +new TimeSeriesPoint(1835611F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:45:00Z"), }, -new TimeSeriesPoint(1836314) +new TimeSeriesPoint(1836314F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:50:00Z"), }, -new TimeSeriesPoint(1836369) +new TimeSeriesPoint(1836369F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:55:00Z"), }, -new TimeSeriesPoint(1837280) +new TimeSeriesPoint(1837280F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:00:00Z"), }, -new TimeSeriesPoint(1842939) +new TimeSeriesPoint(1842939F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:05:00Z"), }, -new TimeSeriesPoint(1843126) +new TimeSeriesPoint(1843126F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:10:00Z"), }, -new TimeSeriesPoint(1845840) +new TimeSeriesPoint(1845840F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:15:00Z"), }, -new TimeSeriesPoint(1842444) +new TimeSeriesPoint(1842444F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:20:00Z"), }, -new TimeSeriesPoint(1839891) +new TimeSeriesPoint(1839891F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:25:00Z"), }, -new TimeSeriesPoint(1839875) +new TimeSeriesPoint(1839875F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:30:00Z"), }, -new TimeSeriesPoint(1839870) +new TimeSeriesPoint(1839870F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:35:00Z"), }, -new TimeSeriesPoint(1840090) +new TimeSeriesPoint(1840090F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:40:00Z"), }, -new TimeSeriesPoint(1840479) +new TimeSeriesPoint(1840479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:45:00Z"), }, -new TimeSeriesPoint(1840479) +new TimeSeriesPoint(1840479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:50:00Z"), }, -new TimeSeriesPoint(1840482) +new TimeSeriesPoint(1840482F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:55:00Z"), }, -new TimeSeriesPoint(1841522) +new TimeSeriesPoint(1841522F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:00:00Z"), }, -new TimeSeriesPoint(1841836) +new TimeSeriesPoint(1841836F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:05:00Z"), }, -new TimeSeriesPoint(1842377) +new TimeSeriesPoint(1842377F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:10:00Z"), }, -new TimeSeriesPoint(1842388) +new TimeSeriesPoint(1842388F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:15:00Z"), }, -new TimeSeriesPoint(1842489) +new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:20:00Z"), }, -new TimeSeriesPoint(1842489) +new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:25:00Z"), }, -new TimeSeriesPoint(1842489) +new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:30:00Z"), }, -new TimeSeriesPoint(1842496) +new TimeSeriesPoint(1842496F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:35:00Z"), }, -new TimeSeriesPoint(1842689) +new TimeSeriesPoint(1842689F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:40:00Z"), }, -new TimeSeriesPoint(1843117) +new TimeSeriesPoint(1843117F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:45:00Z"), }, -new TimeSeriesPoint(1843116) +new TimeSeriesPoint(1843116F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:50:00Z"), }, -new TimeSeriesPoint(1843227) +new TimeSeriesPoint(1843227F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:55:00Z"), }, -new TimeSeriesPoint(1843138) +new TimeSeriesPoint(1843138F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:00:00Z"), }, -new TimeSeriesPoint(1843141) +new TimeSeriesPoint(1843141F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:05:00Z"), }, -new TimeSeriesPoint(1843310) +new TimeSeriesPoint(1843310F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:10:00Z"), }, -new TimeSeriesPoint(1843310) +new TimeSeriesPoint(1843310F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:15:00Z"), }, -new TimeSeriesPoint(1843507) +new TimeSeriesPoint(1843507F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:20:00Z"), }, -new TimeSeriesPoint(1843953) +new TimeSeriesPoint(1843953F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:25:00Z"), }, -new TimeSeriesPoint(1844778) +new TimeSeriesPoint(1844778F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:30:00Z"), }, -new TimeSeriesPoint(1843918) +new TimeSeriesPoint(1843918F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:35:00Z"), }, -new TimeSeriesPoint(1882692) +new TimeSeriesPoint(1882692F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:40:00Z"), }, -new TimeSeriesPoint(1974888) +new TimeSeriesPoint(1974888F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:45:00Z"), }, -new TimeSeriesPoint(2157136) +new TimeSeriesPoint(2157136F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:50:00Z"), }, -new TimeSeriesPoint(2154987) +new TimeSeriesPoint(2154987F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:55:00Z"), }, -new TimeSeriesPoint(2155664) +new TimeSeriesPoint(2155664F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:00:00Z"), }, -new TimeSeriesPoint(2155660) +new TimeSeriesPoint(2155660F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:05:00Z"), }, -new TimeSeriesPoint(2155824) +new TimeSeriesPoint(2155824F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:10:00Z"), }, -new TimeSeriesPoint(2155824) +new TimeSeriesPoint(2155824F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:15:00Z"), }, -new TimeSeriesPoint(2156329) +new TimeSeriesPoint(2156329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:20:00Z"), }, -new TimeSeriesPoint(2156479) +new TimeSeriesPoint(2156479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:25:00Z"), }, -new TimeSeriesPoint(2165269) +new TimeSeriesPoint(2165269F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:30:00Z"), }, -new TimeSeriesPoint(2165433) +new TimeSeriesPoint(2165433F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:35:00Z"), }, -new TimeSeriesPoint(2165739) +new TimeSeriesPoint(2165739F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:40:00Z"), }, -new TimeSeriesPoint(2165931) +new TimeSeriesPoint(2165931F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:45:00Z"), }, -new TimeSeriesPoint(2165928) +new TimeSeriesPoint(2165928F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:50:00Z"), }, -new TimeSeriesPoint(2165989) +new TimeSeriesPoint(2165989F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:55:00Z"), }, -new TimeSeriesPoint(2228961) +new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:00:00Z"), }, -new TimeSeriesPoint(2228961) +new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:05:00Z"), }, -new TimeSeriesPoint(2228961) +new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:10:00Z"), }, -new TimeSeriesPoint(2485802) +new TimeSeriesPoint(2485802F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:15:00Z"), }, -new TimeSeriesPoint(2485802) +new TimeSeriesPoint(2485802F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:20:00Z"), }, -new TimeSeriesPoint(2486021) +new TimeSeriesPoint(2486021F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:25:00Z"), }, -new TimeSeriesPoint(2485293) +new TimeSeriesPoint(2485293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:30:00Z"), }, -new TimeSeriesPoint(2485293) +new TimeSeriesPoint(2485293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:35:00Z"), }, -new TimeSeriesPoint(2485324) +new TimeSeriesPoint(2485324F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:40:00Z"), }, -new TimeSeriesPoint(2489142) +new TimeSeriesPoint(2489142F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:45:00Z"), }, -new TimeSeriesPoint(2526312) +new TimeSeriesPoint(2526312F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:50:00Z"), }, -new TimeSeriesPoint(2526313) +new TimeSeriesPoint(2526313F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:55:00Z"), }, -new TimeSeriesPoint(2526314) +new TimeSeriesPoint(2526314F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:00:00Z"), }, -new TimeSeriesPoint(2526324) +new TimeSeriesPoint(2526324F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:05:00Z"), }, -new TimeSeriesPoint(2526325) +new TimeSeriesPoint(2526325F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:10:00Z"), }, -new TimeSeriesPoint(2526205) +new TimeSeriesPoint(2526205F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:15:00Z"), }, -new TimeSeriesPoint(2526226) +new TimeSeriesPoint(2526226F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:20:00Z"), }, -new TimeSeriesPoint(2526475) +new TimeSeriesPoint(2526475F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:25:00Z"), }, -new TimeSeriesPoint(2526471) +new TimeSeriesPoint(2526471F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:30:00Z"), }, -new TimeSeriesPoint(2526471) +new TimeSeriesPoint(2526471F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:35:00Z"), }, -new TimeSeriesPoint(2526534) +new TimeSeriesPoint(2526534F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:40:00Z"), }, -new TimeSeriesPoint(2526646) +new TimeSeriesPoint(2526646F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:45:00Z"), }, -new TimeSeriesPoint(2526646) +new TimeSeriesPoint(2526646F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:50:00Z"), }, -new TimeSeriesPoint(2526648) +new TimeSeriesPoint(2526648F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:55:00Z"), }, -new TimeSeriesPoint(2526658) +new TimeSeriesPoint(2526658F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:00:00Z"), }, -new TimeSeriesPoint(2526771) +new TimeSeriesPoint(2526771F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:05:00Z"), }, -new TimeSeriesPoint(2526773) +new TimeSeriesPoint(2526773F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:10:00Z"), }, -new TimeSeriesPoint(2526793) +new TimeSeriesPoint(2526793F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:15:00Z"), }, -new TimeSeriesPoint(2527010) +new TimeSeriesPoint(2527010F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:20:00Z"), }, -new TimeSeriesPoint(2527031) +new TimeSeriesPoint(2527031F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:25:00Z"), }, -new TimeSeriesPoint(3178096) +new TimeSeriesPoint(3178096F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:30:00Z"), }, -new TimeSeriesPoint(3196305) +new TimeSeriesPoint(3196305F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:35:00Z"), }, -new TimeSeriesPoint(3196202) +new TimeSeriesPoint(3196202F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:40:00Z"), }, -new TimeSeriesPoint(3196202) +new TimeSeriesPoint(3196202F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:45:00Z"), }, -new TimeSeriesPoint(3196205) +new TimeSeriesPoint(3196205F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:50:00Z"), }, -new TimeSeriesPoint(3229232) +new TimeSeriesPoint(3229232F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:55:00Z"), }, -new TimeSeriesPoint(3230463) +new TimeSeriesPoint(3230463F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:00:00Z"), }, -new TimeSeriesPoint(3230468) +new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:05:00Z"), }, -new TimeSeriesPoint(3230468) +new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:10:00Z"), }, -new TimeSeriesPoint(3230468) +new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:15:00Z"), }, -new TimeSeriesPoint(3230470) +new TimeSeriesPoint(3230470F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:20:00Z"), }, -new TimeSeriesPoint(3230467) +new TimeSeriesPoint(3230467F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:25:00Z"), }, -new TimeSeriesPoint(3230506) +new TimeSeriesPoint(3230506F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:30:00Z"), }, -new TimeSeriesPoint(3231536) +new TimeSeriesPoint(3231536F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:35:00Z"), }, -new TimeSeriesPoint(3230723) +new TimeSeriesPoint(3230723F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:40:00Z"), }, -new TimeSeriesPoint(3230727) +new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:45:00Z"), }, -new TimeSeriesPoint(3230727) +new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:50:00Z"), }, -new TimeSeriesPoint(3230727) +new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:55:00Z"), }, -new TimeSeriesPoint(3231880) +new TimeSeriesPoint(3231880F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:00:00Z"), }, -new TimeSeriesPoint(3232283) +new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:05:00Z"), }, -new TimeSeriesPoint(3232283) +new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:10:00Z"), }, -new TimeSeriesPoint(3232283) +new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:15:00Z"), }, -new TimeSeriesPoint(3232325) +new TimeSeriesPoint(3232325F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:20:00Z"), }, -new TimeSeriesPoint(3232323) +new TimeSeriesPoint(3232323F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:25:00Z"), }, -new TimeSeriesPoint(3232327) +new TimeSeriesPoint(3232327F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:30:00Z"), }, -new TimeSeriesPoint(3232340) +new TimeSeriesPoint(3232340F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:35:00Z"), }, -new TimeSeriesPoint(3232713) +new TimeSeriesPoint(3232713F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:40:00Z"), }, -new TimeSeriesPoint(3232729) +new TimeSeriesPoint(3232729F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:45:00Z"), }, -new TimeSeriesPoint(3232756) +new TimeSeriesPoint(3232756F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:50:00Z"), }, -new TimeSeriesPoint(3233500) +new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:55:00Z"), }, -new TimeSeriesPoint(3233500) +new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T04:00:00Z"), }, -new TimeSeriesPoint(3233500) +new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T04:05:00Z"), } @@ -5189,7 +5189,7 @@ public void Example_Univariate_DetectUnivariateChangePoint_UnivariateDetectionOf CustomInterval = 5, Period = 0, StableTrendWindow = 10, - Threshold = (float)0.99, + Threshold = 0.99F, }; Response response = client.DetectUnivariateChangePoint(options); } @@ -5204,1031 +5204,1031 @@ public async Task Example_Univariate_DetectUnivariateChangePoint_UnivariateDetec UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[] { -new TimeSeriesPoint(1639196) +new TimeSeriesPoint(1639196F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:45:00Z"), }, -new TimeSeriesPoint(1639290) +new TimeSeriesPoint(1639290F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:50:00Z"), }, -new TimeSeriesPoint(1667293) +new TimeSeriesPoint(1667293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T06:55:00Z"), }, -new TimeSeriesPoint(1703130) +new TimeSeriesPoint(1703130F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:00:00Z"), }, -new TimeSeriesPoint(1650912) +new TimeSeriesPoint(1650912F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:05:00Z"), }, -new TimeSeriesPoint(1653596) +new TimeSeriesPoint(1653596F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:10:00Z"), }, -new TimeSeriesPoint(1653793) +new TimeSeriesPoint(1653793F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:15:00Z"), }, -new TimeSeriesPoint(1653795) +new TimeSeriesPoint(1653795F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:20:00Z"), }, -new TimeSeriesPoint(1663471) +new TimeSeriesPoint(1663471F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:25:00Z"), }, -new TimeSeriesPoint(1662358) +new TimeSeriesPoint(1662358F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:30:00Z"), }, -new TimeSeriesPoint(1664320) +new TimeSeriesPoint(1664320F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:35:00Z"), }, -new TimeSeriesPoint(1664942) +new TimeSeriesPoint(1664942F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:40:00Z"), }, -new TimeSeriesPoint(1664966) +new TimeSeriesPoint(1664966F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:45:00Z"), }, -new TimeSeriesPoint(1724271) +new TimeSeriesPoint(1724271F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:50:00Z"), }, -new TimeSeriesPoint(1678720) +new TimeSeriesPoint(1678720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T07:55:00Z"), }, -new TimeSeriesPoint(1672536) +new TimeSeriesPoint(1672536F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:00:00Z"), }, -new TimeSeriesPoint(1672544) +new TimeSeriesPoint(1672544F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:05:00Z"), }, -new TimeSeriesPoint(1672364) +new TimeSeriesPoint(1672364F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:10:00Z"), }, -new TimeSeriesPoint(1672912) +new TimeSeriesPoint(1672912F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:15:00Z"), }, -new TimeSeriesPoint(1672736) +new TimeSeriesPoint(1672736F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:20:00Z"), }, -new TimeSeriesPoint(1672725) +new TimeSeriesPoint(1672725F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:25:00Z"), }, -new TimeSeriesPoint(1673247) +new TimeSeriesPoint(1673247F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:30:00Z"), }, -new TimeSeriesPoint(1673109) +new TimeSeriesPoint(1673109F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:35:00Z"), }, -new TimeSeriesPoint(1690088) +new TimeSeriesPoint(1690088F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:40:00Z"), }, -new TimeSeriesPoint(1703865) +new TimeSeriesPoint(1703865F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:45:00Z"), }, -new TimeSeriesPoint(1703865) +new TimeSeriesPoint(1703865F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:50:00Z"), }, -new TimeSeriesPoint(1786581) +new TimeSeriesPoint(1786581F) { Timestamp = DateTimeOffset.Parse("2017-01-01T08:55:00Z"), }, -new TimeSeriesPoint(1800945) +new TimeSeriesPoint(1800945F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:00:00Z"), }, -new TimeSeriesPoint(1800957) +new TimeSeriesPoint(1800957F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:05:00Z"), }, -new TimeSeriesPoint(1801191) +new TimeSeriesPoint(1801191F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:10:00Z"), }, -new TimeSeriesPoint(1801412) +new TimeSeriesPoint(1801412F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:15:00Z"), }, -new TimeSeriesPoint(1801621) +new TimeSeriesPoint(1801621F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:20:00Z"), }, -new TimeSeriesPoint(1801621) +new TimeSeriesPoint(1801621F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:25:00Z"), }, -new TimeSeriesPoint(1801654) +new TimeSeriesPoint(1801654F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:30:00Z"), }, -new TimeSeriesPoint(1802105) +new TimeSeriesPoint(1802105F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:35:00Z"), }, -new TimeSeriesPoint(1801800) +new TimeSeriesPoint(1801800F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:40:00Z"), }, -new TimeSeriesPoint(1803040) +new TimeSeriesPoint(1803040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:45:00Z"), }, -new TimeSeriesPoint(1803672) +new TimeSeriesPoint(1803672F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:50:00Z"), }, -new TimeSeriesPoint(1803535) +new TimeSeriesPoint(1803535F) { Timestamp = DateTimeOffset.Parse("2017-01-01T09:55:00Z"), }, -new TimeSeriesPoint(1803541) +new TimeSeriesPoint(1803541F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:00:00Z"), }, -new TimeSeriesPoint(1803545) +new TimeSeriesPoint(1803545F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:05:00Z"), }, -new TimeSeriesPoint(1803599) +new TimeSeriesPoint(1803599F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:10:00Z"), }, -new TimeSeriesPoint(1803616) +new TimeSeriesPoint(1803616F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:15:00Z"), }, -new TimeSeriesPoint(1803619) +new TimeSeriesPoint(1803619F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:20:00Z"), }, -new TimeSeriesPoint(1809942) +new TimeSeriesPoint(1809942F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:25:00Z"), }, -new TimeSeriesPoint(1802720) +new TimeSeriesPoint(1802720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:30:00Z"), }, -new TimeSeriesPoint(1802720) +new TimeSeriesPoint(1802720F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:35:00Z"), }, -new TimeSeriesPoint(1802888) +new TimeSeriesPoint(1802888F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:40:00Z"), }, -new TimeSeriesPoint(1809574) +new TimeSeriesPoint(1809574F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:45:00Z"), }, -new TimeSeriesPoint(1803896) +new TimeSeriesPoint(1803896F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:50:00Z"), }, -new TimeSeriesPoint(1803850) +new TimeSeriesPoint(1803850F) { Timestamp = DateTimeOffset.Parse("2017-01-01T10:55:00Z"), }, -new TimeSeriesPoint(1803854) +new TimeSeriesPoint(1803854F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:00:00Z"), }, -new TimeSeriesPoint(1803854) +new TimeSeriesPoint(1803854F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:05:00Z"), }, -new TimeSeriesPoint(1803797) +new TimeSeriesPoint(1803797F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:10:00Z"), }, -new TimeSeriesPoint(1803921) +new TimeSeriesPoint(1803921F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:15:00Z"), }, -new TimeSeriesPoint(1803933) +new TimeSeriesPoint(1803933F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:20:00Z"), }, -new TimeSeriesPoint(1804040) +new TimeSeriesPoint(1804040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:25:00Z"), }, -new TimeSeriesPoint(1804044) +new TimeSeriesPoint(1804044F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:30:00Z"), }, -new TimeSeriesPoint(1804070) +new TimeSeriesPoint(1804070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:35:00Z"), }, -new TimeSeriesPoint(1804070) +new TimeSeriesPoint(1804070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:40:00Z"), }, -new TimeSeriesPoint(1804068) +new TimeSeriesPoint(1804068F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:45:00Z"), }, -new TimeSeriesPoint(1804073) +new TimeSeriesPoint(1804073F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:50:00Z"), }, -new TimeSeriesPoint(1804101) +new TimeSeriesPoint(1804101F) { Timestamp = DateTimeOffset.Parse("2017-01-01T11:55:00Z"), }, -new TimeSeriesPoint(1804674) +new TimeSeriesPoint(1804674F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:00:00Z"), }, -new TimeSeriesPoint(1804714) +new TimeSeriesPoint(1804714F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:05:00Z"), }, -new TimeSeriesPoint(1804730) +new TimeSeriesPoint(1804730F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:10:00Z"), }, -new TimeSeriesPoint(1804816) +new TimeSeriesPoint(1804816F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:15:00Z"), }, -new TimeSeriesPoint(1803996) +new TimeSeriesPoint(1803996F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:20:00Z"), }, -new TimeSeriesPoint(1803998) +new TimeSeriesPoint(1803998F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:25:00Z"), }, -new TimeSeriesPoint(1804015) +new TimeSeriesPoint(1804015F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:30:00Z"), }, -new TimeSeriesPoint(1804047) +new TimeSeriesPoint(1804047F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:35:00Z"), }, -new TimeSeriesPoint(1804050) +new TimeSeriesPoint(1804050F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:40:00Z"), }, -new TimeSeriesPoint(1804218) +new TimeSeriesPoint(1804218F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:45:00Z"), }, -new TimeSeriesPoint(1804217) +new TimeSeriesPoint(1804217F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:50:00Z"), }, -new TimeSeriesPoint(1804217) +new TimeSeriesPoint(1804217F) { Timestamp = DateTimeOffset.Parse("2017-01-01T12:55:00Z"), }, -new TimeSeriesPoint(1804205) +new TimeSeriesPoint(1804205F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:00:00Z"), }, -new TimeSeriesPoint(1804728) +new TimeSeriesPoint(1804728F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:05:00Z"), }, -new TimeSeriesPoint(1804748) +new TimeSeriesPoint(1804748F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:10:00Z"), }, -new TimeSeriesPoint(1805232) +new TimeSeriesPoint(1805232F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:15:00Z"), }, -new TimeSeriesPoint(1814121) +new TimeSeriesPoint(1814121F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:20:00Z"), }, -new TimeSeriesPoint(1806789) +new TimeSeriesPoint(1806789F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:25:00Z"), }, -new TimeSeriesPoint(1806119) +new TimeSeriesPoint(1806119F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:30:00Z"), }, -new TimeSeriesPoint(1806329) +new TimeSeriesPoint(1806329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:35:00Z"), }, -new TimeSeriesPoint(1806454) +new TimeSeriesPoint(1806454F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:40:00Z"), }, -new TimeSeriesPoint(1806852) +new TimeSeriesPoint(1806852F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:45:00Z"), }, -new TimeSeriesPoint(1807347) +new TimeSeriesPoint(1807347F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:50:00Z"), }, -new TimeSeriesPoint(1812144) +new TimeSeriesPoint(1812144F) { Timestamp = DateTimeOffset.Parse("2017-01-01T13:55:00Z"), }, -new TimeSeriesPoint(1807418) +new TimeSeriesPoint(1807418F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:00:00Z"), }, -new TimeSeriesPoint(1807418) +new TimeSeriesPoint(1807418F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:05:00Z"), }, -new TimeSeriesPoint(1807432) +new TimeSeriesPoint(1807432F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:10:00Z"), }, -new TimeSeriesPoint(1808540) +new TimeSeriesPoint(1808540F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:15:00Z"), }, -new TimeSeriesPoint(1808541) +new TimeSeriesPoint(1808541F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:20:00Z"), }, -new TimeSeriesPoint(1807831) +new TimeSeriesPoint(1807831F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:25:00Z"), }, -new TimeSeriesPoint(1807852) +new TimeSeriesPoint(1807852F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:30:00Z"), }, -new TimeSeriesPoint(1807811) +new TimeSeriesPoint(1807811F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:35:00Z"), }, -new TimeSeriesPoint(2214285) +new TimeSeriesPoint(2214285F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:40:00Z"), }, -new TimeSeriesPoint(2215019) +new TimeSeriesPoint(2215019F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:45:00Z"), }, -new TimeSeriesPoint(2215329) +new TimeSeriesPoint(2215329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:50:00Z"), }, -new TimeSeriesPoint(2215097) +new TimeSeriesPoint(2215097F) { Timestamp = DateTimeOffset.Parse("2017-01-01T14:55:00Z"), }, -new TimeSeriesPoint(2215129) +new TimeSeriesPoint(2215129F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:00:00Z"), }, -new TimeSeriesPoint(2215120) +new TimeSeriesPoint(2215120F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:05:00Z"), }, -new TimeSeriesPoint(2217056) +new TimeSeriesPoint(2217056F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:10:00Z"), }, -new TimeSeriesPoint(2217056) +new TimeSeriesPoint(2217056F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:15:00Z"), }, -new TimeSeriesPoint(2222126) +new TimeSeriesPoint(2222126F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:20:00Z"), }, -new TimeSeriesPoint(2226472) +new TimeSeriesPoint(2226472F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:25:00Z"), }, -new TimeSeriesPoint(2226722) +new TimeSeriesPoint(2226722F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:30:00Z"), }, -new TimeSeriesPoint(2226729) +new TimeSeriesPoint(2226729F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:35:00Z"), }, -new TimeSeriesPoint(2226735) +new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:40:00Z"), }, -new TimeSeriesPoint(2226735) +new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:45:00Z"), }, -new TimeSeriesPoint(2226735) +new TimeSeriesPoint(2226735F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:50:00Z"), }, -new TimeSeriesPoint(2226952) +new TimeSeriesPoint(2226952F) { Timestamp = DateTimeOffset.Parse("2017-01-01T15:55:00Z"), }, -new TimeSeriesPoint(2226962) +new TimeSeriesPoint(2226962F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:00:00Z"), }, -new TimeSeriesPoint(2649337) +new TimeSeriesPoint(2649337F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:05:00Z"), }, -new TimeSeriesPoint(2092796) +new TimeSeriesPoint(2092796F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:10:00Z"), }, -new TimeSeriesPoint(2092839) +new TimeSeriesPoint(2092839F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:15:00Z"), }, -new TimeSeriesPoint(2092940) +new TimeSeriesPoint(2092940F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:20:00Z"), }, -new TimeSeriesPoint(2092940) +new TimeSeriesPoint(2092940F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:25:00Z"), }, -new TimeSeriesPoint(2092965) +new TimeSeriesPoint(2092965F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:30:00Z"), }, -new TimeSeriesPoint(2092979) +new TimeSeriesPoint(2092979F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:35:00Z"), }, -new TimeSeriesPoint(2095588) +new TimeSeriesPoint(2095588F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:40:00Z"), }, -new TimeSeriesPoint(2099586) +new TimeSeriesPoint(2099586F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:45:00Z"), }, -new TimeSeriesPoint(2102981) +new TimeSeriesPoint(2102981F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:50:00Z"), }, -new TimeSeriesPoint(2108053) +new TimeSeriesPoint(2108053F) { Timestamp = DateTimeOffset.Parse("2017-01-01T16:55:00Z"), }, -new TimeSeriesPoint(2107907) +new TimeSeriesPoint(2107907F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:00:00Z"), }, -new TimeSeriesPoint(2108241) +new TimeSeriesPoint(2108241F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:05:00Z"), }, -new TimeSeriesPoint(2100321) +new TimeSeriesPoint(2100321F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:10:00Z"), }, -new TimeSeriesPoint(2100448) +new TimeSeriesPoint(2100448F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:15:00Z"), }, -new TimeSeriesPoint(2100483) +new TimeSeriesPoint(2100483F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:20:00Z"), }, -new TimeSeriesPoint(2103042) +new TimeSeriesPoint(2103042F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:25:00Z"), }, -new TimeSeriesPoint(2103037) +new TimeSeriesPoint(2103037F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:30:00Z"), }, -new TimeSeriesPoint(2103040) +new TimeSeriesPoint(2103040F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:35:00Z"), }, -new TimeSeriesPoint(2103054) +new TimeSeriesPoint(2103054F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:40:00Z"), }, -new TimeSeriesPoint(2103058) +new TimeSeriesPoint(2103058F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:45:00Z"), }, -new TimeSeriesPoint(1830757) +new TimeSeriesPoint(1830757F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:50:00Z"), }, -new TimeSeriesPoint(1830855) +new TimeSeriesPoint(1830855F) { Timestamp = DateTimeOffset.Parse("2017-01-01T17:55:00Z"), }, -new TimeSeriesPoint(1831495) +new TimeSeriesPoint(1831495F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:00:00Z"), }, -new TimeSeriesPoint(1831463) +new TimeSeriesPoint(1831463F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:05:00Z"), }, -new TimeSeriesPoint(1831963) +new TimeSeriesPoint(1831963F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:10:00Z"), }, -new TimeSeriesPoint(1832046) +new TimeSeriesPoint(1832046F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:15:00Z"), }, -new TimeSeriesPoint(1832070) +new TimeSeriesPoint(1832070F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:20:00Z"), }, -new TimeSeriesPoint(1835511) +new TimeSeriesPoint(1835511F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:25:00Z"), }, -new TimeSeriesPoint(1835265) +new TimeSeriesPoint(1835265F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:30:00Z"), }, -new TimeSeriesPoint(1835481) +new TimeSeriesPoint(1835481F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:35:00Z"), }, -new TimeSeriesPoint(1835578) +new TimeSeriesPoint(1835578F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:40:00Z"), }, -new TimeSeriesPoint(1835611) +new TimeSeriesPoint(1835611F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:45:00Z"), }, -new TimeSeriesPoint(1836314) +new TimeSeriesPoint(1836314F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:50:00Z"), }, -new TimeSeriesPoint(1836369) +new TimeSeriesPoint(1836369F) { Timestamp = DateTimeOffset.Parse("2017-01-01T18:55:00Z"), }, -new TimeSeriesPoint(1837280) +new TimeSeriesPoint(1837280F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:00:00Z"), }, -new TimeSeriesPoint(1842939) +new TimeSeriesPoint(1842939F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:05:00Z"), }, -new TimeSeriesPoint(1843126) +new TimeSeriesPoint(1843126F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:10:00Z"), }, -new TimeSeriesPoint(1845840) +new TimeSeriesPoint(1845840F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:15:00Z"), }, -new TimeSeriesPoint(1842444) +new TimeSeriesPoint(1842444F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:20:00Z"), }, -new TimeSeriesPoint(1839891) +new TimeSeriesPoint(1839891F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:25:00Z"), }, -new TimeSeriesPoint(1839875) +new TimeSeriesPoint(1839875F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:30:00Z"), }, -new TimeSeriesPoint(1839870) +new TimeSeriesPoint(1839870F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:35:00Z"), }, -new TimeSeriesPoint(1840090) +new TimeSeriesPoint(1840090F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:40:00Z"), }, -new TimeSeriesPoint(1840479) +new TimeSeriesPoint(1840479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:45:00Z"), }, -new TimeSeriesPoint(1840479) +new TimeSeriesPoint(1840479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:50:00Z"), }, -new TimeSeriesPoint(1840482) +new TimeSeriesPoint(1840482F) { Timestamp = DateTimeOffset.Parse("2017-01-01T19:55:00Z"), }, -new TimeSeriesPoint(1841522) +new TimeSeriesPoint(1841522F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:00:00Z"), }, -new TimeSeriesPoint(1841836) +new TimeSeriesPoint(1841836F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:05:00Z"), }, -new TimeSeriesPoint(1842377) +new TimeSeriesPoint(1842377F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:10:00Z"), }, -new TimeSeriesPoint(1842388) +new TimeSeriesPoint(1842388F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:15:00Z"), }, -new TimeSeriesPoint(1842489) +new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:20:00Z"), }, -new TimeSeriesPoint(1842489) +new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:25:00Z"), }, -new TimeSeriesPoint(1842489) +new TimeSeriesPoint(1842489F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:30:00Z"), }, -new TimeSeriesPoint(1842496) +new TimeSeriesPoint(1842496F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:35:00Z"), }, -new TimeSeriesPoint(1842689) +new TimeSeriesPoint(1842689F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:40:00Z"), }, -new TimeSeriesPoint(1843117) +new TimeSeriesPoint(1843117F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:45:00Z"), }, -new TimeSeriesPoint(1843116) +new TimeSeriesPoint(1843116F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:50:00Z"), }, -new TimeSeriesPoint(1843227) +new TimeSeriesPoint(1843227F) { Timestamp = DateTimeOffset.Parse("2017-01-01T20:55:00Z"), }, -new TimeSeriesPoint(1843138) +new TimeSeriesPoint(1843138F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:00:00Z"), }, -new TimeSeriesPoint(1843141) +new TimeSeriesPoint(1843141F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:05:00Z"), }, -new TimeSeriesPoint(1843310) +new TimeSeriesPoint(1843310F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:10:00Z"), }, -new TimeSeriesPoint(1843310) +new TimeSeriesPoint(1843310F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:15:00Z"), }, -new TimeSeriesPoint(1843507) +new TimeSeriesPoint(1843507F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:20:00Z"), }, -new TimeSeriesPoint(1843953) +new TimeSeriesPoint(1843953F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:25:00Z"), }, -new TimeSeriesPoint(1844778) +new TimeSeriesPoint(1844778F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:30:00Z"), }, -new TimeSeriesPoint(1843918) +new TimeSeriesPoint(1843918F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:35:00Z"), }, -new TimeSeriesPoint(1882692) +new TimeSeriesPoint(1882692F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:40:00Z"), }, -new TimeSeriesPoint(1974888) +new TimeSeriesPoint(1974888F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:45:00Z"), }, -new TimeSeriesPoint(2157136) +new TimeSeriesPoint(2157136F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:50:00Z"), }, -new TimeSeriesPoint(2154987) +new TimeSeriesPoint(2154987F) { Timestamp = DateTimeOffset.Parse("2017-01-01T21:55:00Z"), }, -new TimeSeriesPoint(2155664) +new TimeSeriesPoint(2155664F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:00:00Z"), }, -new TimeSeriesPoint(2155660) +new TimeSeriesPoint(2155660F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:05:00Z"), }, -new TimeSeriesPoint(2155824) +new TimeSeriesPoint(2155824F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:10:00Z"), }, -new TimeSeriesPoint(2155824) +new TimeSeriesPoint(2155824F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:15:00Z"), }, -new TimeSeriesPoint(2156329) +new TimeSeriesPoint(2156329F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:20:00Z"), }, -new TimeSeriesPoint(2156479) +new TimeSeriesPoint(2156479F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:25:00Z"), }, -new TimeSeriesPoint(2165269) +new TimeSeriesPoint(2165269F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:30:00Z"), }, -new TimeSeriesPoint(2165433) +new TimeSeriesPoint(2165433F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:35:00Z"), }, -new TimeSeriesPoint(2165739) +new TimeSeriesPoint(2165739F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:40:00Z"), }, -new TimeSeriesPoint(2165931) +new TimeSeriesPoint(2165931F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:45:00Z"), }, -new TimeSeriesPoint(2165928) +new TimeSeriesPoint(2165928F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:50:00Z"), }, -new TimeSeriesPoint(2165989) +new TimeSeriesPoint(2165989F) { Timestamp = DateTimeOffset.Parse("2017-01-01T22:55:00Z"), }, -new TimeSeriesPoint(2228961) +new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:00:00Z"), }, -new TimeSeriesPoint(2228961) +new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:05:00Z"), }, -new TimeSeriesPoint(2228961) +new TimeSeriesPoint(2228961F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:10:00Z"), }, -new TimeSeriesPoint(2485802) +new TimeSeriesPoint(2485802F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:15:00Z"), }, -new TimeSeriesPoint(2485802) +new TimeSeriesPoint(2485802F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:20:00Z"), }, -new TimeSeriesPoint(2486021) +new TimeSeriesPoint(2486021F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:25:00Z"), }, -new TimeSeriesPoint(2485293) +new TimeSeriesPoint(2485293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:30:00Z"), }, -new TimeSeriesPoint(2485293) +new TimeSeriesPoint(2485293F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:35:00Z"), }, -new TimeSeriesPoint(2485324) +new TimeSeriesPoint(2485324F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:40:00Z"), }, -new TimeSeriesPoint(2489142) +new TimeSeriesPoint(2489142F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:45:00Z"), }, -new TimeSeriesPoint(2526312) +new TimeSeriesPoint(2526312F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:50:00Z"), }, -new TimeSeriesPoint(2526313) +new TimeSeriesPoint(2526313F) { Timestamp = DateTimeOffset.Parse("2017-01-01T23:55:00Z"), }, -new TimeSeriesPoint(2526314) +new TimeSeriesPoint(2526314F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:00:00Z"), }, -new TimeSeriesPoint(2526324) +new TimeSeriesPoint(2526324F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:05:00Z"), }, -new TimeSeriesPoint(2526325) +new TimeSeriesPoint(2526325F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:10:00Z"), }, -new TimeSeriesPoint(2526205) +new TimeSeriesPoint(2526205F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:15:00Z"), }, -new TimeSeriesPoint(2526226) +new TimeSeriesPoint(2526226F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:20:00Z"), }, -new TimeSeriesPoint(2526475) +new TimeSeriesPoint(2526475F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:25:00Z"), }, -new TimeSeriesPoint(2526471) +new TimeSeriesPoint(2526471F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:30:00Z"), }, -new TimeSeriesPoint(2526471) +new TimeSeriesPoint(2526471F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:35:00Z"), }, -new TimeSeriesPoint(2526534) +new TimeSeriesPoint(2526534F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:40:00Z"), }, -new TimeSeriesPoint(2526646) +new TimeSeriesPoint(2526646F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:45:00Z"), }, -new TimeSeriesPoint(2526646) +new TimeSeriesPoint(2526646F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:50:00Z"), }, -new TimeSeriesPoint(2526648) +new TimeSeriesPoint(2526648F) { Timestamp = DateTimeOffset.Parse("2017-01-02T00:55:00Z"), }, -new TimeSeriesPoint(2526658) +new TimeSeriesPoint(2526658F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:00:00Z"), }, -new TimeSeriesPoint(2526771) +new TimeSeriesPoint(2526771F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:05:00Z"), }, -new TimeSeriesPoint(2526773) +new TimeSeriesPoint(2526773F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:10:00Z"), }, -new TimeSeriesPoint(2526793) +new TimeSeriesPoint(2526793F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:15:00Z"), }, -new TimeSeriesPoint(2527010) +new TimeSeriesPoint(2527010F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:20:00Z"), }, -new TimeSeriesPoint(2527031) +new TimeSeriesPoint(2527031F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:25:00Z"), }, -new TimeSeriesPoint(3178096) +new TimeSeriesPoint(3178096F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:30:00Z"), }, -new TimeSeriesPoint(3196305) +new TimeSeriesPoint(3196305F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:35:00Z"), }, -new TimeSeriesPoint(3196202) +new TimeSeriesPoint(3196202F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:40:00Z"), }, -new TimeSeriesPoint(3196202) +new TimeSeriesPoint(3196202F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:45:00Z"), }, -new TimeSeriesPoint(3196205) +new TimeSeriesPoint(3196205F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:50:00Z"), }, -new TimeSeriesPoint(3229232) +new TimeSeriesPoint(3229232F) { Timestamp = DateTimeOffset.Parse("2017-01-02T01:55:00Z"), }, -new TimeSeriesPoint(3230463) +new TimeSeriesPoint(3230463F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:00:00Z"), }, -new TimeSeriesPoint(3230468) +new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:05:00Z"), }, -new TimeSeriesPoint(3230468) +new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:10:00Z"), }, -new TimeSeriesPoint(3230468) +new TimeSeriesPoint(3230468F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:15:00Z"), }, -new TimeSeriesPoint(3230470) +new TimeSeriesPoint(3230470F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:20:00Z"), }, -new TimeSeriesPoint(3230467) +new TimeSeriesPoint(3230467F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:25:00Z"), }, -new TimeSeriesPoint(3230506) +new TimeSeriesPoint(3230506F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:30:00Z"), }, -new TimeSeriesPoint(3231536) +new TimeSeriesPoint(3231536F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:35:00Z"), }, -new TimeSeriesPoint(3230723) +new TimeSeriesPoint(3230723F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:40:00Z"), }, -new TimeSeriesPoint(3230727) +new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:45:00Z"), }, -new TimeSeriesPoint(3230727) +new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:50:00Z"), }, -new TimeSeriesPoint(3230727) +new TimeSeriesPoint(3230727F) { Timestamp = DateTimeOffset.Parse("2017-01-02T02:55:00Z"), }, -new TimeSeriesPoint(3231880) +new TimeSeriesPoint(3231880F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:00:00Z"), }, -new TimeSeriesPoint(3232283) +new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:05:00Z"), }, -new TimeSeriesPoint(3232283) +new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:10:00Z"), }, -new TimeSeriesPoint(3232283) +new TimeSeriesPoint(3232283F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:15:00Z"), }, -new TimeSeriesPoint(3232325) +new TimeSeriesPoint(3232325F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:20:00Z"), }, -new TimeSeriesPoint(3232323) +new TimeSeriesPoint(3232323F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:25:00Z"), }, -new TimeSeriesPoint(3232327) +new TimeSeriesPoint(3232327F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:30:00Z"), }, -new TimeSeriesPoint(3232340) +new TimeSeriesPoint(3232340F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:35:00Z"), }, -new TimeSeriesPoint(3232713) +new TimeSeriesPoint(3232713F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:40:00Z"), }, -new TimeSeriesPoint(3232729) +new TimeSeriesPoint(3232729F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:45:00Z"), }, -new TimeSeriesPoint(3232756) +new TimeSeriesPoint(3232756F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:50:00Z"), }, -new TimeSeriesPoint(3233500) +new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T03:55:00Z"), }, -new TimeSeriesPoint(3233500) +new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T04:00:00Z"), }, -new TimeSeriesPoint(3233500) +new TimeSeriesPoint(3233500F) { Timestamp = DateTimeOffset.Parse("2017-01-02T04:05:00Z"), } @@ -6237,7 +6237,7 @@ public async Task Example_Univariate_DetectUnivariateChangePoint_UnivariateDetec CustomInterval = 5, Period = 0, StableTrendWindow = 10, - Threshold = (float)0.99, + Threshold = 0.99F, }; Response response = await client.DetectUnivariateChangePointAsync(options); } diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/samples/Generated/Samples/Sample_ApiManagementServiceResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/samples/Generated/Samples/Sample_ApiManagementServiceResource.cs index ec555649e51c7..e5fcd962e87ea 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/samples/Generated/Samples/Sample_ApiManagementServiceResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/samples/Generated/Samples/Sample_ApiManagementServiceResource.cs @@ -69,7 +69,7 @@ public async Task PerformConnectivityCheckAsync_HTTPConnectivityCheck() ApiManagementServiceResource apiManagementService = client.GetApiManagementServiceResource(apiManagementServiceResourceId); // invoke the operation - ConnectivityCheckContent content = new ConnectivityCheckContent(new ConnectivityCheckRequestSource("northeurope"), new ConnectivityCheckRequestDestination("https://microsoft.com", 3306)) + ConnectivityCheckContent content = new ConnectivityCheckContent(new ConnectivityCheckRequestSource("northeurope"), new ConnectivityCheckRequestDestination("https://microsoft.com", 3306L)) { Protocol = ConnectivityCheckProtocol.Https, ProtocolHttpConfiguration = new ConnectivityCheckRequestHttpConfiguration() @@ -77,7 +77,7 @@ public async Task PerformConnectivityCheckAsync_HTTPConnectivityCheck() Method = HttpMethodConfiguration.Get, ValidStatusCodes = { -200,204 +200L,204L }, Headers = { @@ -113,7 +113,7 @@ public async Task PerformConnectivityCheckAsync_TCPConnectivityCheck() ApiManagementServiceResource apiManagementService = client.GetApiManagementServiceResource(apiManagementServiceResourceId); // invoke the operation - ConnectivityCheckContent content = new ConnectivityCheckContent(new ConnectivityCheckRequestSource("northeurope"), new ConnectivityCheckRequestDestination("8.8.8.8", 53)) + ConnectivityCheckContent content = new ConnectivityCheckContent(new ConnectivityCheckRequestSource("northeurope"), new ConnectivityCheckRequestDestination("8.8.8.8", 53L)) { PreferredIPVersion = PreferredIPVersion.IPv4, }; diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherCollection.cs index 3ef3ba69bdda9..7aaa799be89ef 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherCollection.cs @@ -43,7 +43,7 @@ public async Task CreateOrUpdate_CreateOrUpdateWatcher() AutomationWatcherData data = new AutomationWatcherData(null) { ETag = null, - ExecutionFrequencyInSeconds = 60, + ExecutionFrequencyInSeconds = 60L, ScriptName = "MyTestWatcherRunbook", ScriptParameters = { diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherResource.cs index 806ffbda9b144..de706a95c7e83 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationWatcherResource.cs @@ -73,7 +73,7 @@ public async Task Update_UpdateWatcher() AutomationWatcherPatch patch = new AutomationWatcherPatch() { Name = "MyTestWatcher", - ExecutionFrequencyInSeconds = 600, + ExecutionFrequencyInSeconds = 600L, }; AutomationWatcherResource result = await automationWatcher.UpdateAsync(patch); diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationCollection.cs index 489d0198b7aea..71b522358cb3a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationCollection.cs @@ -110,7 +110,7 @@ public async Task CreateOrUpdate_CreateSoftwareUpdateConfiguration() { StartOn = DateTimeOffset.Parse("2017-10-19T12:22:57+00:00"), ExpireOn = DateTimeOffset.Parse("2018-11-09T11:22:57+00:00"), - Interval = 1, + Interval = 1L, Frequency = AutomationScheduleFrequency.Hour, TimeZone = "America/Los_Angeles", AdvancedSchedule = new AutomationAdvancedSchedule() diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationResource.cs index c73cf41139db7..1678fb995b7f7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_SoftwareUpdateConfigurationResource.cs @@ -107,7 +107,7 @@ public async Task Update_CreateSoftwareUpdateConfiguration() { StartOn = DateTimeOffset.Parse("2017-10-19T12:22:57+00:00"), ExpireOn = DateTimeOffset.Parse("2018-11-09T11:22:57+00:00"), - Interval = 1, + Interval = 1L, Frequency = AutomationScheduleFrequency.Hour, TimeZone = "America/Los_Angeles", AdvancedSchedule = new AutomationAdvancedSchedule() diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpCollection.cs index 16571b1c48304..f76e5d3bd8b64 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpCollection.cs @@ -192,9 +192,9 @@ public async Task CreateOrUpdate_WorkloadNetworksCreateDhcp() Properties = new WorkloadNetworkDhcpServer() { ServerAddress = "40.1.5.1/24", - LeaseTime = 86400, + LeaseTime = 86400L, DisplayName = "dhcpConfigurations1", - Revision = 1, + Revision = 1L, }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dhcpId, data); diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpResource.cs index b67f5516b6b56..81d22c50e1a99 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpResource.cs @@ -75,8 +75,8 @@ public async Task Update_WorkloadNetworksUpdateDhcp() Properties = new WorkloadNetworkDhcpServer() { ServerAddress = "40.1.5.1/24", - LeaseTime = 86400, - Revision = 1, + LeaseTime = 86400L, + Revision = 1L, }, }; ArmOperation lro = await workloadNetworkDhcp.UpdateAsync(WaitUntil.Completed, data); diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceCollection.cs index d41c738b968de..14198d88c7ef7 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceCollection.cs @@ -198,7 +198,7 @@ public async Task CreateOrUpdate_WorkloadNetworksCreateDnsService() "fqdnZone1" }, LogLevel = DnsServiceLogLevel.Info, - Revision = 1, + Revision = 1L, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dnsServiceId, data); WorkloadNetworkDnsServiceResource result = lro.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceResource.cs index 91e792b2baf98..ee643e2706cf7 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceResource.cs @@ -81,7 +81,7 @@ public async Task Update_WorkloadNetworksUpdateDnsService() "fqdnZone1" }, LogLevel = DnsServiceLogLevel.Info, - Revision = 1, + Revision = 1L, }; ArmOperation lro = await workloadNetworkDnsService.UpdateAsync(WaitUntil.Completed, data); WorkloadNetworkDnsServiceResource result = lro.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneCollection.cs index 2aa018a06da3c..c36f37995d584 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneCollection.cs @@ -198,7 +198,7 @@ public async Task CreateOrUpdate_WorkloadNetworksCreateDnsZone() IPAddress.Parse("1.1.1.1") }, SourceIP = IPAddress.Parse("8.8.8.8"), - Revision = 1, + Revision = 1L, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dnsZoneId, data); WorkloadNetworkDnsZoneResource result = lro.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneResource.cs index 5c618ba974c21..09db3754310e7 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneResource.cs @@ -81,7 +81,7 @@ public async Task Update_WorkloadNetworksUpdateDnsZone() IPAddress.Parse("1.1.1.1") }, SourceIP = IPAddress.Parse("8.8.8.8"), - Revision = 1, + Revision = 1L, }; ArmOperation lro = await workloadNetworkDnsZone.UpdateAsync(WaitUntil.Completed, data); WorkloadNetworkDnsZoneResource result = lro.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileCollection.cs index 5f147457485b8..3a40a25615c89 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileCollection.cs @@ -193,7 +193,7 @@ public async Task CreateOrUpdate_WorkloadNetworksCreatePortMirroring() Direction = PortMirroringProfileDirection.Bidirectional, Source = "vmGroup1", Destination = "vmGroup2", - Revision = 1, + Revision = 1L, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, portMirroringId, data); WorkloadNetworkPortMirroringProfileResource result = lro.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileResource.cs index 84e7f7685f11d..9b5c728469017 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileResource.cs @@ -75,7 +75,7 @@ public async Task Update_WorkloadNetworksUpdatePortMirroring() Direction = PortMirroringProfileDirection.Bidirectional, Source = "vmGroup1", Destination = "vmGroup2", - Revision = 1, + Revision = 1L, }; ArmOperation lro = await workloadNetworkPortMirroringProfile.UpdateAsync(WaitUntil.Completed, data); WorkloadNetworkPortMirroringProfileResource result = lro.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPCollection.cs index 034b39a9fa464..2d96894f24c24 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPCollection.cs @@ -189,7 +189,7 @@ public async Task CreateOrUpdate_WorkloadNetworksCreatePublicIP() WorkloadNetworkPublicIPData data = new WorkloadNetworkPublicIPData() { DisplayName = "publicIP1", - NumberOfPublicIPs = 32, + NumberOfPublicIPs = 32L, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, publicIPId, data); WorkloadNetworkPublicIPResource result = lro.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPResource.cs index 34a04e5c8d61c..aedba5399d793 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPResource.cs @@ -72,7 +72,7 @@ public async Task Update_WorkloadNetworksCreatePublicIP() WorkloadNetworkPublicIPData data = new WorkloadNetworkPublicIPData() { DisplayName = "publicIP1", - NumberOfPublicIPs = 32, + NumberOfPublicIPs = 32L, }; ArmOperation lro = await workloadNetworkPublicIP.UpdateAsync(WaitUntil.Completed, data); WorkloadNetworkPublicIPResource result = lro.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentCollection.cs index 1c24a8d73a509..bf410a292c5a2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentCollection.cs @@ -199,7 +199,7 @@ public async Task CreateOrUpdate_WorkloadNetworksCreateSegments() }, GatewayAddress = "40.20.20.20/16", }, - Revision = 1, + Revision = 1L, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, segmentId, data); WorkloadNetworkSegmentResource result = lro.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentResource.cs index 0a8be9ac68da0..97be8f84bfb42 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentResource.cs @@ -81,7 +81,7 @@ public async Task Update_WorkloadNetworksUpdateSegments() }, GatewayAddress = "40.20.20.20/16", }, - Revision = 1, + Revision = 1L, }; ArmOperation lro = await workloadNetworkSegment.UpdateAsync(WaitUntil.Completed, data); WorkloadNetworkSegmentResource result = lro.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupCollection.cs index 2f8d1a14619d2..6aaefea36c15b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupCollection.cs @@ -193,7 +193,7 @@ public async Task CreateOrUpdate_WorkloadNetworksCreateVMGroup() { "564d43da-fefc-2a3b-1d92-42855622fa50" }, - Revision = 1, + Revision = 1L, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vmGroupId, data); WorkloadNetworkVmGroupResource result = lro.Value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupResource.cs index b759fa9b3a7dc..274587a8490ce 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupResource.cs @@ -75,7 +75,7 @@ public async Task Update_WorkloadNetworksUpdateVMGroup() { "564d43da-fefc-2a3b-1d92-42855622fa50" }, - Revision = 1, + Revision = 1L, }; ArmOperation lro = await workloadNetworkVmGroup.UpdateAsync(WaitUntil.Completed, data); WorkloadNetworkVmGroupResource result = lro.Value; diff --git a/sdk/billing/Azure.ResourceManager.Billing/samples/Generated/Samples/Sample_BillingSubscriptionAliasCollection.cs b/sdk/billing/Azure.ResourceManager.Billing/samples/Generated/Samples/Sample_BillingSubscriptionAliasCollection.cs index 86a8b81f738df..0299cc1c85406 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/samples/Generated/Samples/Sample_BillingSubscriptionAliasCollection.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/samples/Generated/Samples/Sample_BillingSubscriptionAliasCollection.cs @@ -147,7 +147,7 @@ public async Task CreateOrUpdate_BillingSubscriptionAliasCreateOrUpdate() { BillingFrequency = "P1M", DisplayName = "Subscription 3", - Quantity = 1, + Quantity = 1L, SkuId = "0001", TermDuration = XmlConvert.ToTimeSpan("P1M"), }; diff --git a/sdk/billing/Azure.ResourceManager.Billing/samples/Generated/Samples/Sample_BillingSubscriptionAliasResource.cs b/sdk/billing/Azure.ResourceManager.Billing/samples/Generated/Samples/Sample_BillingSubscriptionAliasResource.cs index 9dd18b58dddf7..0d575377664f7 100644 --- a/sdk/billing/Azure.ResourceManager.Billing/samples/Generated/Samples/Sample_BillingSubscriptionAliasResource.cs +++ b/sdk/billing/Azure.ResourceManager.Billing/samples/Generated/Samples/Sample_BillingSubscriptionAliasResource.cs @@ -70,7 +70,7 @@ public async Task Update_BillingSubscriptionAliasCreateOrUpdate() { BillingFrequency = "P1M", DisplayName = "Subscription 3", - Quantity = 1, + Quantity = 1L, SkuId = "0001", TermDuration = XmlConvert.ToTimeSpan("P1M"), }; diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/Docs/ConversationAnalysisClient.xml b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/Docs/ConversationAnalysisClient.xml index 7a682b09567a0..9a307ff5dc86f 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/Docs/ConversationAnalysisClient.xml +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/Docs/ConversationAnalysisClient.xml @@ -683,23 +683,23 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { WordLevelTimings = {new WordLevelTiming { - Offset = 390000, - Duration = 2700000, + Offset = 390000L, + Duration = 2700000L, Word = "good", }, new WordLevelTiming { - Offset = 4500000, - Duration = 920000, + Offset = 4500000L, + Duration = 920000L, Word = "morning", }, new WordLevelTiming { - Offset = 590000, - Duration = 2700000, + Offset = 590000L, + Duration = 2700000L, Word = "john", }, new WordLevelTiming { - Offset = 6300000, - Duration = 920000, + Offset = 6300000L, + Duration = 920000L, Word = "doe", }}, } @@ -746,23 +746,23 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { WordLevelTimings = {new WordLevelTiming { - Offset = 390000, - Duration = 2700000, + Offset = 390000L, + Duration = 2700000L, Word = "good", }, new WordLevelTiming { - Offset = 4500000, - Duration = 920000, + Offset = 4500000L, + Duration = 920000L, Word = "morning", }, new WordLevelTiming { - Offset = 590000, - Duration = 2700000, + Offset = 590000L, + Duration = 2700000L, Word = "john", }, new WordLevelTiming { - Offset = 6300000, - Duration = 920000, + Offset = 6300000L, + Duration = 920000L, Word = "doe", }}, } @@ -810,23 +810,23 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { WordLevelTimings = {new WordLevelTiming { - Offset = 390000, - Duration = 2700000, + Offset = 390000L, + Duration = 2700000L, Word = "good", }, new WordLevelTiming { - Offset = 4500000, - Duration = 920000, + Offset = 4500000L, + Duration = 920000L, Word = "morning", }, new WordLevelTiming { - Offset = 590000, - Duration = 2700000, + Offset = 590000L, + Duration = 2700000L, Word = "john", }, new WordLevelTiming { - Offset = 6300000, - Duration = 920000, + Offset = 6300000L, + Duration = 920000L, Word = "doe", }}, } @@ -873,8 +873,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 0, - Duration = 20000000, + Offset = 0L, + Duration = 20000000L, }, }, new TranscriptConversationItem( @@ -887,8 +887,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 20000000, - Duration = 50000000, + Offset = 20000000L, + Duration = 50000000L, }, }, new TranscriptConversationItem( @@ -901,8 +901,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 50000000, - Duration = 60000000, + Offset = 50000000L, + Duration = 60000000L, }, } }) @@ -981,8 +981,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 0, - Duration = 20000000, + Offset = 0L, + Duration = 20000000L, }, }, new TranscriptConversationItem( @@ -995,8 +995,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 20000000, - Duration = 50000000, + Offset = 20000000L, + Duration = 50000000L, }, }, new TranscriptConversationItem( @@ -1009,8 +1009,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 50000000, - Duration = 60000000, + Offset = 50000000L, + Duration = 60000000L, }, } }) @@ -1050,23 +1050,23 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { WordLevelTimings = {new WordLevelTiming { - Offset = 390000, - Duration = 2700000, + Offset = 390000L, + Duration = 2700000L, Word = "good", }, new WordLevelTiming { - Offset = 4500000, - Duration = 920000, + Offset = 4500000L, + Duration = 920000L, Word = "morning", }, new WordLevelTiming { - Offset = 590000, - Duration = 2700000, + Offset = 590000L, + Duration = 2700000L, Word = "john", }, new WordLevelTiming { - Offset = 6300000, - Duration = 920000, + Offset = 6300000L, + Duration = 920000L, Word = "doe", }}, } @@ -1113,23 +1113,23 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { WordLevelTimings = {new WordLevelTiming { - Offset = 390000, - Duration = 2700000, + Offset = 390000L, + Duration = 2700000L, Word = "good", }, new WordLevelTiming { - Offset = 4500000, - Duration = 920000, + Offset = 4500000L, + Duration = 920000L, Word = "morning", }, new WordLevelTiming { - Offset = 590000, - Duration = 2700000, + Offset = 590000L, + Duration = 2700000L, Word = "john", }, new WordLevelTiming { - Offset = 6300000, - Duration = 920000, + Offset = 6300000L, + Duration = 920000L, Word = "doe", }}, } @@ -1177,23 +1177,23 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { WordLevelTimings = {new WordLevelTiming { - Offset = 390000, - Duration = 2700000, + Offset = 390000L, + Duration = 2700000L, Word = "good", }, new WordLevelTiming { - Offset = 4500000, - Duration = 920000, + Offset = 4500000L, + Duration = 920000L, Word = "morning", }, new WordLevelTiming { - Offset = 590000, - Duration = 2700000, + Offset = 590000L, + Duration = 2700000L, Word = "john", }, new WordLevelTiming { - Offset = 6300000, - Duration = 920000, + Offset = 6300000L, + Duration = 920000L, Word = "doe", }}, } @@ -1240,8 +1240,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 0, - Duration = 20000000, + Offset = 0L, + Duration = 20000000L, }, }, new TranscriptConversationItem( @@ -1254,8 +1254,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 20000000, - Duration = 50000000, + Offset = 20000000L, + Duration = 50000000L, }, }, new TranscriptConversationItem( @@ -1268,8 +1268,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 50000000, - Duration = 60000000, + Offset = 50000000L, + Duration = 60000000L, }, } }) @@ -1348,8 +1348,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 0, - Duration = 20000000, + Offset = 0L, + Duration = 20000000L, }, }, new TranscriptConversationItem( @@ -1362,8 +1362,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 20000000, - Duration = 50000000, + Offset = 20000000L, + Duration = 50000000L, }, }, new TranscriptConversationItem( @@ -1376,8 +1376,8 @@ AnalyzeConversationOperationInput analyzeConversationOperationInput = new Analyz { ConversationItemLevelTiming = new ConversationItemLevelTiming { - Offset = 50000000, - Duration = 60000000, + Offset = 50000000L, + Duration = 60000000L, }, } }) @@ -1431,26 +1431,26 @@ using RequestContent content = RequestContent.Create(new new { word = "good", - offset = 390000, - duration = 2700000, + offset = 390000L, + duration = 2700000L, }, new { word = "morning", - offset = 4500000, - duration = 920000, + offset = 4500000L, + duration = 920000L, }, new { word = "john", - offset = 590000, - duration = 2700000, + offset = 590000L, + duration = 2700000L, }, new { word = "doe", - offset = 6300000, - duration = 920000, + offset = 6300000L, + duration = 920000L, } }, } @@ -1513,26 +1513,26 @@ using RequestContent content = RequestContent.Create(new new { word = "good", - offset = 390000, - duration = 2700000, + offset = 390000L, + duration = 2700000L, }, new { word = "morning", - offset = 4500000, - duration = 920000, + offset = 4500000L, + duration = 920000L, }, new { word = "john", - offset = 590000, - duration = 2700000, + offset = 590000L, + duration = 2700000L, }, new { word = "doe", - offset = 6300000, - duration = 920000, + offset = 6300000L, + duration = 920000L, } }, } @@ -1596,26 +1596,26 @@ using RequestContent content = RequestContent.Create(new new { word = "good", - offset = 390000, - duration = 2700000, + offset = 390000L, + duration = 2700000L, }, new { word = "morning", - offset = 4500000, - duration = 920000, + offset = 4500000L, + duration = 920000L, }, new { word = "john", - offset = 590000, - duration = 2700000, + offset = 590000L, + duration = 2700000L, }, new { word = "doe", - offset = 6300000, - duration = 920000, + offset = 6300000L, + duration = 920000L, } }, } @@ -1674,8 +1674,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 0, - duration = 20000000, + offset = 0L, + duration = 20000000L, }, }, new @@ -1688,8 +1688,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 20000000, - duration = 50000000, + offset = 20000000L, + duration = 50000000L, }, }, new @@ -1702,8 +1702,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 50000000, - duration = 60000000, + offset = 50000000L, + duration = 60000000L, }, } }, @@ -1825,8 +1825,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 0, - duration = 20000000, + offset = 0L, + duration = 20000000L, }, }, new @@ -1839,8 +1839,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 20000000, - duration = 50000000, + offset = 20000000L, + duration = 50000000L, }, }, new @@ -1853,8 +1853,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 50000000, - duration = 60000000, + offset = 50000000L, + duration = 60000000L, }, } }, @@ -1918,26 +1918,26 @@ using RequestContent content = RequestContent.Create(new new { word = "good", - offset = 390000, - duration = 2700000, + offset = 390000L, + duration = 2700000L, }, new { word = "morning", - offset = 4500000, - duration = 920000, + offset = 4500000L, + duration = 920000L, }, new { word = "john", - offset = 590000, - duration = 2700000, + offset = 590000L, + duration = 2700000L, }, new { word = "doe", - offset = 6300000, - duration = 920000, + offset = 6300000L, + duration = 920000L, } }, } @@ -2000,26 +2000,26 @@ using RequestContent content = RequestContent.Create(new new { word = "good", - offset = 390000, - duration = 2700000, + offset = 390000L, + duration = 2700000L, }, new { word = "morning", - offset = 4500000, - duration = 920000, + offset = 4500000L, + duration = 920000L, }, new { word = "john", - offset = 590000, - duration = 2700000, + offset = 590000L, + duration = 2700000L, }, new { word = "doe", - offset = 6300000, - duration = 920000, + offset = 6300000L, + duration = 920000L, } }, } @@ -2083,26 +2083,26 @@ using RequestContent content = RequestContent.Create(new new { word = "good", - offset = 390000, - duration = 2700000, + offset = 390000L, + duration = 2700000L, }, new { word = "morning", - offset = 4500000, - duration = 920000, + offset = 4500000L, + duration = 920000L, }, new { word = "john", - offset = 590000, - duration = 2700000, + offset = 590000L, + duration = 2700000L, }, new { word = "doe", - offset = 6300000, - duration = 920000, + offset = 6300000L, + duration = 920000L, } }, } @@ -2161,8 +2161,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 0, - duration = 20000000, + offset = 0L, + duration = 20000000L, }, }, new @@ -2175,8 +2175,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 20000000, - duration = 50000000, + offset = 20000000L, + duration = 50000000L, }, }, new @@ -2189,8 +2189,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 50000000, - duration = 60000000, + offset = 50000000L, + duration = 60000000L, }, } }, @@ -2312,8 +2312,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 0, - duration = 20000000, + offset = 0L, + duration = 20000000L, }, }, new @@ -2326,8 +2326,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 20000000, - duration = 50000000, + offset = 20000000L, + duration = 50000000L, }, }, new @@ -2340,8 +2340,8 @@ using RequestContent content = RequestContent.Create(new maskedItn = "", conversationItemLevelTiming = new { - offset = 50000000, - duration = 60000000, + offset = 50000000L, + duration = 60000000L, }, } }, diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/tests/Generated/Samples/Samples_ConversationAnalysisClient.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/tests/Generated/Samples/Samples_ConversationAnalysisClient.cs index 430eb2ff01239..1ba9ef786043e 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/tests/Generated/Samples/Samples_ConversationAnalysisClient.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/tests/Generated/Samples/Samples_ConversationAnalysisClient.cs @@ -797,26 +797,26 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC new { word = "good", -offset = 390000, -duration = 2700000, +offset = 390000L, +duration = 2700000L, }, new { word = "morning", -offset = 4500000, -duration = 920000, +offset = 4500000L, +duration = 920000L, }, new { word = "john", -offset = 590000, -duration = 2700000, +offset = 590000L, +duration = 2700000L, }, new { word = "doe", -offset = 6300000, -duration = 920000, +offset = 6300000L, +duration = 920000L, } }, } @@ -882,26 +882,26 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe new { word = "good", -offset = 390000, -duration = 2700000, +offset = 390000L, +duration = 2700000L, }, new { word = "morning", -offset = 4500000, -duration = 920000, +offset = 4500000L, +duration = 920000L, }, new { word = "john", -offset = 590000, -duration = 2700000, +offset = 590000L, +duration = 2700000L, }, new { word = "doe", -offset = 6300000, -duration = 920000, +offset = 6300000L, +duration = 920000L, } }, } @@ -953,23 +953,23 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC { WordLevelTimings = {new WordLevelTiming { -Offset = 390000, -Duration = 2700000, +Offset = 390000L, +Duration = 2700000L, Word = "good", }, new WordLevelTiming { -Offset = 4500000, -Duration = 920000, +Offset = 4500000L, +Duration = 920000L, Word = "morning", }, new WordLevelTiming { -Offset = 590000, -Duration = 2700000, +Offset = 590000L, +Duration = 2700000L, Word = "john", }, new WordLevelTiming { -Offset = 6300000, -Duration = 920000, +Offset = 6300000L, +Duration = 920000L, Word = "doe", }}, } @@ -1019,23 +1019,23 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe { WordLevelTimings = {new WordLevelTiming { -Offset = 390000, -Duration = 2700000, +Offset = 390000L, +Duration = 2700000L, Word = "good", }, new WordLevelTiming { -Offset = 4500000, -Duration = 920000, +Offset = 4500000L, +Duration = 920000L, Word = "morning", }, new WordLevelTiming { -Offset = 590000, -Duration = 2700000, +Offset = 590000L, +Duration = 2700000L, Word = "john", }, new WordLevelTiming { -Offset = 6300000, -Duration = 920000, +Offset = 6300000L, +Duration = 920000L, Word = "doe", }}, } @@ -1099,26 +1099,26 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC new { word = "good", -offset = 390000, -duration = 2700000, +offset = 390000L, +duration = 2700000L, }, new { word = "morning", -offset = 4500000, -duration = 920000, +offset = 4500000L, +duration = 920000L, }, new { word = "john", -offset = 590000, -duration = 2700000, +offset = 590000L, +duration = 2700000L, }, new { word = "doe", -offset = 6300000, -duration = 920000, +offset = 6300000L, +duration = 920000L, } }, } @@ -1185,26 +1185,26 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe new { word = "good", -offset = 390000, -duration = 2700000, +offset = 390000L, +duration = 2700000L, }, new { word = "morning", -offset = 4500000, -duration = 920000, +offset = 4500000L, +duration = 920000L, }, new { word = "john", -offset = 590000, -duration = 2700000, +offset = 590000L, +duration = 2700000L, }, new { word = "doe", -offset = 6300000, -duration = 920000, +offset = 6300000L, +duration = 920000L, } }, } @@ -1257,23 +1257,23 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC { WordLevelTimings = {new WordLevelTiming { -Offset = 390000, -Duration = 2700000, +Offset = 390000L, +Duration = 2700000L, Word = "good", }, new WordLevelTiming { -Offset = 4500000, -Duration = 920000, +Offset = 4500000L, +Duration = 920000L, Word = "morning", }, new WordLevelTiming { -Offset = 590000, -Duration = 2700000, +Offset = 590000L, +Duration = 2700000L, Word = "john", }, new WordLevelTiming { -Offset = 6300000, -Duration = 920000, +Offset = 6300000L, +Duration = 920000L, Word = "doe", }}, } @@ -1324,23 +1324,23 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe { WordLevelTimings = {new WordLevelTiming { -Offset = 390000, -Duration = 2700000, +Offset = 390000L, +Duration = 2700000L, Word = "good", }, new WordLevelTiming { -Offset = 4500000, -Duration = 920000, +Offset = 4500000L, +Duration = 920000L, Word = "morning", }, new WordLevelTiming { -Offset = 590000, -Duration = 2700000, +Offset = 590000L, +Duration = 2700000L, Word = "john", }, new WordLevelTiming { -Offset = 6300000, -Duration = 920000, +Offset = 6300000L, +Duration = 920000L, Word = "doe", }}, } @@ -1405,26 +1405,26 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC new { word = "good", -offset = 390000, -duration = 2700000, +offset = 390000L, +duration = 2700000L, }, new { word = "morning", -offset = 4500000, -duration = 920000, +offset = 4500000L, +duration = 920000L, }, new { word = "john", -offset = 590000, -duration = 2700000, +offset = 590000L, +duration = 2700000L, }, new { word = "doe", -offset = 6300000, -duration = 920000, +offset = 6300000L, +duration = 920000L, } }, } @@ -1490,26 +1490,26 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe new { word = "good", -offset = 390000, -duration = 2700000, +offset = 390000L, +duration = 2700000L, }, new { word = "morning", -offset = 4500000, -duration = 920000, +offset = 4500000L, +duration = 920000L, }, new { word = "john", -offset = 590000, -duration = 2700000, +offset = 590000L, +duration = 2700000L, }, new { word = "doe", -offset = 6300000, -duration = 920000, +offset = 6300000L, +duration = 920000L, } }, } @@ -1561,23 +1561,23 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC { WordLevelTimings = {new WordLevelTiming { -Offset = 390000, -Duration = 2700000, +Offset = 390000L, +Duration = 2700000L, Word = "good", }, new WordLevelTiming { -Offset = 4500000, -Duration = 920000, +Offset = 4500000L, +Duration = 920000L, Word = "morning", }, new WordLevelTiming { -Offset = 590000, -Duration = 2700000, +Offset = 590000L, +Duration = 2700000L, Word = "john", }, new WordLevelTiming { -Offset = 6300000, -Duration = 920000, +Offset = 6300000L, +Duration = 920000L, Word = "doe", }}, } @@ -1627,23 +1627,23 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe { WordLevelTimings = {new WordLevelTiming { -Offset = 390000, -Duration = 2700000, +Offset = 390000L, +Duration = 2700000L, Word = "good", }, new WordLevelTiming { -Offset = 4500000, -Duration = 920000, +Offset = 4500000L, +Duration = 920000L, Word = "morning", }, new WordLevelTiming { -Offset = 590000, -Duration = 2700000, +Offset = 590000L, +Duration = 2700000L, Word = "john", }, new WordLevelTiming { -Offset = 6300000, -Duration = 920000, +Offset = 6300000L, +Duration = 920000L, Word = "doe", }}, } @@ -1703,8 +1703,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC maskedItn = "", conversationItemLevelTiming = new { -offset = 0, -duration = 20000000, +offset = 0L, +duration = 20000000L, }, }, new @@ -1717,8 +1717,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC maskedItn = "", conversationItemLevelTiming = new { -offset = 20000000, -duration = 50000000, +offset = 20000000L, +duration = 50000000L, }, }, new @@ -1731,8 +1731,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC maskedItn = "", conversationItemLevelTiming = new { -offset = 50000000, -duration = 60000000, +offset = 50000000L, +duration = 60000000L, }, } }, @@ -1791,8 +1791,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe maskedItn = "", conversationItemLevelTiming = new { -offset = 0, -duration = 20000000, +offset = 0L, +duration = 20000000L, }, }, new @@ -1805,8 +1805,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe maskedItn = "", conversationItemLevelTiming = new { -offset = 20000000, -duration = 50000000, +offset = 20000000L, +duration = 50000000L, }, }, new @@ -1819,8 +1819,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe maskedItn = "", conversationItemLevelTiming = new { -offset = 50000000, -duration = 60000000, +offset = 50000000L, +duration = 60000000L, }, } }, @@ -1869,8 +1869,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 0, -Duration = 20000000, +Offset = 0L, +Duration = 20000000L, }, }, new TranscriptConversationItem( @@ -1883,8 +1883,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 20000000, -Duration = 50000000, +Offset = 20000000L, +Duration = 50000000L, }, }, new TranscriptConversationItem( @@ -1897,8 +1897,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 50000000, -Duration = 60000000, +Offset = 50000000L, +Duration = 60000000L, }, } }) @@ -1938,8 +1938,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 0, -Duration = 20000000, +Offset = 0L, +Duration = 20000000L, }, }, new TranscriptConversationItem( @@ -1952,8 +1952,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 20000000, -Duration = 50000000, +Offset = 20000000L, +Duration = 50000000L, }, }, new TranscriptConversationItem( @@ -1966,8 +1966,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 50000000, -Duration = 60000000, +Offset = 50000000L, +Duration = 60000000L, }, } }) @@ -2245,8 +2245,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC maskedItn = "", conversationItemLevelTiming = new { -offset = 0, -duration = 20000000, +offset = 0L, +duration = 20000000L, }, }, new @@ -2259,8 +2259,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC maskedItn = "", conversationItemLevelTiming = new { -offset = 20000000, -duration = 50000000, +offset = 20000000L, +duration = 50000000L, }, }, new @@ -2273,8 +2273,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC maskedItn = "", conversationItemLevelTiming = new { -offset = 50000000, -duration = 60000000, +offset = 50000000L, +duration = 60000000L, }, } }, @@ -2334,8 +2334,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe maskedItn = "", conversationItemLevelTiming = new { -offset = 0, -duration = 20000000, +offset = 0L, +duration = 20000000L, }, }, new @@ -2348,8 +2348,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe maskedItn = "", conversationItemLevelTiming = new { -offset = 20000000, -duration = 50000000, +offset = 20000000L, +duration = 50000000L, }, }, new @@ -2362,8 +2362,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe maskedItn = "", conversationItemLevelTiming = new { -offset = 50000000, -duration = 60000000, +offset = 50000000L, +duration = 60000000L, }, } }, @@ -2413,8 +2413,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 0, -Duration = 20000000, +Offset = 0L, +Duration = 20000000L, }, }, new TranscriptConversationItem( @@ -2427,8 +2427,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 20000000, -Duration = 50000000, +Offset = 20000000L, +Duration = 50000000L, }, }, new TranscriptConversationItem( @@ -2441,8 +2441,8 @@ public void Example_Conversations_AnalyzeConversationSubmitOperation_SuccessfulC { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 50000000, -Duration = 60000000, +Offset = 50000000L, +Duration = 60000000L, }, } }) @@ -2482,8 +2482,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 0, -Duration = 20000000, +Offset = 0L, +Duration = 20000000L, }, }, new TranscriptConversationItem( @@ -2496,8 +2496,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 20000000, -Duration = 50000000, +Offset = 20000000L, +Duration = 50000000L, }, }, new TranscriptConversationItem( @@ -2510,8 +2510,8 @@ public async Task Example_Conversations_AnalyzeConversationSubmitOperation_Succe { ConversationItemLevelTiming = new ConversationItemLevelTiming { -Offset = 50000000, -Duration = 60000000, +Offset = 50000000L, +Duration = 60000000L, }, } }) diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetResource.cs index 91c711f85ab94..d4af39dcf9bea 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetResource.cs @@ -45,7 +45,7 @@ public async Task Update_AvailabilitySetUpdateMaximumSetGen() { Name = "DSv3-Type1", Tier = "aaa", - Capacity = 7, + Capacity = 7L, }, PlatformUpdateDomainCount = 20, PlatformFaultDomainCount = 2, diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationCollection.cs index 226fdb6ba18ae..1e2c6520817a4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationCollection.cs @@ -44,7 +44,7 @@ public async Task CreateOrUpdate_CreateOrUpdateACapacityReservation() CapacityReservationData data = new CapacityReservationData(new AzureLocation("westus"), new ComputeSku() { Name = "Standard_DS1_v2", - Capacity = 4, + Capacity = 4L, }) { Zones = diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationResource.cs index 0b29fa0361659..fde4c91ccb1d1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CapacityReservationResource.cs @@ -44,7 +44,7 @@ public async Task Update_CapacityReservationUpdateMaximumSetGen() { Name = "Standard_DS1_v2", Tier = "aaa", - Capacity = 7, + Capacity = 7L, }, Tags = { diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CloudServiceCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CloudServiceCollection.cs index 7964368ec17e0..97f3c1663ee32 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CloudServiceCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CloudServiceCollection.cs @@ -55,7 +55,7 @@ public async Task CreateOrUpdate_CreateNewCloudServiceWithMultipleRoles() { Name = "Standard_D1_v2", Tier = "Standard", -Capacity = 1, +Capacity = 1L, }, },new CloudServiceRoleProfileProperties() { @@ -64,7 +64,7 @@ public async Task CreateOrUpdate_CreateNewCloudServiceWithMultipleRoles() { Name = "Standard_D1_v2", Tier = "Standard", -Capacity = 1, +Capacity = 1L, }, } }, @@ -135,7 +135,7 @@ public async Task CreateOrUpdate_CreateNewCloudServiceWithMultipleRolesInASpecif { Name = "Standard_D1_v2", Tier = "Standard", -Capacity = 1, +Capacity = 1L, }, },new CloudServiceRoleProfileProperties() { @@ -144,7 +144,7 @@ public async Task CreateOrUpdate_CreateNewCloudServiceWithMultipleRolesInASpecif { Name = "Standard_D1_v2", Tier = "Standard", -Capacity = 1, +Capacity = 1L, }, } }, @@ -211,7 +211,7 @@ public async Task CreateOrUpdate_CreateNewCloudServiceWithSingleRole() { Name = "Standard_D1_v2", Tier = "Standard", -Capacity = 1, +Capacity = 1L, }, } }, @@ -278,7 +278,7 @@ public async Task CreateOrUpdate_CreateNewCloudServiceWithSingleRoleAndCertifica { Name = "Standard_D1_v2", Tier = "Standard", -Capacity = 1, +Capacity = 1L, }, } }, @@ -359,7 +359,7 @@ public async Task CreateOrUpdate_CreateNewCloudServiceWithSingleRoleAndRDPExtens { Name = "Standard_D1_v2", Tier = "Standard", -Capacity = 1, +Capacity = 1L, }, } }, diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_ManagedDiskCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_ManagedDiskCollection.cs index 3d4754fdd7857..0a157323d4d43 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_ManagedDiskCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_ManagedDiskCollection.cs @@ -360,7 +360,7 @@ public async Task CreateOrUpdate_CreateAManagedDiskFromUploadPreparedSecureCreat OSType = SupportedOperatingSystemType.Windows, CreationData = new DiskCreationData(DiskCreateOption.UploadPreparedSecure) { - UploadSizeBytes = 10737418752, + UploadSizeBytes = 10737418752L, }, SecurityProfile = new DiskSecurityProfile() { @@ -802,8 +802,8 @@ public async Task CreateOrUpdate_CreateAManagedDiskWithPremiumV2AccountType() }, CreationData = new DiskCreationData(DiskCreateOption.Empty), DiskSizeGB = 200, - DiskIopsReadWrite = 125, - DiskMBpsReadWrite = 3000, + DiskIopsReadWrite = 125L, + DiskMBpsReadWrite = 3000L, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, diskName, data); ManagedDiskResource result = lro.Value; @@ -945,8 +945,8 @@ public async Task CreateOrUpdate_CreateAManagedDiskWithUltraAccountTypeWithReadO LogicalSectorSize = 4096, }, DiskSizeGB = 200, - DiskIopsReadWrite = 125, - DiskMBpsReadWrite = 3000, + DiskIopsReadWrite = 125L, + DiskMBpsReadWrite = 3000L, Encryption = new DiskEncryption() { EncryptionType = ComputeEncryptionType.EncryptionAtRestWithPlatformKey, @@ -991,7 +991,7 @@ public async Task CreateOrUpdate_CreateAManagedUploadDisk() { CreationData = new DiskCreationData(DiskCreateOption.Upload) { - UploadSizeBytes = 10737418752, + UploadSizeBytes = 10737418752L, }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, diskName, data); diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs index 3dde6dd43ad94..648d41a22203f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs @@ -49,7 +49,7 @@ public async Task CreateOrUpdate_CreateAVMSSWithAnExtensionThatHasSuppressFailur { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -165,7 +165,7 @@ public async Task CreateOrUpdate_CreateAVMSSWithAnExtensionWithProtectedSettings { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -284,7 +284,7 @@ public async Task CreateOrUpdate_CreateACustomImageScaleSetFromAnUnmanagedGenera { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -369,7 +369,7 @@ public async Task CreateOrUpdate_CreateAPlatformImageScaleSetWithUnmanagedOsDisk { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -464,7 +464,7 @@ public async Task CreateOrUpdate_CreateAScaleSetFromACustomImage() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -555,7 +555,7 @@ public async Task CreateOrUpdate_CreateAScaleSetFromAGeneralizedSharedImage() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -646,7 +646,7 @@ public async Task CreateOrUpdate_CreateAScaleSetFromASpecializedSharedImage() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -731,7 +731,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWhereNicConfigHasDisableTcpState { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -839,7 +839,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithApplicationProfile() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -944,7 +944,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithDiskControllerType() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -1054,7 +1054,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithDiskEncryptionSetResourceInO { Name = "Standard_DS1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -1159,7 +1159,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithFpgaNetworkInterfaces() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -1265,7 +1265,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithHostEncryptionUsingEncryptio { Name = "Standard_DS1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, Plan = new ComputePlan() { @@ -1369,7 +1369,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithNetworkInterfacesWithPublicI { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -1487,7 +1487,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithOSImageScheduledEventsEnable { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -1589,7 +1589,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithProxyAgentSettingsOfEnabledA { Name = "Standard_D2s_v3", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -1691,7 +1691,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithResilientVMCreationEnabled() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -1789,7 +1789,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithResilientVMDeletionEnabled() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -1887,7 +1887,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithSecurityPostureReference() { Name = "Standard_A1", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -1983,7 +1983,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithSecurityTypeAsConfidentialVM { Name = "Standard_DC2as_v5", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -2090,7 +2090,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithSecurityTypeAsConfidentialVM { Name = "Standard_DC2es_v5", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -2197,7 +2197,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithServiceArtifactReference() { Name = "Standard_A1", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -2293,7 +2293,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithUefiSettingsOfSecureBootAndV { Name = "Standard_D2s_v3", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -2396,7 +2396,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithAMarketplaceImagePlan() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, Plan = new ComputePlan() { @@ -2496,7 +2496,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithAnAzureApplicationGateway() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -2597,7 +2597,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithAnAzureLoadBalancer() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -2709,7 +2709,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithAutomaticRepairsEnabled() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -2817,7 +2817,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithBootDiagnostics() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -2916,7 +2916,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithEmptyDataDisksOnEachVm() { Name = "Standard_D2_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -3021,7 +3021,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithEphemeralOsDiskProvisioningI { Name = "Standard_DS1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, Plan = new ComputePlan() { @@ -3126,7 +3126,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithEphemeralOsDisksUsingPlaceme { Name = "Standard_DS1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, Plan = new ComputePlan() { @@ -3231,7 +3231,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithEphemeralOsDisks() { Name = "Standard_DS1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, Plan = new ComputePlan() { @@ -3335,7 +3335,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithExtensionTimeBudget() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -3451,7 +3451,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithManagedBootDiagnostics() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -3549,7 +3549,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithPasswordAuthentication() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -3643,7 +3643,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithPremiumStorage() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -3737,7 +3737,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithPriorityMixPolicy() { Name = "Standard_A8m_v2", Tier = "Standard", - Capacity = 10, + Capacity = 10L, }, VirtualMachineProfile = new VirtualMachineScaleSetVmProfile() { @@ -3836,7 +3836,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithScaleInPolicy() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -3937,7 +3937,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithSkuProfile() Sku = new ComputeSku() { Name = "Mix", - Capacity = 10, + Capacity = 10L, }, VirtualMachineProfile = new VirtualMachineScaleSetVmProfile() { @@ -4053,7 +4053,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithSpotRestorePolicy() { Name = "Standard_A8m_v2", Tier = "Standard", - Capacity = 2, + Capacity = 2L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -4155,7 +4155,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithSshAuthentication() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -4260,7 +4260,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithTerminateScheduledEventsEnab { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -4362,7 +4362,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithUserData() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -4457,7 +4457,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithVirtualMachinesInDifferentZo { Name = "Standard_A1_v2", Tier = "Standard", - Capacity = 2, + Capacity = 2L, }, Zones = { @@ -4566,7 +4566,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithVmSizeProperties() { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -4666,7 +4666,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithZonalPlatformFaultDomainAlig { Name = "Standard_D1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { @@ -4770,7 +4770,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAScaleSetWithCapacityReservation( { Name = "Standard_DS1_v2", Tier = "Standard", - Capacity = 3, + Capacity = 3L, }, UpgradePolicy = new VirtualMachineScaleSetUpgradePolicy() { diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetResource.cs index 5b2e600267548..e85b8297167ea 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetResource.cs @@ -80,7 +80,7 @@ public async Task Update_VirtualMachineScaleSetUpdateMaximumSetGen() { Name = "DSv3-Type1", Tier = "aaa", - Capacity = 7, + Capacity = 7L, }, Plan = new ComputePlan() { @@ -244,8 +244,8 @@ public async Task Update_VirtualMachineScaleSetUpdateMaximumSetGen() StorageAccountType = StorageAccountType.StandardLrs, DiskEncryptionSetId = new ResourceIdentifier("aaaaaaaaaaaa"), }, -DiskIopsReadWrite = 28, -DiskMBpsReadWrite = 15, +DiskIopsReadWrite = 28L, +DiskMBpsReadWrite = 15L, } }, }, diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/samples/Generated/Samples/Sample_ComputeFleetCollection.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/samples/Generated/Samples/Sample_ComputeFleetCollection.cs index 7eaf94193aa75..ce4b3170fe83e 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/samples/Generated/Samples/Sample_ComputeFleetCollection.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/samples/Generated/Samples/Sample_ComputeFleetCollection.cs @@ -302,8 +302,8 @@ public async Task CreateOrUpdate_FleetsCreateOrUpdate() DiskEncryptionSetId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), }, }, -DiskIopsReadWrite = 27, -DiskMbpsReadWrite = 2, +DiskIopsReadWrite = 27L, +DiskMbpsReadWrite = 2L, DeleteOption = ComputeFleetDiskDeleteOptionType.Delete, } }, @@ -510,7 +510,7 @@ public async Task CreateOrUpdate_FleetsCreateOrUpdate() { Capacity = 20, MinCapacity = 10, - MaxPricePerVm = (float)0.00865, + MaxPricePerVm = 0.00865F, EvictionPolicy = ComputeFleetEvictionPolicy.Delete, AllocationStrategy = SpotAllocationStrategy.PriceCapacityOptimized, IsMaintainEnabled = true, diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/samples/Generated/Samples/Sample_ComputeFleetResource.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/samples/Generated/Samples/Sample_ComputeFleetResource.cs index 5c6c9f19fdd7f..3189efb6f7f81 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/samples/Generated/Samples/Sample_ComputeFleetResource.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/samples/Generated/Samples/Sample_ComputeFleetResource.cs @@ -233,8 +233,8 @@ public async Task Update_FleetsUpdate() DiskEncryptionSetId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"), }, }, -DiskIopsReadWrite = 27, -DiskMbpsReadWrite = 2, +DiskIopsReadWrite = 27L, +DiskMbpsReadWrite = 2L, DeleteOption = ComputeFleetDiskDeleteOptionType.Delete, } }, @@ -441,7 +441,7 @@ public async Task Update_FleetsUpdate() { Capacity = 20, MinCapacity = 10, - MaxPricePerVm = (float)0.00865, + MaxPricePerVm = 0.00865F, EvictionPolicy = ComputeFleetEvictionPolicy.Delete, AllocationStrategy = SpotAllocationStrategy.PriceCapacityOptimized, IsMaintainEnabled = true, diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_CosmosDBAccountCollection.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_CosmosDBAccountCollection.cs index 5a92cbae4f1e5..7675e92f83bb3 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_CosmosDBAccountCollection.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_CosmosDBAccountCollection.cs @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_CosmosDBDatabaseAccountCreateMax() Kind = CosmosDBAccountKind.MongoDB, ConsistencyPolicy = new ConsistencyPolicy(DefaultConsistencyLevel.BoundedStaleness) { - MaxStalenessPrefix = 200, + MaxStalenessPrefix = 200L, MaxIntervalInSeconds = 10, }, IPRules = @@ -328,7 +328,7 @@ public async Task CreateOrUpdate_CosmosDBRestoreDatabaseAccountCreateUpdateJson( Kind = CosmosDBAccountKind.GlobalDocumentDB, ConsistencyPolicy = new ConsistencyPolicy(DefaultConsistencyLevel.BoundedStaleness) { - MaxStalenessPrefix = 200, + MaxStalenessPrefix = 200L, MaxIntervalInSeconds = 10, }, KeyVaultKeyUri = new Uri("https://myKeyVault.vault.azure.net"), diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_CosmosDBAccountResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_CosmosDBAccountResource.cs index 6023b3f192a0a..c464a4eef5ed5 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_CosmosDBAccountResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_CosmosDBAccountResource.cs @@ -86,7 +86,7 @@ public async Task Update_CosmosDBDatabaseAccountPatch() }, ConsistencyPolicy = new ConsistencyPolicy(DefaultConsistencyLevel.BoundedStaleness) { - MaxStalenessPrefix = 200, + MaxStalenessPrefix = 200L, MaxIntervalInSeconds = 10, }, IPRules = diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/samples/Generated/Samples/Sample_KpiResourceFormatCollection.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/samples/Generated/Samples/Sample_KpiResourceFormatCollection.cs index db333b157ef95..7dbe330f8882b 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/samples/Generated/Samples/Sample_KpiResourceFormatCollection.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/samples/Generated/Samples/Sample_KpiResourceFormatCollection.cs @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_KpiCreateOrUpdate() { "SavingAccountBalance" }, - ThresHolds = new KpiThresholds(5, 50, true), + ThresHolds = new KpiThresholds(5M, 50M, true), Aliases = { new KpiAlias("alias","Id+4") diff --git a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/samples/Generated/Samples/Sample_KpiResourceFormatResource.cs b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/samples/Generated/Samples/Sample_KpiResourceFormatResource.cs index 8ecbcea94f1e9..b97e4b655e618 100644 --- a/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/samples/Generated/Samples/Sample_KpiResourceFormatResource.cs +++ b/sdk/customer-insights/Azure.ResourceManager.CustomerInsights/samples/Generated/Samples/Sample_KpiResourceFormatResource.cs @@ -58,7 +58,7 @@ public async Task Update_KpiCreateOrUpdate() { "SavingAccountBalance" }, - ThresHolds = new KpiThresholds(5, 50, true), + ThresHolds = new KpiThresholds(5M, 50M, true), Aliases = { new KpiAlias("alias","Id+4") diff --git a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/samples/Generated/Samples/Sample_DeviceProvisioningServiceCollection.cs b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/samples/Generated/Samples/Sample_DeviceProvisioningServiceCollection.cs index 4ca8b2b859a1c..2b1950d89a92b 100644 --- a/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/samples/Generated/Samples/Sample_DeviceProvisioningServiceCollection.cs +++ b/sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/samples/Generated/Samples/Sample_DeviceProvisioningServiceCollection.cs @@ -153,7 +153,7 @@ public async Task CreateOrUpdate_DPSCreate() }, new DeviceProvisioningServicesSkuInfo() { Name = DeviceProvisioningServicesSku.S1, - Capacity = 1, + Capacity = 1L, }) { Tags = diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/Docs/EasmClient.xml b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/Docs/EasmClient.xml index 315aea4ad7e4b..57b7b001be07b 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/Docs/EasmClient.xml +++ b/sdk/easm/Azure.Analytics.Defender.Easm/src/Generated/Docs/EasmClient.xml @@ -415,7 +415,7 @@ DiscoveryGroupPayload body = new DiscoveryGroupPayload { Description = "This is a disco group", Tier = "advanced", - FrequencyMilliseconds = 604800000, + FrequencyMilliseconds = 604800000L, Seeds = {new DiscoverySource { Kind = DiscoverySourceKind.Host, @@ -437,7 +437,7 @@ DiscoveryGroupPayload body = new DiscoveryGroupPayload { Description = "This is a disco group", Tier = "advanced", - FrequencyMilliseconds = 604800000, + FrequencyMilliseconds = 604800000L, Seeds = {new DiscoverySource { Kind = DiscoverySourceKind.Host, @@ -458,7 +458,7 @@ EasmClient client = new EasmClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { description = "This is a disco group", - frequencyMilliseconds = 604800000, + frequencyMilliseconds = 604800000L, tier = "advanced", seeds = new object[] { @@ -486,7 +486,7 @@ EasmClient client = new EasmClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { description = "This is a disco group", - frequencyMilliseconds = 604800000, + frequencyMilliseconds = 604800000L, tier = "advanced", seeds = new object[] { @@ -565,7 +565,7 @@ DiscoveryGroupPayload body = new DiscoveryGroupPayload { Description = "This is a disco group", Tier = "advanced", - FrequencyMilliseconds = 604800000, + FrequencyMilliseconds = 604800000L, Seeds = {new DiscoverySource { Kind = DiscoverySourceKind.Host, @@ -587,7 +587,7 @@ DiscoveryGroupPayload body = new DiscoveryGroupPayload { Description = "This is a disco group", Tier = "advanced", - FrequencyMilliseconds = 604800000, + FrequencyMilliseconds = 604800000L, Seeds = {new DiscoverySource { Kind = DiscoverySourceKind.Host, @@ -608,7 +608,7 @@ EasmClient client = new EasmClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { description = "This is a disco group", - frequencyMilliseconds = 604800000, + frequencyMilliseconds = 604800000L, tier = "advanced", seeds = new object[] { @@ -636,7 +636,7 @@ EasmClient client = new EasmClient(endpoint, credential); using RequestContent content = RequestContent.Create(new { description = "This is a disco group", - frequencyMilliseconds = 604800000, + frequencyMilliseconds = 604800000L, tier = "advanced", seeds = new object[] { diff --git a/sdk/easm/Azure.Analytics.Defender.Easm/tests/Generated/Samples/Samples_EasmClient.cs b/sdk/easm/Azure.Analytics.Defender.Easm/tests/Generated/Samples/Samples_EasmClient.cs index dadfc56f31149..437666172da9b 100644 --- a/sdk/easm/Azure.Analytics.Defender.Easm/tests/Generated/Samples/Samples_EasmClient.cs +++ b/sdk/easm/Azure.Analytics.Defender.Easm/tests/Generated/Samples/Samples_EasmClient.cs @@ -429,7 +429,7 @@ public void Example_EasmClient_ValidateDiscoveryGroup_DiscoveryGroupsValidateDis using RequestContent content = RequestContent.Create(new { description = "This is a disco group", - frequencyMilliseconds = 604800000, + frequencyMilliseconds = 604800000L, tier = "advanced", seeds = new object[] { @@ -457,7 +457,7 @@ public async Task Example_EasmClient_ValidateDiscoveryGroup_DiscoveryGroupsValid using RequestContent content = RequestContent.Create(new { description = "This is a disco group", - frequencyMilliseconds = 604800000, + frequencyMilliseconds = 604800000L, tier = "advanced", seeds = new object[] { @@ -486,7 +486,7 @@ public void Example_EasmClient_ValidateDiscoveryGroup_DiscoveryGroupsValidateDis { Description = "This is a disco group", Tier = "advanced", - FrequencyMilliseconds = 604800000, + FrequencyMilliseconds = 604800000L, Seeds = {new DiscoverySource { Kind = DiscoverySourceKind.Host, @@ -508,7 +508,7 @@ public async Task Example_EasmClient_ValidateDiscoveryGroup_DiscoveryGroupsValid { Description = "This is a disco group", Tier = "advanced", - FrequencyMilliseconds = 604800000, + FrequencyMilliseconds = 604800000L, Seeds = {new DiscoverySource { Kind = DiscoverySourceKind.Host, @@ -579,7 +579,7 @@ public void Example_DiscoGroup_CreateOrReplaceDiscoveryGroup_DiscoveryGroupsCrea using RequestContent content = RequestContent.Create(new { description = "This is a disco group", - frequencyMilliseconds = 604800000, + frequencyMilliseconds = 604800000L, tier = "advanced", seeds = new object[] { @@ -607,7 +607,7 @@ public async Task Example_DiscoGroup_CreateOrReplaceDiscoveryGroup_DiscoveryGrou using RequestContent content = RequestContent.Create(new { description = "This is a disco group", - frequencyMilliseconds = 604800000, + frequencyMilliseconds = 604800000L, tier = "advanced", seeds = new object[] { @@ -636,7 +636,7 @@ public void Example_DiscoGroup_CreateOrReplaceDiscoveryGroup_DiscoveryGroupsCrea { Description = "This is a disco group", Tier = "advanced", - FrequencyMilliseconds = 604800000, + FrequencyMilliseconds = 604800000L, Seeds = {new DiscoverySource { Kind = DiscoverySourceKind.Host, @@ -658,7 +658,7 @@ public async Task Example_DiscoGroup_CreateOrReplaceDiscoveryGroup_DiscoveryGrou { Description = "This is a disco group", Tier = "advanced", - FrequencyMilliseconds = 604800000, + FrequencyMilliseconds = 604800000L, Seeds = {new DiscoverySource { Kind = DiscoverySourceKind.Host, diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanCollection.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanCollection.cs index f3ba7b810e21b..08f579bc97735 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanCollection.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanCollection.cs @@ -116,7 +116,7 @@ public async Task CreateOrUpdate_ElasticSansCreateMaximumSetGen() ElasticSanData data = new ElasticSanData(new AzureLocation("France Central"), new ElasticSanSku(ElasticSanSkuName.PremiumLrs) { Tier = ElasticSanSkuTier.Premium, - }, 5, 25) + }, 5L, 25L) { AvailabilityZones = { @@ -163,7 +163,7 @@ public async Task CreateOrUpdate_ElasticSansCreateMinimumSetGen() // invoke the operation string elasticSanName = "elasticsanname"; - ElasticSanData data = new ElasticSanData(new AzureLocation("France Central"), new ElasticSanSku(ElasticSanSkuName.PremiumLrs), 15, 27); + ElasticSanData data = new ElasticSanData(new AzureLocation("France Central"), new ElasticSanSku(ElasticSanSkuName.PremiumLrs), 15L, 27L); ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, elasticSanName, data); ElasticSanResource result = lro.Value; diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanResource.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanResource.cs index 2a712934c8a58..0f03d606d416c 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanResource.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanResource.cs @@ -108,8 +108,8 @@ public async Task Update_ElasticSansUpdateMaximumSetGen() { ["key1931"] = "yhjwkgmrrwrcoxblgwgzjqusch", }, - BaseSizeTiB = 13, - ExtendedCapacitySizeTiB = 29, + BaseSizeTiB = 13L, + ExtendedCapacitySizeTiB = 29L, PublicNetworkAccess = ElasticSanPublicNetworkAccess.Enabled, }; ArmOperation lro = await elasticSan.UpdateAsync(WaitUntil.Completed, patch); diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanVolumeCollection.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanVolumeCollection.cs index fe92c33b50dc0..2f0c8def291a3 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanVolumeCollection.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanVolumeCollection.cs @@ -42,7 +42,7 @@ public async Task CreateOrUpdate_VolumesCreateMaximumSetGen() // invoke the operation string volumeName = "volumename"; - ElasticSanVolumeData data = new ElasticSanVolumeData(9) + ElasticSanVolumeData data = new ElasticSanVolumeData(9L) { CreationData = new ElasticSanVolumeDataSourceInfo() { @@ -88,7 +88,7 @@ public async Task CreateOrUpdate_VolumesCreateMinimumSetGen() // invoke the operation string volumeName = "volumename"; - ElasticSanVolumeData data = new ElasticSanVolumeData(9); + ElasticSanVolumeData data = new ElasticSanVolumeData(9L); ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, volumeName, data); ElasticSanVolumeResource result = lro.Value; diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanVolumeResource.cs b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanVolumeResource.cs index 414fa74ae9370..34acfc1e13d0c 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanVolumeResource.cs +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/samples/Generated/Samples/Sample_ElasticSanVolumeResource.cs @@ -41,7 +41,7 @@ public async Task Update_VolumesUpdateMaximumSetGen() // invoke the operation ElasticSanVolumePatch patch = new ElasticSanVolumePatch() { - SizeGiB = 11, + SizeGiB = 11L, }; ArmOperation lro = await elasticSanVolume.UpdateAsync(WaitUntil.Completed, patch); ElasticSanVolumeResource result = lro.Value; diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/samples/Generated/Samples/Sample_EventSubscriptionCollection.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/samples/Generated/Samples/Sample_EventSubscriptionCollection.cs index 41c1d1ce7a8b6..d53b216efa903 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/samples/Generated/Samples/Sample_EventSubscriptionCollection.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/samples/Generated/Samples/Sample_EventSubscriptionCollection.cs @@ -1445,7 +1445,7 @@ public async Task CreateOrUpdate_EventSubscriptionsCreateOrUpdateForCustomTopicS { ResourceId = new ResourceIdentifier("/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"), QueueName = "queue1", - QueueMessageTimeToLiveInSeconds = 300, + QueueMessageTimeToLiveInSeconds = 300L, }, Filter = new EventSubscriptionFilter() { diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/samples/Generated/Samples/Sample_EventSubscriptionResource.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/samples/Generated/Samples/Sample_EventSubscriptionResource.cs index 5b99180bfe818..31a4ee474860b 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/samples/Generated/Samples/Sample_EventSubscriptionResource.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/samples/Generated/Samples/Sample_EventSubscriptionResource.cs @@ -795,7 +795,7 @@ public async Task Update_EventSubscriptionsUpdateForCustomTopicStorageQueueDesti { ResourceId = new ResourceIdentifier("/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg"), QueueName = "queue1", - QueueMessageTimeToLiveInSeconds = 300, + QueueMessageTimeToLiveInSeconds = 300L, }, Filter = new EventSubscriptionFilter() { diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubCollection.cs index 8bb8d832fd6fe..f22c72b89de3a 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubCollection.cs @@ -80,7 +80,7 @@ public async Task CreateOrUpdate_EventHubCreate() string eventHubName = "sdk-EventHub-6547"; EventHubData data = new EventHubData() { - PartitionCount = 4, + PartitionCount = 4L, Status = EventHubEntityStatus.Active, UserMetadata = "key", CaptureDescription = new CaptureDescription() @@ -105,7 +105,7 @@ public async Task CreateOrUpdate_EventHubCreate() RetentionDescription = new RetentionDescription() { CleanupPolicy = CleanupPolicyRetentionDescription.Compaction, - RetentionTimeInHours = 96, + RetentionTimeInHours = 96L, TombstoneRetentionTimeInHours = 1, }, }; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubResource.cs index 8a5fcecbc171c..c778482b82437 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubResource.cs @@ -40,7 +40,7 @@ public async Task Update_EventHubCreate() // invoke the operation EventHubData data = new EventHubData() { - PartitionCount = 4, + PartitionCount = 4L, Status = EventHubEntityStatus.Active, UserMetadata = "key", CaptureDescription = new CaptureDescription() @@ -65,7 +65,7 @@ public async Task Update_EventHubCreate() RetentionDescription = new RetentionDescription() { CleanupPolicy = CleanupPolicyRetentionDescription.Compaction, - RetentionTimeInHours = 96, + RetentionTimeInHours = 96L, TombstoneRetentionTimeInHours = 1, }, }; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupCollection.cs index 928a69fbb44f7..d2ce6e5a50792 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupCollection.cs @@ -84,7 +84,7 @@ public async Task CreateOrUpdate_ApplicationGroupCreate() ClientAppGroupIdentifier = "SASKeyName=KeyName", Policies = { -new EventHubsThrottlingPolicy("ThrottlingPolicy1",7912,EventHubsMetricId.IncomingMessages),new EventHubsThrottlingPolicy("ThrottlingPolicy2",3951729,EventHubsMetricId.IncomingBytes),new EventHubsThrottlingPolicy("ThrottlingPolicy3",245175,EventHubsMetricId.OutgoingBytes) +new EventHubsThrottlingPolicy("ThrottlingPolicy1",7912L,EventHubsMetricId.IncomingMessages),new EventHubsThrottlingPolicy("ThrottlingPolicy2",3951729L,EventHubsMetricId.IncomingBytes),new EventHubsThrottlingPolicy("ThrottlingPolicy3",245175L,EventHubsMetricId.OutgoingBytes) }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, applicationGroupName, data); diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupResource.cs index ddf4ce022a236..e8f6112e298ef 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/samples/Generated/Samples/Sample_EventHubsApplicationGroupResource.cs @@ -44,7 +44,7 @@ public async Task Update_ApplicationGroupCreate() ClientAppGroupIdentifier = "SASKeyName=KeyName", Policies = { -new EventHubsThrottlingPolicy("ThrottlingPolicy1",7912,EventHubsMetricId.IncomingMessages),new EventHubsThrottlingPolicy("ThrottlingPolicy2",3951729,EventHubsMetricId.IncomingBytes),new EventHubsThrottlingPolicy("ThrottlingPolicy3",245175,EventHubsMetricId.OutgoingBytes) +new EventHubsThrottlingPolicy("ThrottlingPolicy1",7912L,EventHubsMetricId.IncomingMessages),new EventHubsThrottlingPolicy("ThrottlingPolicy2",3951729L,EventHubsMetricId.IncomingBytes),new EventHubsThrottlingPolicy("ThrottlingPolicy3",245175L,EventHubsMetricId.OutgoingBytes) }, }; ArmOperation lro = await eventHubsApplicationGroup.UpdateAsync(WaitUntil.Completed, data); diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/CHANGELOG.md b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/CHANGELOG.md index aa83382bdbdfb..423bcbba5f035 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/CHANGELOG.md +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/CHANGELOG.md @@ -1,5 +1,17 @@ # Release History +## 1.2.0-beta.1 (Unreleased) + +### Features Added + +- Add AutoUpgrade and AutoUpgradeProfile support + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.0-beta.1 (Unreleased) ### Features Added diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.netstandard2.0.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.netstandard2.0.cs index e80578ed58890..301a6ada4997a 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.netstandard2.0.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.netstandard2.0.cs @@ -1,5 +1,56 @@ namespace Azure.ResourceManager.ContainerServiceFleet { + public partial class AutoUpgradeProfileCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AutoUpgradeProfileCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string autoUpgradeProfileName, Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData data, string ifMatch = null, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string autoUpgradeProfileName, Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData data, string ifMatch = null, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string autoUpgradeProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string autoUpgradeProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string autoUpgradeProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string autoUpgradeProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string autoUpgradeProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string autoUpgradeProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class AutoUpgradeProfileData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AutoUpgradeProfileData() { } + public Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel? Channel { get { throw null; } set { } } + public bool? Disabled { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } } + public Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType? SelectionType { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier UpdateStrategyId { get { throw null; } set { } } + Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AutoUpgradeProfileResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AutoUpgradeProfileResource() { } + public virtual Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData data, string ifMatch = null, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData data, string ifMatch = null, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class ContainerServiceFleetCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected ContainerServiceFleetCollection() { } @@ -21,6 +72,7 @@ public partial class ContainerServiceFleetData : Azure.ResourceManager.Models.Tr { public ContainerServiceFleetData(Azure.Core.AzureLocation location) { } public Azure.ETag? ETag { get { throw null; } } + public Azure.ResourceManager.ContainerServiceFleet.Models.FleetHubProfile HubProfile { get { throw null; } set { } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? ProvisioningState { get { throw null; } } Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -31,6 +83,7 @@ public ContainerServiceFleetData(Azure.Core.AzureLocation location) { } } public static partial class ContainerServiceFleetExtensions { + public static Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileResource GetAutoUpgradeProfileResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetContainerServiceFleet(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string fleetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetContainerServiceFleetAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string fleetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberResource GetContainerServiceFleetMemberResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -103,6 +156,9 @@ protected ContainerServiceFleetResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetAutoUpgradeProfile(string autoUpgradeProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutoUpgradeProfileAsync(string autoUpgradeProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileCollection GetAutoUpgradeProfiles() { throw null; } public virtual Azure.Response GetContainerServiceFleetMember(string fleetMemberName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetContainerServiceFleetMemberAsync(string fleetMemberName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberCollection GetContainerServiceFleetMembers() { throw null; } @@ -169,6 +225,8 @@ protected ContainerServiceFleetUpdateRunResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Skip(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerServiceFleet.Models.SkipProperties body, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SkipAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerServiceFleet.Models.SkipProperties body, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Start(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> StartAsync(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Stop(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -235,6 +293,7 @@ namespace Azure.ResourceManager.ContainerServiceFleet.Mocking public partial class MockableContainerServiceFleetArmClient : Azure.ResourceManager.ArmResource { protected MockableContainerServiceFleetArmClient() { } + public virtual Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileResource GetAutoUpgradeProfileResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberResource GetContainerServiceFleetMemberResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetResource GetContainerServiceFleetResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetUpdateRunResource GetContainerServiceFleetUpdateRunResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -258,7 +317,10 @@ namespace Azure.ResourceManager.ContainerServiceFleet.Models { public static partial class ArmContainerServiceFleetModelFactory { - public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData ContainerServiceFleetData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState?)) { throw null; } + public static Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData AutoUpgradeProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState?), Azure.Core.ResourceIdentifier updateStrategyId = null, Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel? channel = default(Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType? selectionType = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType?), bool? disabled = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData ContainerServiceFleetData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? eTag, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? provisioningState) { throw null; } + public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData ContainerServiceFleetData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState?), Azure.ResourceManager.ContainerServiceFleet.Models.FleetHubProfile hubProfile = null) { throw null; } public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberData ContainerServiceFleetMemberData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.Core.ResourceIdentifier clusterResourceId = null, string group = null, Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState?)) { throw null; } public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateGroupStatus ContainerServiceFleetUpdateGroupStatus(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStatus status = null, string name = null, System.Collections.Generic.IEnumerable members = null) { throw null; } public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState?), Azure.Core.ResourceIdentifier updateStrategyId = null, System.Collections.Generic.IEnumerable strategyStages = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate managedClusterUpdate = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunStatus status = null) { throw null; } @@ -268,13 +330,76 @@ public static partial class ArmContainerServiceFleetModelFactory public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetWaitStatus ContainerServiceFleetWaitStatus(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStatus status = null, int? waitDurationInSeconds = default(int?)) { throw null; } public static Azure.ResourceManager.ContainerServiceFleet.Models.FleetCredentialResult FleetCredentialResult(string name = null, byte[] value = null) { throw null; } public static Azure.ResourceManager.ContainerServiceFleet.Models.FleetCredentialResults FleetCredentialResults(System.Collections.Generic.IEnumerable kubeconfigs = null) { throw null; } + public static Azure.ResourceManager.ContainerServiceFleet.Models.FleetHubProfile FleetHubProfile(string dnsPrefix = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetAPIServerAccessProfile apiServerAccessProfile = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetAgentProfile agentProfile = null, string fqdn = null, string kubernetesVersion = null, string portalFqdn = null) { throw null; } public static Azure.ResourceManager.ContainerServiceFleet.FleetUpdateStrategyData FleetUpdateStrategyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.ContainerServiceFleet.Models.FleetUpdateStrategyProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetUpdateStrategyProvisioningState?), System.Collections.Generic.IEnumerable strategyStages = null) { throw null; } public static Azure.ResourceManager.ContainerServiceFleet.Models.MemberUpdateStatus MemberUpdateStatus(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStatus status = null, string name = null, Azure.Core.ResourceIdentifier clusterResourceId = null, string operationId = null, string message = null) { throw null; } public static Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageVersion NodeImageVersion(string version = null) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutoUpgradeNodeImageSelectionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutoUpgradeNodeImageSelectionType(string value) { throw null; } + public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType Consistent { get { throw null; } } + public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType Latest { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutoUpgradeProfileProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutoUpgradeProfileProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ContainerServiceFleetAgentProfile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ContainerServiceFleetAgentProfile() { } + public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } + public string VmSize { get { throw null; } set { } } + Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetAgentProfile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetAgentProfile System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ContainerServiceFleetAPIServerAccessProfile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ContainerServiceFleetAPIServerAccessProfile() { } + public bool? EnablePrivateCluster { get { throw null; } set { } } + public bool? EnableVnetIntegration { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } + Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetAPIServerAccessProfile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetAPIServerAccessProfile System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ContainerServiceFleetManagedClusterUpdate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ContainerServiceFleetManagedClusterUpdate(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpgradeSpec upgrade) { } + public Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageSelection NodeImageSelection { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageSelectionType? SelectionType { get { throw null; } set { } } public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpgradeSpec Upgrade { get { throw null; } set { } } Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -300,6 +425,7 @@ public ContainerServiceFleetManagedClusterUpgradeSpec(Azure.ResourceManager.Cont private readonly object _dummy; private readonly int _dummyPrimitive; public ContainerServiceFleetManagedClusterUpgradeType(string value) { throw null; } + public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpgradeType ControlPlaneOnly { get { throw null; } } public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpgradeType Full { get { throw null; } } public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpgradeType NodeImageOnly { get { throw null; } } public bool Equals(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpgradeType other) { throw null; } @@ -479,6 +605,21 @@ internal FleetCredentialResults() { } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class FleetHubProfile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public FleetHubProfile() { } + public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetAgentProfile AgentProfile { get { throw null; } set { } } + public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetAPIServerAccessProfile ApiServerAccessProfile { get { throw null; } set { } } + public string DnsPrefix { get { throw null; } set { } } + public string Fqdn { get { throw null; } } + public string KubernetesVersion { get { throw null; } } + public string PortalFqdn { get { throw null; } } + Azure.ResourceManager.ContainerServiceFleet.Models.FleetHubProfile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ContainerServiceFleet.Models.FleetHubProfile System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct FleetMemberProvisioningState : System.IEquatable { @@ -556,6 +697,17 @@ internal MemberUpdateStatus() { } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class NodeImageSelection : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public NodeImageSelection(Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageSelectionType selectionType) { } + public System.Collections.Generic.IList CustomNodeImageVersions { get { throw null; } } + public Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageSelectionType SelectionType { get { throw null; } set { } } + Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageSelection System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageSelection System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct NodeImageSelectionType : System.IEquatable { @@ -563,6 +715,7 @@ internal MemberUpdateStatus() { } private readonly int _dummyPrimitive; public NodeImageSelectionType(string value) { throw null; } public static Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageSelectionType Consistent { get { throw null; } } + public static Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageSelectionType Custom { get { throw null; } } public static Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageSelectionType Latest { get { throw null; } } public bool Equals(Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageSelectionType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -576,7 +729,7 @@ internal MemberUpdateStatus() { } } public partial class NodeImageVersion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - internal NodeImageVersion() { } + public NodeImageVersion() { } public string Version { get { throw null; } } Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageVersion System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -584,4 +737,64 @@ internal NodeImageVersion() { } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class SkipProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SkipProperties(System.Collections.Generic.IEnumerable targets) { } + public System.Collections.Generic.IList Targets { get { throw null; } } + Azure.ResourceManager.ContainerServiceFleet.Models.SkipProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ContainerServiceFleet.Models.SkipProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SkipTarget : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SkipTarget(Azure.ResourceManager.ContainerServiceFleet.Models.TargetType targetType, string name) { } + public string Name { get { throw null; } } + public Azure.ResourceManager.ContainerServiceFleet.Models.TargetType TargetType { get { throw null; } } + Azure.ResourceManager.ContainerServiceFleet.Models.SkipTarget System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ContainerServiceFleet.Models.SkipTarget System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TargetType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TargetType(string value) { throw null; } + public static Azure.ResourceManager.ContainerServiceFleet.Models.TargetType AfterStageWait { get { throw null; } } + public static Azure.ResourceManager.ContainerServiceFleet.Models.TargetType Group { get { throw null; } } + public static Azure.ResourceManager.ContainerServiceFleet.Models.TargetType Member { get { throw null; } } + public static Azure.ResourceManager.ContainerServiceFleet.Models.TargetType Stage { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerServiceFleet.Models.TargetType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerServiceFleet.Models.TargetType left, Azure.ResourceManager.ContainerServiceFleet.Models.TargetType right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerServiceFleet.Models.TargetType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerServiceFleet.Models.TargetType left, Azure.ResourceManager.ContainerServiceFleet.Models.TargetType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct UpgradeChannel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public UpgradeChannel(string value) { throw null; } + public static Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel NodeImage { get { throw null; } } + public static Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel Rapid { get { throw null; } } + public static Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel Stable { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel left, Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel left, Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel right) { throw null; } + public override string ToString() { throw null; } + } } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/assets.json b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/assets.json index dd935d390aa3f..eff6f619143d3 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/assets.json +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/fleet/Azure.ResourceManager.ContainerServiceFleet", - "Tag": "net/fleet/Azure.ResourceManager.ContainerServiceFleet_d1cc30d3cd" + "Tag": "net/fleet/Azure.ResourceManager.ContainerServiceFleet_f0519a638f" } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileCollection.cs new file mode 100644 index 0000000000000..6778e8edb60bc --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileCollection.cs @@ -0,0 +1,204 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.ContainerServiceFleet.Models; + +namespace Azure.ResourceManager.ContainerServiceFleet.Samples +{ + public partial class Sample_AutoUpgradeProfileCollection + { + // Lists the AutoUpgradeProfile resources by fleet. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListsTheAutoUpgradeProfileResourcesByFleet() + { + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_ListByFleet.json + // this example is just showing the usage of "AutoUpgradeProfiles_ListByFleet" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerServiceFleetResource created on azure + // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string fleetName = "fleet1"; + ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName); + ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId); + + // get the collection of this AutoUpgradeProfileResource + AutoUpgradeProfileCollection collection = containerServiceFleet.GetAutoUpgradeProfiles(); + + // invoke the operation and iterate over the result + await foreach (AutoUpgradeProfileResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AutoUpgradeProfileData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Gets an AutoUpgradeProfile resource. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetsAnAutoUpgradeProfileResource() + { + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_Get.json + // this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerServiceFleetResource created on azure + // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string fleetName = "fleet1"; + ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName); + ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId); + + // get the collection of this AutoUpgradeProfileResource + AutoUpgradeProfileCollection collection = containerServiceFleet.GetAutoUpgradeProfiles(); + + // invoke the operation + string autoUpgradeProfileName = "autoupgradeprofile1"; + AutoUpgradeProfileResource result = await collection.GetAsync(autoUpgradeProfileName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AutoUpgradeProfileData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Gets an AutoUpgradeProfile resource. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetsAnAutoUpgradeProfileResource() + { + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_Get.json + // this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerServiceFleetResource created on azure + // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string fleetName = "fleet1"; + ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName); + ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId); + + // get the collection of this AutoUpgradeProfileResource + AutoUpgradeProfileCollection collection = containerServiceFleet.GetAutoUpgradeProfiles(); + + // invoke the operation + string autoUpgradeProfileName = "autoupgradeprofile1"; + bool result = await collection.ExistsAsync(autoUpgradeProfileName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Gets an AutoUpgradeProfile resource. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_GetsAnAutoUpgradeProfileResource() + { + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_Get.json + // this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerServiceFleetResource created on azure + // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string fleetName = "fleet1"; + ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName); + ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId); + + // get the collection of this AutoUpgradeProfileResource + AutoUpgradeProfileCollection collection = containerServiceFleet.GetAutoUpgradeProfiles(); + + // invoke the operation + string autoUpgradeProfileName = "autoupgradeprofile1"; + NullableResponse response = await collection.GetIfExistsAsync(autoUpgradeProfileName); + AutoUpgradeProfileResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AutoUpgradeProfileData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // Create an AutoUpgradeProfile. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateAnAutoUpgradeProfile() + { + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_CreateOrUpdate.json + // this example is just showing the usage of "AutoUpgradeProfiles_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerServiceFleetResource created on azure + // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string fleetName = "fleet1"; + ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName); + ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId); + + // get the collection of this AutoUpgradeProfileResource + AutoUpgradeProfileCollection collection = containerServiceFleet.GetAutoUpgradeProfiles(); + + // invoke the operation + string autoUpgradeProfileName = "autoupgradeprofile1"; + AutoUpgradeProfileData data = new AutoUpgradeProfileData() + { + Channel = UpgradeChannel.Stable, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, autoUpgradeProfileName, data); + AutoUpgradeProfileResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AutoUpgradeProfileData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileResource.cs new file mode 100644 index 0000000000000..f389b62c32b2f --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileResource.cs @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.ContainerServiceFleet.Models; + +namespace Azure.ResourceManager.ContainerServiceFleet.Samples +{ + public partial class Sample_AutoUpgradeProfileResource + { + // Gets an AutoUpgradeProfile resource. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetsAnAutoUpgradeProfileResource() + { + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_Get.json + // this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutoUpgradeProfileResource created on azure + // for more information of creating AutoUpgradeProfileResource, please refer to the document of AutoUpgradeProfileResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string fleetName = "fleet1"; + string autoUpgradeProfileName = "autoupgradeprofile1"; + ResourceIdentifier autoUpgradeProfileResourceId = AutoUpgradeProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName); + AutoUpgradeProfileResource autoUpgradeProfile = client.GetAutoUpgradeProfileResource(autoUpgradeProfileResourceId); + + // invoke the operation + AutoUpgradeProfileResource result = await autoUpgradeProfile.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AutoUpgradeProfileData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create an AutoUpgradeProfile. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateAnAutoUpgradeProfile() + { + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_CreateOrUpdate.json + // this example is just showing the usage of "AutoUpgradeProfiles_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutoUpgradeProfileResource created on azure + // for more information of creating AutoUpgradeProfileResource, please refer to the document of AutoUpgradeProfileResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string fleetName = "fleet1"; + string autoUpgradeProfileName = "autoupgradeprofile1"; + ResourceIdentifier autoUpgradeProfileResourceId = AutoUpgradeProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName); + AutoUpgradeProfileResource autoUpgradeProfile = client.GetAutoUpgradeProfileResource(autoUpgradeProfileResourceId); + + // invoke the operation + AutoUpgradeProfileData data = new AutoUpgradeProfileData() + { + Channel = UpgradeChannel.Stable, + }; + ArmOperation lro = await autoUpgradeProfile.UpdateAsync(WaitUntil.Completed, data); + AutoUpgradeProfileResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AutoUpgradeProfileData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Delete an AutoUpgradeProfile resource. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteAnAutoUpgradeProfileResource() + { + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_Delete.json + // this example is just showing the usage of "AutoUpgradeProfiles_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AutoUpgradeProfileResource created on azure + // for more information of creating AutoUpgradeProfileResource, please refer to the document of AutoUpgradeProfileResource + string subscriptionId = "subid1"; + string resourceGroupName = "rg1"; + string fleetName = "fleet1"; + string autoUpgradeProfileName = "autoupgradeprofile1"; + ResourceIdentifier autoUpgradeProfileResourceId = AutoUpgradeProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName); + AutoUpgradeProfileResource autoUpgradeProfile = client.GetAutoUpgradeProfileResource(autoUpgradeProfileResourceId); + + // invoke the operation + await autoUpgradeProfile.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetCollection.cs index 47dbcf3f0265b..da6d1136d2915 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetCollection.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetCollection.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Identity; +using Azure.ResourceManager.ContainerServiceFleet.Models; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.ContainerServiceFleet.Samples @@ -20,7 +21,7 @@ public partial class Sample_ContainerServiceFleetCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListsTheFleetResourcesInAResourceGroup() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/Fleets_ListByResourceGroup.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_ListByResourceGroup.json // this example is just showing the usage of "Fleets_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +57,7 @@ public async Task GetAll_ListsTheFleetResourcesInAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAFleetResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/Fleets_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_Get.json // this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +91,7 @@ public async Task Get_GetsAFleetResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsAFleetResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/Fleets_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_Get.json // this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +121,7 @@ public async Task Exists_GetsAFleetResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetsAFleetResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/Fleets_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_Get.json // this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +163,7 @@ public async Task GetIfExists_GetsAFleetResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesAFleetResourceWithALongRunningOperation() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/Fleets_CreateOrUpdate.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_CreateOrUpdate.json // this example is just showing the usage of "Fleets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -184,6 +185,14 @@ public async Task CreateOrUpdate_CreatesAFleetResourceWithALongRunningOperation( string fleetName = "fleet1"; ContainerServiceFleetData data = new ContainerServiceFleetData(new AzureLocation("East US")) { + HubProfile = new FleetHubProfile() + { + DnsPrefix = "dnsprefix1", + AgentProfile = new ContainerServiceFleetAgentProfile() + { + VmSize = "Standard_DS1", + }, + }, Tags = { ["archv2"] = "", diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberCollection.cs index 9d2dccbd7370e..e3b55ac6806d1 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberCollection.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ContainerServiceFleetMemberCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListsTheMembersOfAFleet() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/FleetMembers_ListByFleet.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_ListByFleet.json // this example is just showing the usage of "FleetMembers_ListByFleet" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_ListsTheMembersOfAFleet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAFleetMemberResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/FleetMembers_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Get.json // this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetsAFleetMemberResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsAFleetMemberResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/FleetMembers_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Get.json // this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_GetsAFleetMemberResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetsAFleetMemberResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/FleetMembers_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Get.json // this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task GetIfExists_GetsAFleetMemberResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesAFleetMemberResourceWithALongRunningOperation() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/FleetMembers_Create.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Create.json // this example is just showing the usage of "FleetMembers_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberResource.cs index d0ffdd1e175b7..044df0cc0abba 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberResource.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ContainerServiceFleetMemberResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAFleetMemberResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/FleetMembers_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Get.json // this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetsAFleetMemberResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatesAFleetMemberResourceSynchronously() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/FleetMembers_Update.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Update.json // this example is just showing the usage of "FleetMembers_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Update_UpdatesAFleetMemberResourceSynchronously() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletesAFleetMemberResourceAsynchronouslyWithALongRunningOperation() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/FleetMembers_Delete.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Delete.json // this example is just showing the usage of "FleetMembers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetResource.cs index 3817bc55392eb..46c179410db45 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetResource.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerServiceFleetResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContainerServiceFleets_ListsTheFleetResourcesInASubscription() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/Fleets_ListBySub.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_ListBySub.json // this example is just showing the usage of "Fleets_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task GetContainerServiceFleets_ListsTheFleetResourcesInASubscriptio [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAFleetResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/Fleets_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_Get.json // this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Get_GetsAFleetResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAFleet() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/Fleets_PatchTags.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_PatchTags.json // this example is just showing the usage of "Fleets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Update_UpdateAFleet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletesAFleetResourceAsynchronouslyWithALongRunningOperation() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/Fleets_Delete.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_Delete.json // this example is just showing the usage of "Fleets_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task Delete_DeletesAFleetResourceAsynchronouslyWithALongRunningOper [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetCredentials_ListsTheUserCredentialsOfAFleet() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/Fleets_ListCredentialsResult.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_ListCredentialsResult.json // this example is just showing the usage of "Fleets_ListCredentials" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunCollection.cs index 7392dcdbe6206..d699768d78b4c 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunCollection.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ContainerServiceFleetUpdateRunCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListsTheUpdateRunResourcesByFleet() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateRuns_ListByFleet.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_ListByFleet.json // this example is just showing the usage of "UpdateRuns_ListByFleet" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ListsTheUpdateRunResourcesByFleet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAnUpdateRunResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateRuns_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Get.json // this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_GetsAnUpdateRunResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsAnUpdateRunResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateRuns_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Get.json // this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_GetsAnUpdateRunResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetsAnUpdateRunResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateRuns_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Get.json // this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetIfExists_GetsAnUpdateRunResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAnUpdateRun() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateRuns_CreateOrUpdate.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_CreateOrUpdate.json // this example is just showing the usage of "UpdateRuns_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -206,7 +206,7 @@ public async Task CreateOrUpdate_CreateAnUpdateRun() KubernetesVersion = "1.26.1", }) { - SelectionType = NodeImageSelectionType.Latest, + NodeImageSelection = new NodeImageSelection(NodeImageSelectionType.Latest), }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, updateRunName, data); diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunResource.cs index 54a3321de84b2..42bd2c237ed80 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunResource.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ContainerServiceFleetUpdateRunResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAnUpdateRunResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateRuns_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Get.json // this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetsAnUpdateRunResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateAnUpdateRun() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateRuns_CreateOrUpdate.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_CreateOrUpdate.json // this example is just showing the usage of "UpdateRuns_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Update_CreateAnUpdateRun() KubernetesVersion = "1.26.1", }) { - SelectionType = NodeImageSelectionType.Latest, + NodeImageSelection = new NodeImageSelection(NodeImageSelectionType.Latest), }, }; ArmOperation lro = await containerServiceFleetUpdateRun.UpdateAsync(WaitUntil.Completed, data); @@ -107,7 +107,7 @@ public async Task Update_CreateAnUpdateRun() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAnUpdateRunResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateRuns_Delete.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Delete.json // this example is just showing the usage of "UpdateRuns_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,12 +130,49 @@ public async Task Delete_DeleteAnUpdateRunResource() Console.WriteLine($"Succeeded"); } + // Skips one or more member/group/stage/afterStageWait(s) of an UpdateRun. + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Skip_SkipsOneOrMoreMemberGroupStageAfterStageWaitSOfAnUpdateRun() + { + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Skip.json + // this example is just showing the usage of "UpdateRuns_Skip" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerServiceFleetUpdateRunResource created on azure + // for more information of creating ContainerServiceFleetUpdateRunResource, please refer to the document of ContainerServiceFleetUpdateRunResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string fleetName = "fleet1"; + string updateRunName = "run1"; + ResourceIdentifier containerServiceFleetUpdateRunResourceId = ContainerServiceFleetUpdateRunResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, updateRunName); + ContainerServiceFleetUpdateRunResource containerServiceFleetUpdateRun = client.GetContainerServiceFleetUpdateRunResource(containerServiceFleetUpdateRunResourceId); + + // invoke the operation + SkipProperties body = new SkipProperties(new SkipTarget[] + { +new SkipTarget(TargetType.Member,"member-one"),new SkipTarget(TargetType.AfterStageWait,"stage1") + }); + ArmOperation lro = await containerServiceFleetUpdateRun.SkipAsync(WaitUntil.Completed, body); + ContainerServiceFleetUpdateRunResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ContainerServiceFleetUpdateRunData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // Starts an UpdateRun. [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Start_StartsAnUpdateRun() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateRuns_Start.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Start.json // this example is just showing the usage of "UpdateRuns_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -168,7 +205,7 @@ public async Task Start_StartsAnUpdateRun() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Stop_StopsAnUpdateRun() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateRuns_Stop.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Stop.json // this example is just showing the usage of "UpdateRuns_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyCollection.cs index 1391422b6af53..5a6c7f18f027d 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyCollection.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_FleetUpdateStrategyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListTheFleetUpdateStrategyResourcesByFleet() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateStrategies_ListByFleet.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_ListByFleet.json // this example is just showing the usage of "FleetUpdateStrategies_ListByFleet" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ListTheFleetUpdateStrategyResourcesByFleet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAFleetUpdateStrategyResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateStrategies_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_Get.json // this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_GetAFleetUpdateStrategyResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAFleetUpdateStrategyResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateStrategies_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_Get.json // this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_GetAFleetUpdateStrategyResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAFleetUpdateStrategyResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateStrategies_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_Get.json // this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetIfExists_GetAFleetUpdateStrategyResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAFleetUpdateStrategy() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateStrategies_CreateOrUpdate.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_CreateOrUpdate.json // this example is just showing the usage of "FleetUpdateStrategies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyResource.cs index 9303f3adb271f..112ed43b8333a 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyResource.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FleetUpdateStrategyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAFleetUpdateStrategyResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateStrategies_Get.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_Get.json // this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetAFleetUpdateStrategyResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateAFleetUpdateStrategy() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateStrategies_CreateOrUpdate.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_CreateOrUpdate.json // this example is just showing the usage of "FleetUpdateStrategies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,7 +99,7 @@ public async Task Update_CreateAFleetUpdateStrategy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAFleetUpdateStrategyResource() { - // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/examples/UpdateStrategies_Delete.json + // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_Delete.json // this example is just showing the usage of "FleetUpdateStrategies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Customized/ContainerServiceFleetManagedClusterUpdate.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Customized/ContainerServiceFleetManagedClusterUpdate.cs new file mode 100644 index 0000000000000..ad3aaaccc87dd --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Customized/ContainerServiceFleetManagedClusterUpdate.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Collections.Generic; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + public partial class ContainerServiceFleetManagedClusterUpdate + { + /// The node image upgrade type. + [EditorBrowsable(EditorBrowsableState.Never)] + public NodeImageSelectionType? SelectionType + { + get => NodeImageSelection is null ? default(NodeImageSelectionType?) : NodeImageSelection.SelectionType; + set + { + NodeImageSelection = value.HasValue ? new NodeImageSelection(value.Value) : null; + } + } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ArmContainerServiceFleetModelFactory.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ArmContainerServiceFleetModelFactory.cs index 32f57a3923094..f37479cd9b4fa 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ArmContainerServiceFleetModelFactory.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ArmContainerServiceFleetModelFactory.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using Azure.Core; using Azure.ResourceManager.Models; @@ -26,8 +27,9 @@ public static partial class ArmContainerServiceFleetModelFactory /// If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// Managed identity. /// The status of the last operation. + /// The FleetHubProfile configures the Fleet's hub. /// A new instance for mocking. - public static ContainerServiceFleetData ContainerServiceFleetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? eTag = null, ManagedServiceIdentity identity = null, FleetProvisioningState? provisioningState = null) + public static ContainerServiceFleetData ContainerServiceFleetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? eTag = null, ManagedServiceIdentity identity = null, FleetProvisioningState? provisioningState = null, FleetHubProfile hubProfile = null) { tags ??= new Dictionary(); @@ -41,6 +43,60 @@ public static ContainerServiceFleetData ContainerServiceFleetData(ResourceIdenti eTag, identity, provisioningState, + hubProfile, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// DNS prefix used to create the FQDN for the Fleet hub. + /// The access profile for the Fleet hub API server. + /// The agent profile for the Fleet hub. + /// The FQDN of the Fleet hub. + /// The Kubernetes version of the Fleet hub. + /// The Azure Portal FQDN of the Fleet hub. + /// A new instance for mocking. + public static FleetHubProfile FleetHubProfile(string dnsPrefix = null, ContainerServiceFleetAPIServerAccessProfile apiServerAccessProfile = null, ContainerServiceFleetAgentProfile agentProfile = null, string fqdn = null, string kubernetesVersion = null, string portalFqdn = null) + { + return new FleetHubProfile( + dnsPrefix, + apiServerAccessProfile, + agentProfile, + fqdn, + kubernetesVersion, + portalFqdn, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// The provisioning state of the AutoUpgradeProfile resource. + /// The resource id of the UpdateStrategy resource to reference. If not specified, the auto upgrade will run on all clusters which are members of the fleet. + /// Configures how auto-upgrade will be run. + /// The node image upgrade to be applied to the target clusters in auto upgrade. + /// + /// If set to False: the auto upgrade has effect - target managed clusters will be upgraded on schedule. + /// If set to True: the auto upgrade has no effect - no upgrade will be run on the target managed clusters. + /// This is a boolean and not an enum because enabled/disabled are all available states of the auto upgrade profile. + /// By default, this is set to False. + /// + /// A new instance for mocking. + public static AutoUpgradeProfileData AutoUpgradeProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? eTag = null, AutoUpgradeProfileProvisioningState? provisioningState = null, ResourceIdentifier updateStrategyId = null, UpgradeChannel? channel = null, AutoUpgradeNodeImageSelectionType? selectionType = null, bool? disabled = null) + { + return new AutoUpgradeProfileData( + id, + name, + resourceType, + systemData, + eTag, + provisioningState, + updateStrategyId, + channel, + selectionType.HasValue ? new AutoUpgradeNodeImageSelection(selectionType.Value, serializedAdditionalRawData: null) : null, + disabled, serializedAdditionalRawData: null); } @@ -134,6 +190,14 @@ public static ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunD serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The image version to upgrade the nodes to (e.g., 'AKSUbuntu-1804gen2containerd-2022.12.13'). + /// A new instance for mocking. + public static NodeImageVersion NodeImageVersion(string version = null) + { + return new NodeImageVersion(version, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The status of the UpdateRun. /// The stages composing an update run. Stages are run sequentially withing an UpdateRun. @@ -210,14 +274,6 @@ public static ContainerServiceFleetWaitStatus ContainerServiceFleetWaitStatus(Co return new ContainerServiceFleetWaitStatus(status, waitDurationInSeconds, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The image version to upgrade the nodes to (e.g., 'AKSUbuntu-1804gen2containerd-2022.12.13'). - /// A new instance for mocking. - public static NodeImageVersion NodeImageVersion(string version = null) - { - return new NodeImageVersion(version, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The id. /// The name. @@ -241,5 +297,22 @@ public static FleetUpdateStrategyData FleetUpdateStrategyData(ResourceIdentifier strategyStages != null ? new ContainerServiceFleetUpdateRunStrategy(strategyStages?.ToList(), serializedAdditionalRawData: null) : null, serializedAdditionalRawData: null); } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// Managed identity. + /// The status of the last operation. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static ContainerServiceFleetData ContainerServiceFleetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? eTag, ManagedServiceIdentity identity, FleetProvisioningState? provisioningState) + { + return ContainerServiceFleetData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, eTag: eTag, identity: identity, provisioningState: provisioningState, hubProfile: default); + } } } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileCollection.cs new file mode 100644 index 0000000000000..7cb39a39a567b --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileCollection.cs @@ -0,0 +1,497 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutoUpgradeProfiles method from an instance of . + /// + public partial class AutoUpgradeProfileCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _autoUpgradeProfileClientDiagnostics; + private readonly AutoUpgradeProfilesRestOperations _autoUpgradeProfileRestClient; + + /// Initializes a new instance of the class for mocking. + protected AutoUpgradeProfileCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal AutoUpgradeProfileCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _autoUpgradeProfileClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerServiceFleet", AutoUpgradeProfileResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutoUpgradeProfileResource.ResourceType, out string autoUpgradeProfileApiVersion); + _autoUpgradeProfileRestClient = new AutoUpgradeProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, autoUpgradeProfileApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ContainerServiceFleetResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ContainerServiceFleetResource.ResourceType), nameof(id)); + } + + /// + /// Create a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the AutoUpgradeProfile resource. + /// Resource create parameters. + /// The request should only proceed if an entity matches this string. + /// The request should only proceed if no entity matches this string. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string autoUpgradeProfileName, AutoUpgradeProfileData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _autoUpgradeProfileRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, autoUpgradeProfileName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceFleetArmOperation(new AutoUpgradeProfileOperationSource(Client), _autoUpgradeProfileClientDiagnostics, Pipeline, _autoUpgradeProfileRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, autoUpgradeProfileName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the AutoUpgradeProfile resource. + /// Resource create parameters. + /// The request should only proceed if an entity matches this string. + /// The request should only proceed if no entity matches this string. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string autoUpgradeProfileName, AutoUpgradeProfileData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _autoUpgradeProfileRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, autoUpgradeProfileName, data, ifMatch, ifNoneMatch, cancellationToken); + var operation = new ContainerServiceFleetArmOperation(new AutoUpgradeProfileOperationSource(Client), _autoUpgradeProfileClientDiagnostics, Pipeline, _autoUpgradeProfileRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, autoUpgradeProfileName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Get + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the AutoUpgradeProfile resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string autoUpgradeProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileCollection.Get"); + scope.Start(); + try + { + var response = await _autoUpgradeProfileRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, autoUpgradeProfileName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutoUpgradeProfileResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Get + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the AutoUpgradeProfile resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string autoUpgradeProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileCollection.Get"); + scope.Start(); + try + { + var response = _autoUpgradeProfileRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, autoUpgradeProfileName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutoUpgradeProfileResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List AutoUpgradeProfile resources by Fleet + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_ListByFleet + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _autoUpgradeProfileRestClient.CreateListByFleetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _autoUpgradeProfileRestClient.CreateListByFleetNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AutoUpgradeProfileResource(Client, AutoUpgradeProfileData.DeserializeAutoUpgradeProfileData(e)), _autoUpgradeProfileClientDiagnostics, Pipeline, "AutoUpgradeProfileCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List AutoUpgradeProfile resources by Fleet + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_ListByFleet + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _autoUpgradeProfileRestClient.CreateListByFleetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _autoUpgradeProfileRestClient.CreateListByFleetNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AutoUpgradeProfileResource(Client, AutoUpgradeProfileData.DeserializeAutoUpgradeProfileData(e)), _autoUpgradeProfileClientDiagnostics, Pipeline, "AutoUpgradeProfileCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Get + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the AutoUpgradeProfile resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string autoUpgradeProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileCollection.Exists"); + scope.Start(); + try + { + var response = await _autoUpgradeProfileRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, autoUpgradeProfileName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Get + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the AutoUpgradeProfile resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string autoUpgradeProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileCollection.Exists"); + scope.Start(); + try + { + var response = _autoUpgradeProfileRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, autoUpgradeProfileName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Get + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the AutoUpgradeProfile resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string autoUpgradeProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _autoUpgradeProfileRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, autoUpgradeProfileName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new AutoUpgradeProfileResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Get + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the AutoUpgradeProfile resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string autoUpgradeProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileCollection.GetIfExists"); + scope.Start(); + try + { + var response = _autoUpgradeProfileRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, autoUpgradeProfileName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new AutoUpgradeProfileResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.Serialization.cs new file mode 100644 index 0000000000000..f6a643dbd6e63 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.Serialization.cs @@ -0,0 +1,277 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ContainerServiceFleet.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + public partial class AutoUpgradeProfileData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AutoUpgradeProfileData)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ETag)) + { + writer.WritePropertyName("eTag"u8); + writer.WriteStringValue(ETag.Value.ToString()); + } + if (options.Format != "W") + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (options.Format != "W") + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W") + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ResourceType); + } + if (options.Format != "W" && Optional.IsDefined(SystemData)) + { + writer.WritePropertyName("systemData"u8); + JsonSerializer.Serialize(writer, SystemData); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (Optional.IsDefined(UpdateStrategyId)) + { + writer.WritePropertyName("updateStrategyId"u8); + writer.WriteStringValue(UpdateStrategyId); + } + if (Optional.IsDefined(Channel)) + { + writer.WritePropertyName("channel"u8); + writer.WriteStringValue(Channel.Value.ToString()); + } + if (Optional.IsDefined(NodeImageSelection)) + { + writer.WritePropertyName("nodeImageSelection"u8); + writer.WriteObjectValue(NodeImageSelection, options); + } + if (Optional.IsDefined(Disabled)) + { + writer.WritePropertyName("disabled"u8); + writer.WriteBooleanValue(Disabled.Value); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + AutoUpgradeProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AutoUpgradeProfileData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAutoUpgradeProfileData(document.RootElement, options); + } + + internal static AutoUpgradeProfileData DeserializeAutoUpgradeProfileData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ETag? eTag = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + AutoUpgradeProfileProvisioningState? provisioningState = default; + ResourceIdentifier updateStrategyId = default; + UpgradeChannel? channel = default; + AutoUpgradeNodeImageSelection nodeImageSelection = default; + bool? disabled = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("eTag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + eTag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AutoUpgradeProfileProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("updateStrategyId"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + updateStrategyId = new ResourceIdentifier(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("channel"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + channel = new UpgradeChannel(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("nodeImageSelection"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nodeImageSelection = AutoUpgradeNodeImageSelection.DeserializeAutoUpgradeNodeImageSelection(property0.Value, options); + continue; + } + if (property0.NameEquals("disabled"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + disabled = property0.Value.GetBoolean(); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AutoUpgradeProfileData( + id, + name, + type, + systemData, + eTag, + provisioningState, + updateStrategyId, + channel, + nodeImageSelection, + disabled, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AutoUpgradeProfileData)} does not support writing '{options.Format}' format."); + } + } + + AutoUpgradeProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAutoUpgradeProfileData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AutoUpgradeProfileData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.cs new file mode 100644 index 0000000000000..dd6cb137735e8 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.cs @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.ContainerServiceFleet.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + /// + /// A class representing the AutoUpgradeProfile data model. + /// The AutoUpgradeProfile resource. + /// + public partial class AutoUpgradeProfileData : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public AutoUpgradeProfileData() + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// The provisioning state of the AutoUpgradeProfile resource. + /// The resource id of the UpdateStrategy resource to reference. If not specified, the auto upgrade will run on all clusters which are members of the fleet. + /// Configures how auto-upgrade will be run. + /// The node image upgrade to be applied to the target clusters in auto upgrade. + /// + /// If set to False: the auto upgrade has effect - target managed clusters will be upgraded on schedule. + /// If set to True: the auto upgrade has no effect - no upgrade will be run on the target managed clusters. + /// This is a boolean and not an enum because enabled/disabled are all available states of the auto upgrade profile. + /// By default, this is set to False. + /// + /// Keeps track of any properties unknown to the library. + internal AutoUpgradeProfileData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ETag? eTag, AutoUpgradeProfileProvisioningState? provisioningState, ResourceIdentifier updateStrategyId, UpgradeChannel? channel, AutoUpgradeNodeImageSelection nodeImageSelection, bool? disabled, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + ETag = eTag; + ProvisioningState = provisioningState; + UpdateStrategyId = updateStrategyId; + Channel = channel; + NodeImageSelection = nodeImageSelection; + Disabled = disabled; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + public ETag? ETag { get; } + /// The provisioning state of the AutoUpgradeProfile resource. + public AutoUpgradeProfileProvisioningState? ProvisioningState { get; } + /// The resource id of the UpdateStrategy resource to reference. If not specified, the auto upgrade will run on all clusters which are members of the fleet. + public ResourceIdentifier UpdateStrategyId { get; set; } + /// Configures how auto-upgrade will be run. + public UpgradeChannel? Channel { get; set; } + /// The node image upgrade to be applied to the target clusters in auto upgrade. + internal AutoUpgradeNodeImageSelection NodeImageSelection { get; set; } + /// The node image upgrade type. + public AutoUpgradeNodeImageSelectionType? SelectionType + { + get => NodeImageSelection is null ? default(AutoUpgradeNodeImageSelectionType?) : NodeImageSelection.SelectionType; + set + { + NodeImageSelection = value.HasValue ? new AutoUpgradeNodeImageSelection(value.Value) : null; + } + } + + /// + /// If set to False: the auto upgrade has effect - target managed clusters will be upgraded on schedule. + /// If set to True: the auto upgrade has no effect - no upgrade will be run on the target managed clusters. + /// This is a boolean and not an enum because enabled/disabled are all available states of the auto upgrade profile. + /// By default, this is set to False. + /// + public bool? Disabled { get; set; } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileResource.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileResource.Serialization.cs new file mode 100644 index 0000000000000..9df7a8401d6fe --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + public partial class AutoUpgradeProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + AutoUpgradeProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + AutoUpgradeProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileResource.cs new file mode 100644 index 0000000000000..c5deec2cc26f8 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileResource.cs @@ -0,0 +1,353 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + /// + /// A Class representing an AutoUpgradeProfile along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutoUpgradeProfileResource method. + /// Otherwise you can get one from its parent resource using the GetAutoUpgradeProfile method. + /// + public partial class AutoUpgradeProfileResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The fleetName. + /// The autoUpgradeProfileName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _autoUpgradeProfileClientDiagnostics; + private readonly AutoUpgradeProfilesRestOperations _autoUpgradeProfileRestClient; + private readonly AutoUpgradeProfileData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ContainerService/fleets/autoUpgradeProfiles"; + + /// Initializes a new instance of the class for mocking. + protected AutoUpgradeProfileResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal AutoUpgradeProfileResource(ArmClient client, AutoUpgradeProfileData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal AutoUpgradeProfileResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _autoUpgradeProfileClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerServiceFleet", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string autoUpgradeProfileApiVersion); + _autoUpgradeProfileRestClient = new AutoUpgradeProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, autoUpgradeProfileApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual AutoUpgradeProfileData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Get + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileResource.Get"); + scope.Start(); + try + { + var response = await _autoUpgradeProfileRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutoUpgradeProfileResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Get + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileResource.Get"); + scope.Start(); + try + { + var response = _autoUpgradeProfileRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutoUpgradeProfileResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Delete + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The request should only proceed if an entity matches this string. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, string ifMatch = null, CancellationToken cancellationToken = default) + { + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileResource.Delete"); + scope.Start(); + try + { + var response = await _autoUpgradeProfileRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceFleetArmOperation(_autoUpgradeProfileClientDiagnostics, Pipeline, _autoUpgradeProfileRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Delete + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The request should only proceed if an entity matches this string. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, CancellationToken cancellationToken = default) + { + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileResource.Delete"); + scope.Start(); + try + { + var response = _autoUpgradeProfileRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); + var operation = new ContainerServiceFleetArmOperation(_autoUpgradeProfileClientDiagnostics, Pipeline, _autoUpgradeProfileRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Resource create parameters. + /// The request should only proceed if an entity matches this string. + /// The request should only proceed if no entity matches this string. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, AutoUpgradeProfileData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileResource.Update"); + scope.Start(); + try + { + var response = await _autoUpgradeProfileRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceFleetArmOperation(new AutoUpgradeProfileOperationSource(Client), _autoUpgradeProfileClientDiagnostics, Pipeline, _autoUpgradeProfileRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Resource create parameters. + /// The request should only proceed if an entity matches this string. + /// The request should only proceed if no entity matches this string. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, AutoUpgradeProfileData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _autoUpgradeProfileClientDiagnostics.CreateScope("AutoUpgradeProfileResource.Update"); + scope.Start(); + try + { + var response = _autoUpgradeProfileRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken); + var operation = new ContainerServiceFleetArmOperation(new AutoUpgradeProfileOperationSource(Client), _autoUpgradeProfileClientDiagnostics, Pipeline, _autoUpgradeProfileRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetCollection.cs index 1c90020d7bf3b..45c7429dcb9ef 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetCollection.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -91,7 +91,7 @@ public virtual async Task> CreateOrU try { var response = await _containerServiceFleetFleetsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -116,7 +116,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -142,7 +142,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _containerServiceFleetFleetsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string fleetName, Can /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string fleetName, Cancella /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string fleetName, CancellationToken cancell /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.Serialization.cs index e77d973b76c4b..fb718ef7e963a 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.Serialization.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.Serialization.cs @@ -78,6 +78,11 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRea writer.WritePropertyName("provisioningState"u8); writer.WriteStringValue(ProvisioningState.Value.ToString()); } + if (Optional.IsDefined(HubProfile)) + { + writer.WritePropertyName("hubProfile"u8); + writer.WriteObjectValue(HubProfile, options); + } writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -126,6 +131,7 @@ internal static ContainerServiceFleetData DeserializeContainerServiceFleetData(J ResourceType type = default; SystemData systemData = default; FleetProvisioningState? provisioningState = default; + FleetHubProfile hubProfile = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -209,6 +215,15 @@ internal static ContainerServiceFleetData DeserializeContainerServiceFleetData(J provisioningState = new FleetProvisioningState(property0.Value.GetString()); continue; } + if (property0.NameEquals("hubProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + hubProfile = FleetHubProfile.DeserializeFleetHubProfile(property0.Value, options); + continue; + } } continue; } @@ -228,6 +243,7 @@ internal static ContainerServiceFleetData DeserializeContainerServiceFleetData(J eTag, identity, provisioningState, + hubProfile, serializedAdditionalRawData); } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.cs index 9bb52ac453943..f0f517e6dfcc4 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.cs @@ -67,12 +67,14 @@ public ContainerServiceFleetData(AzureLocation location) : base(location) /// If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. /// Managed identity. /// The status of the last operation. + /// The FleetHubProfile configures the Fleet's hub. /// Keeps track of any properties unknown to the library. - internal ContainerServiceFleetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? eTag, ManagedServiceIdentity identity, FleetProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal ContainerServiceFleetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? eTag, ManagedServiceIdentity identity, FleetProvisioningState? provisioningState, FleetHubProfile hubProfile, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { ETag = eTag; Identity = identity; ProvisioningState = provisioningState; + HubProfile = hubProfile; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -87,5 +89,7 @@ internal ContainerServiceFleetData() public ManagedServiceIdentity Identity { get; set; } /// The status of the last operation. public FleetProvisioningState? ProvisioningState { get; } + /// The FleetHubProfile configures the Fleet's hub. + public FleetHubProfile HubProfile { get; set; } } } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberCollection.cs index cc491e0f95abc..b7aea330dc856 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberCollection.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -90,7 +90,7 @@ public virtual async Task> Cre try { var response = await _containerServiceFleetMemberFleetMembersRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -115,7 +115,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -141,7 +141,7 @@ public virtual ArmOperation CreateOrUpdate( try { var response = _containerServiceFleetMemberFleetMembersRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string fleetMem /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string fleetMemberName, Ca /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string fleetMemberName, CancellationToken c /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberResource.cs index ad605737e3610..e0683ad16debf 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberResource.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -200,7 +200,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string try { var response = await _containerServiceFleetMemberFleetMembersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -243,7 +243,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C try { var response = _containerServiceFleetMemberFleetMembersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -290,7 +290,7 @@ public virtual async Task> Upd try { var response = await _containerServiceFleetMemberFleetMembersRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -315,7 +315,7 @@ public virtual async Task> Upd /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -337,7 +337,7 @@ public virtual ArmOperation Update(WaitUnti try { var response = _containerServiceFleetMemberFleetMembersRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetResource.cs index aee0906c75776..99c0fb94def06 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetResource.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetResource.cs @@ -90,6 +90,75 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } + /// Gets a collection of AutoUpgradeProfileResources in the ContainerServiceFleet. + /// An object representing collection of AutoUpgradeProfileResources and their operations over a AutoUpgradeProfileResource. + public virtual AutoUpgradeProfileCollection GetAutoUpgradeProfiles() + { + return GetCachedClient(client => new AutoUpgradeProfileCollection(client, Id)); + } + + /// + /// Get a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Get + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the AutoUpgradeProfile resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetAutoUpgradeProfileAsync(string autoUpgradeProfileName, CancellationToken cancellationToken = default) + { + return await GetAutoUpgradeProfiles().GetAsync(autoUpgradeProfileName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a AutoUpgradeProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName} + /// + /// + /// Operation Id + /// AutoUpgradeProfiles_Get + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the AutoUpgradeProfile resource. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetAutoUpgradeProfile(string autoUpgradeProfileName, CancellationToken cancellationToken = default) + { + return GetAutoUpgradeProfiles().Get(autoUpgradeProfileName, cancellationToken); + } + /// Gets a collection of ContainerServiceFleetMemberResources in the ContainerServiceFleet. /// An object representing collection of ContainerServiceFleetMemberResources and their operations over a ContainerServiceFleetMemberResource. public virtual ContainerServiceFleetMemberCollection GetContainerServiceFleetMembers() @@ -110,7 +179,7 @@ public virtual ContainerServiceFleetMemberCollection GetContainerServiceFleetMem /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -141,7 +210,7 @@ public virtual async Task> GetCont /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -179,7 +248,7 @@ public virtual ContainerServiceFleetUpdateRunCollection GetContainerServiceFleet /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -210,7 +279,7 @@ public virtual async Task> GetC /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -248,7 +317,7 @@ public virtual FleetUpdateStrategyCollection GetFleetUpdateStrategies() /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -279,7 +348,7 @@ public virtual async Task> GetFleetUpdateS /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -310,7 +379,7 @@ public virtual Response GetFleetUpdateStrategy(stri /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -350,7 +419,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -390,7 +459,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -408,7 +477,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string try { var response = await _containerServiceFleetFleetsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -433,7 +502,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -451,7 +520,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C try { var response = _containerServiceFleetFleetsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -476,7 +545,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -498,7 +567,7 @@ public virtual async Task> UpdateAsy try { var response = await _containerServiceFleetFleetsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -523,7 +592,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -545,7 +614,7 @@ public virtual ArmOperation Update(WaitUntil wait try { var response = _containerServiceFleetFleetsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -570,7 +639,7 @@ public virtual ArmOperation Update(WaitUntil wait /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -608,7 +677,7 @@ public virtual async Task> GetCredentialsAsync( /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -646,7 +715,7 @@ public virtual Response GetCredentials(CancellationToken /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -708,7 +777,7 @@ public virtual async Task> AddTagAsync(s /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -770,7 +839,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -827,7 +896,7 @@ public virtual async Task> SetTagsAsync( /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -884,7 +953,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -944,7 +1013,7 @@ public virtual async Task> RemoveTagAsyn /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunCollection.cs index b9ea5fa9a816e..7a27bc475f7f4 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunCollection.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -90,7 +90,7 @@ public virtual async Task> try { var response = await _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -115,7 +115,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -141,7 +141,7 @@ public virtual ArmOperation CreateOrUpda try { var response = _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpda /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string updat /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(Cancellat /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string updateRunName, Canc /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string updateRunName, CancellationToken can /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunResource.cs index 55d15c849262d..33bf088be5ef5 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunResource.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunResource.cs @@ -11,6 +11,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; +using Azure.ResourceManager.ContainerServiceFleet.Models; namespace Azure.ResourceManager.ContainerServiceFleet { @@ -101,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -141,7 +142,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -181,7 +182,7 @@ public virtual Response Get(Cancellation /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -199,7 +200,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string try { var response = await _containerServiceFleetUpdateRunUpdateRunsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -224,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -242,7 +243,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C try { var response = _containerServiceFleetUpdateRunUpdateRunsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -267,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -290,7 +291,7 @@ public virtual async Task> try { var response = await _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -315,7 +316,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -338,7 +339,101 @@ public virtual ArmOperation Update(WaitU try { var response = _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Skips one or a combination of member/group/stage/afterStageWait(s) of an update run. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/skip + /// + /// + /// Operation Id + /// UpdateRuns_Skip + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The content of the action request. + /// The request should only proceed if an entity matches this string. + /// The cancellation token to use. + /// is null. + public virtual async Task> SkipAsync(WaitUntil waitUntil, SkipProperties body, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics.CreateScope("ContainerServiceFleetUpdateRunResource.Skip"); + scope.Start(); + try + { + var response = await _containerServiceFleetUpdateRunUpdateRunsRestClient.SkipAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body, ifMatch, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateSkipRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body, ifMatch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Skips one or a combination of member/group/stage/afterStageWait(s) of an update run. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/skip + /// + /// + /// Operation Id + /// UpdateRuns_Skip + /// + /// + /// Default Api Version + /// 2024-05-02-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The content of the action request. + /// The request should only proceed if an entity matches this string. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Skip(WaitUntil waitUntil, SkipProperties body, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(body, nameof(body)); + + using var scope = _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics.CreateScope("ContainerServiceFleetUpdateRunResource.Skip"); + scope.Start(); + try + { + var response = _containerServiceFleetUpdateRunUpdateRunsRestClient.Skip(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body, ifMatch, cancellationToken); + var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateSkipRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, body, ifMatch).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -363,7 +458,7 @@ public virtual ArmOperation Update(WaitU /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -406,7 +501,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -449,7 +544,7 @@ public virtual ArmOperation Start(WaitUn /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -492,7 +587,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/ContainerServiceFleetExtensions.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/ContainerServiceFleetExtensions.cs index d9a0ffd01eef7..24943cf4b275a 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/ContainerServiceFleetExtensions.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/ContainerServiceFleetExtensions.cs @@ -51,6 +51,25 @@ public static ContainerServiceFleetResource GetContainerServiceFleetResource(thi return GetMockableContainerServiceFleetArmClient(client).GetContainerServiceFleetResource(id); } + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static AutoUpgradeProfileResource GetAutoUpgradeProfileResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableContainerServiceFleetArmClient(client).GetAutoUpgradeProfileResource(id); + } + /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. @@ -138,7 +157,7 @@ public static ContainerServiceFleetCollection GetContainerServiceFleets(this Res /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -176,7 +195,7 @@ public static async Task> GetContainerSe /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -214,7 +233,7 @@ public static Response GetContainerServiceFleet(t /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -250,7 +269,7 @@ public static AsyncPageable GetContainerServiceFl /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetArmClient.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetArmClient.cs index 1086484e53e7a..5c5c50847abcb 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetArmClient.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetArmClient.cs @@ -46,6 +46,18 @@ public virtual ContainerServiceFleetResource GetContainerServiceFleetResource(Re return new ContainerServiceFleetResource(Client, id); } + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutoUpgradeProfileResource GetAutoUpgradeProfileResource(ResourceIdentifier id) + { + AutoUpgradeProfileResource.ValidateResourceId(id); + return new AutoUpgradeProfileResource(Client, id); + } + /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetResourceGroupResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetResourceGroupResource.cs index b6ed73a891cb2..d9814eb3b8ce8 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetResourceGroupResource.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual ContainerServiceFleetCollection GetContainerServiceFleets() /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetContainerS /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetSubscriptionResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetSubscriptionResource.cs index 0f67a4240bde0..07c4f8c9ad371 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetSubscriptionResource.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetSubscriptionResource.cs @@ -52,7 +52,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -82,7 +82,7 @@ public virtual AsyncPageable GetContainerServiceF /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyCollection.cs index 2a83c649eb5cf..2f843c53b7a6e 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyCollection.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -90,7 +90,7 @@ public virtual async Task> CreateOrUpd try { var response = await _fleetUpdateStrategyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -141,7 +141,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti try { var response = _fleetUpdateStrategyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string updateStrategyNa /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string updateStrategyName, /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string updateStrategyName, CancellationToke /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyResource.cs index 129ce7354cd56..21c4315ecf1da 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyResource.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -199,7 +199,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string try { var response = await _fleetUpdateStrategyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(_fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(_fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -242,7 +242,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C try { var response = _fleetUpdateStrategyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(_fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(_fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -290,7 +290,7 @@ public virtual async Task> UpdateAsync try { var response = await _fleetUpdateStrategyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -315,7 +315,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-10-15 + /// 2024-05-02-preview /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Update(WaitUntil waitUn try { var response = _fleetUpdateStrategyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken); - var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30"); + var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/AutoUpgradeProfileOperationSource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/AutoUpgradeProfileOperationSource.cs new file mode 100644 index 0000000000000..dd07739754dea --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/AutoUpgradeProfileOperationSource.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + internal class AutoUpgradeProfileOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal AutoUpgradeProfileOperationSource(ArmClient client) + { + _client = client; + } + + AutoUpgradeProfileResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = AutoUpgradeProfileData.DeserializeAutoUpgradeProfileData(document.RootElement); + return new AutoUpgradeProfileResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = AutoUpgradeProfileData.DeserializeAutoUpgradeProfileData(document.RootElement); + return new AutoUpgradeProfileResource(_client, data); + } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeNodeImageSelection.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeNodeImageSelection.Serialization.cs new file mode 100644 index 0000000000000..bed2d49f2d6ba --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeNodeImageSelection.Serialization.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + internal partial class AutoUpgradeNodeImageSelection : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AutoUpgradeNodeImageSelection)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(SelectionType.ToString()); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + AutoUpgradeNodeImageSelection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AutoUpgradeNodeImageSelection)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAutoUpgradeNodeImageSelection(document.RootElement, options); + } + + internal static AutoUpgradeNodeImageSelection DeserializeAutoUpgradeNodeImageSelection(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + AutoUpgradeNodeImageSelectionType type = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + type = new AutoUpgradeNodeImageSelectionType(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AutoUpgradeNodeImageSelection(type, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AutoUpgradeNodeImageSelection)} does not support writing '{options.Format}' format."); + } + } + + AutoUpgradeNodeImageSelection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAutoUpgradeNodeImageSelection(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AutoUpgradeNodeImageSelection)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeNodeImageSelection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeNodeImageSelection.cs new file mode 100644 index 0000000000000..e6f06b116162e --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeNodeImageSelection.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + /// The node image upgrade to be applied to the target clusters in auto upgrade. + internal partial class AutoUpgradeNodeImageSelection + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The node image upgrade type. + public AutoUpgradeNodeImageSelection(AutoUpgradeNodeImageSelectionType selectionType) + { + SelectionType = selectionType; + } + + /// Initializes a new instance of . + /// The node image upgrade type. + /// Keeps track of any properties unknown to the library. + internal AutoUpgradeNodeImageSelection(AutoUpgradeNodeImageSelectionType selectionType, IDictionary serializedAdditionalRawData) + { + SelectionType = selectionType; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal AutoUpgradeNodeImageSelection() + { + } + + /// The node image upgrade type. + public AutoUpgradeNodeImageSelectionType SelectionType { get; set; } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeNodeImageSelectionType.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeNodeImageSelectionType.cs new file mode 100644 index 0000000000000..8e0faa9dbe541 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeNodeImageSelectionType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + /// The node image upgrade type. + public readonly partial struct AutoUpgradeNodeImageSelectionType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutoUpgradeNodeImageSelectionType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string LatestValue = "Latest"; + private const string ConsistentValue = "Consistent"; + + /// Use the latest image version when upgrading nodes. Clusters may use different image versions (e.g., 'AKSUbuntu-1804gen2containerd-2021.10.12' and 'AKSUbuntu-1804gen2containerd-2021.10.19') because, for example, the latest available version is different in different regions. + public static AutoUpgradeNodeImageSelectionType Latest { get; } = new AutoUpgradeNodeImageSelectionType(LatestValue); + /// The image versions to upgrade nodes to are selected as described below: for each node pool in managed clusters affected by the update run, the system selects the latest image version such that it is available across all other node pools (in all other clusters) of the same image type. As a result, all node pools of the same image type will be upgraded to the same image version. For example, if the latest image version for image type 'AKSUbuntu-1804gen2containerd' is 'AKSUbuntu-1804gen2containerd-2021.10.12' for a node pool in cluster A in region X, and is 'AKSUbuntu-1804gen2containerd-2021.10.17' for a node pool in cluster B in region Y, the system will upgrade both node pools to image version 'AKSUbuntu-1804gen2containerd-2021.10.12'. + public static AutoUpgradeNodeImageSelectionType Consistent { get; } = new AutoUpgradeNodeImageSelectionType(ConsistentValue); + /// Determines if two values are the same. + public static bool operator ==(AutoUpgradeNodeImageSelectionType left, AutoUpgradeNodeImageSelectionType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutoUpgradeNodeImageSelectionType left, AutoUpgradeNodeImageSelectionType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator AutoUpgradeNodeImageSelectionType(string value) => new AutoUpgradeNodeImageSelectionType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutoUpgradeNodeImageSelectionType other && Equals(other); + /// + public bool Equals(AutoUpgradeNodeImageSelectionType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileListResult.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileListResult.Serialization.cs new file mode 100644 index 0000000000000..6947ea1d50967 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileListResult.Serialization.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + internal partial class AutoUpgradeProfileListResult : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AutoUpgradeProfileListResult)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + AutoUpgradeProfileListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AutoUpgradeProfileListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAutoUpgradeProfileListResult(document.RootElement, options); + } + + internal static AutoUpgradeProfileListResult DeserializeAutoUpgradeProfileListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + Uri nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AutoUpgradeProfileData.DeserializeAutoUpgradeProfileData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AutoUpgradeProfileListResult(value, nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AutoUpgradeProfileListResult)} does not support writing '{options.Format}' format."); + } + } + + AutoUpgradeProfileListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAutoUpgradeProfileListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AutoUpgradeProfileListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileListResult.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileListResult.cs new file mode 100644 index 0000000000000..fafd94282b792 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileListResult.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + /// The response of a AutoUpgradeProfile list operation. + internal partial class AutoUpgradeProfileListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The AutoUpgradeProfile items on this page. + /// is null. + internal AutoUpgradeProfileListResult(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The AutoUpgradeProfile items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal AutoUpgradeProfileListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal AutoUpgradeProfileListResult() + { + } + + /// The AutoUpgradeProfile items on this page. + public IReadOnlyList Value { get; } + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileProvisioningState.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileProvisioningState.cs new file mode 100644 index 0000000000000..2cb2c37c36cc7 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileProvisioningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + /// The provisioning state of the AutoUpgradeProfile resource. + public readonly partial struct AutoUpgradeProfileProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutoUpgradeProfileProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + + /// Resource has been created. + public static AutoUpgradeProfileProvisioningState Succeeded { get; } = new AutoUpgradeProfileProvisioningState(SucceededValue); + /// Resource creation failed. + public static AutoUpgradeProfileProvisioningState Failed { get; } = new AutoUpgradeProfileProvisioningState(FailedValue); + /// Resource creation was canceled. + public static AutoUpgradeProfileProvisioningState Canceled { get; } = new AutoUpgradeProfileProvisioningState(CanceledValue); + /// Determines if two values are the same. + public static bool operator ==(AutoUpgradeProfileProvisioningState left, AutoUpgradeProfileProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutoUpgradeProfileProvisioningState left, AutoUpgradeProfileProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator AutoUpgradeProfileProvisioningState(string value) => new AutoUpgradeProfileProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutoUpgradeProfileProvisioningState other && Equals(other); + /// + public bool Equals(AutoUpgradeProfileProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAPIServerAccessProfile.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAPIServerAccessProfile.Serialization.cs new file mode 100644 index 0000000000000..8ad9421872010 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAPIServerAccessProfile.Serialization.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + public partial class ContainerServiceFleetAPIServerAccessProfile : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ContainerServiceFleetAPIServerAccessProfile)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsDefined(EnablePrivateCluster)) + { + writer.WritePropertyName("enablePrivateCluster"u8); + writer.WriteBooleanValue(EnablePrivateCluster.Value); + } + if (Optional.IsDefined(EnableVnetIntegration)) + { + writer.WritePropertyName("enableVnetIntegration"u8); + writer.WriteBooleanValue(EnableVnetIntegration.Value); + } + if (Optional.IsDefined(SubnetId)) + { + writer.WritePropertyName("subnetId"u8); + writer.WriteStringValue(SubnetId); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + ContainerServiceFleetAPIServerAccessProfile IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ContainerServiceFleetAPIServerAccessProfile)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeContainerServiceFleetAPIServerAccessProfile(document.RootElement, options); + } + + internal static ContainerServiceFleetAPIServerAccessProfile DeserializeContainerServiceFleetAPIServerAccessProfile(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + bool? enablePrivateCluster = default; + bool? enableVnetIntegration = default; + ResourceIdentifier subnetId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("enablePrivateCluster"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enablePrivateCluster = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("enableVnetIntegration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableVnetIntegration = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("subnetId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + subnetId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ContainerServiceFleetAPIServerAccessProfile(enablePrivateCluster, enableVnetIntegration, subnetId, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ContainerServiceFleetAPIServerAccessProfile)} does not support writing '{options.Format}' format."); + } + } + + ContainerServiceFleetAPIServerAccessProfile IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeContainerServiceFleetAPIServerAccessProfile(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ContainerServiceFleetAPIServerAccessProfile)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAPIServerAccessProfile.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAPIServerAccessProfile.cs new file mode 100644 index 0000000000000..fdee28fe4cb00 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAPIServerAccessProfile.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + /// Access profile for the Fleet hub API server. + public partial class ContainerServiceFleetAPIServerAccessProfile + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public ContainerServiceFleetAPIServerAccessProfile() + { + } + + /// Initializes a new instance of . + /// Whether to create the Fleet hub as a private cluster or not. + /// Whether to enable apiserver vnet integration for the Fleet hub or not. + /// The subnet to be used when apiserver vnet integration is enabled. It is required when creating a new Fleet with BYO vnet. + /// Keeps track of any properties unknown to the library. + internal ContainerServiceFleetAPIServerAccessProfile(bool? enablePrivateCluster, bool? enableVnetIntegration, ResourceIdentifier subnetId, IDictionary serializedAdditionalRawData) + { + EnablePrivateCluster = enablePrivateCluster; + EnableVnetIntegration = enableVnetIntegration; + SubnetId = subnetId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Whether to create the Fleet hub as a private cluster or not. + public bool? EnablePrivateCluster { get; set; } + /// Whether to enable apiserver vnet integration for the Fleet hub or not. + public bool? EnableVnetIntegration { get; set; } + /// The subnet to be used when apiserver vnet integration is enabled. It is required when creating a new Fleet with BYO vnet. + public ResourceIdentifier SubnetId { get; set; } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAgentProfile.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAgentProfile.Serialization.cs new file mode 100644 index 0000000000000..798840fc275ed --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAgentProfile.Serialization.cs @@ -0,0 +1,137 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + public partial class ContainerServiceFleetAgentProfile : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ContainerServiceFleetAgentProfile)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsDefined(SubnetId)) + { + writer.WritePropertyName("subnetId"u8); + writer.WriteStringValue(SubnetId); + } + if (Optional.IsDefined(VmSize)) + { + writer.WritePropertyName("vmSize"u8); + writer.WriteStringValue(VmSize); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + ContainerServiceFleetAgentProfile IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ContainerServiceFleetAgentProfile)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeContainerServiceFleetAgentProfile(document.RootElement, options); + } + + internal static ContainerServiceFleetAgentProfile DeserializeContainerServiceFleetAgentProfile(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier subnetId = default; + string vmSize = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("subnetId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + subnetId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("vmSize"u8)) + { + vmSize = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ContainerServiceFleetAgentProfile(subnetId, vmSize, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ContainerServiceFleetAgentProfile)} does not support writing '{options.Format}' format."); + } + } + + ContainerServiceFleetAgentProfile IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeContainerServiceFleetAgentProfile(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ContainerServiceFleetAgentProfile)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAgentProfile.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAgentProfile.cs new file mode 100644 index 0000000000000..3337c87f860ea --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetAgentProfile.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + /// Agent profile for the Fleet hub. + public partial class ContainerServiceFleetAgentProfile + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public ContainerServiceFleetAgentProfile() + { + } + + /// Initializes a new instance of . + /// The ID of the subnet which the Fleet hub node will join on startup. If this is not specified, a vnet and subnet will be generated and used. + /// The virtual machine size of the Fleet hub. + /// Keeps track of any properties unknown to the library. + internal ContainerServiceFleetAgentProfile(ResourceIdentifier subnetId, string vmSize, IDictionary serializedAdditionalRawData) + { + SubnetId = subnetId; + VmSize = vmSize; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The ID of the subnet which the Fleet hub node will join on startup. If this is not specified, a vnet and subnet will be generated and used. + public ResourceIdentifier SubnetId { get; set; } + /// The virtual machine size of the Fleet hub. + public string VmSize { get; set; } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpdate.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpdate.cs index b335953fbd57b..0f7aa7c2b2649 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpdate.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpdate.cs @@ -74,15 +74,6 @@ internal ContainerServiceFleetManagedClusterUpdate() /// The upgrade to apply to the ManagedClusters. public ContainerServiceFleetManagedClusterUpgradeSpec Upgrade { get; set; } /// The node image upgrade to be applied to the target nodes in update run. - internal NodeImageSelection NodeImageSelection { get; set; } - /// The node image upgrade type. - public NodeImageSelectionType? SelectionType - { - get => NodeImageSelection is null ? default(NodeImageSelectionType?) : NodeImageSelection.SelectionType; - set - { - NodeImageSelection = value.HasValue ? new NodeImageSelection(value.Value) : null; - } - } + public NodeImageSelection NodeImageSelection { get; set; } } } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpgradeSpec.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpgradeSpec.cs index 6e1f4fb7b2d98..033bdaefe58ae 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpgradeSpec.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpgradeSpec.cs @@ -46,22 +46,14 @@ public partial class ContainerServiceFleetManagedClusterUpgradeSpec private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The upgrade type. - /// Full requires the KubernetesVersion property to be set. - /// NodeImageOnly requires the KubernetesVersion property not to be set. - /// + /// ManagedClusterUpgradeType is the type of upgrade to be applied. public ContainerServiceFleetManagedClusterUpgradeSpec(ContainerServiceFleetManagedClusterUpgradeType upgradeType) { UpgradeType = upgradeType; } /// Initializes a new instance of . - /// - /// The upgrade type. - /// Full requires the KubernetesVersion property to be set. - /// NodeImageOnly requires the KubernetesVersion property not to be set. - /// + /// ManagedClusterUpgradeType is the type of upgrade to be applied. /// The Kubernetes version to upgrade the member clusters to. /// Keeps track of any properties unknown to the library. internal ContainerServiceFleetManagedClusterUpgradeSpec(ContainerServiceFleetManagedClusterUpgradeType upgradeType, string kubernetesVersion, IDictionary serializedAdditionalRawData) @@ -76,11 +68,7 @@ internal ContainerServiceFleetManagedClusterUpgradeSpec() { } - /// - /// The upgrade type. - /// Full requires the KubernetesVersion property to be set. - /// NodeImageOnly requires the KubernetesVersion property not to be set. - /// + /// ManagedClusterUpgradeType is the type of upgrade to be applied. public ContainerServiceFleetManagedClusterUpgradeType UpgradeType { get; set; } /// The Kubernetes version to upgrade the member clusters to. public string KubernetesVersion { get; set; } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpgradeType.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpgradeType.cs index 51bb65dcbbf6e..dd53bee462720 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpgradeType.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetManagedClusterUpgradeType.cs @@ -24,11 +24,14 @@ public ContainerServiceFleetManagedClusterUpgradeType(string value) private const string FullValue = "Full"; private const string NodeImageOnlyValue = "NodeImageOnly"; + private const string ControlPlaneOnlyValue = "ControlPlaneOnly"; - /// Full upgrades the control plane and all agent pools of the target ManagedClusters. + /// Full upgrades the control plane and all agent pools of the target ManagedClusters. Requires the ManagedClusterUpgradeSpec.KubernetesVersion property to be set. public static ContainerServiceFleetManagedClusterUpgradeType Full { get; } = new ContainerServiceFleetManagedClusterUpgradeType(FullValue); - /// NodeImageOnly upgrades only the node images of the target ManagedClusters. + /// NodeImageOnly upgrades only the node images of the target ManagedClusters. Requires the ManagedClusterUpgradeSpec.KubernetesVersion property to NOT be set. public static ContainerServiceFleetManagedClusterUpgradeType NodeImageOnly { get; } = new ContainerServiceFleetManagedClusterUpgradeType(NodeImageOnlyValue); + /// ControlPlaneOnly upgrades only targets the KubernetesVersion of the ManagedClusters and will not be applied to the AgentPool. Requires the ManagedClusterUpgradeSpec.KubernetesVersion property to be set. + public static ContainerServiceFleetManagedClusterUpgradeType ControlPlaneOnly { get; } = new ContainerServiceFleetManagedClusterUpgradeType(ControlPlaneOnlyValue); /// Determines if two values are the same. public static bool operator ==(ContainerServiceFleetManagedClusterUpgradeType left, ContainerServiceFleetManagedClusterUpgradeType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetHubProfile.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetHubProfile.Serialization.cs new file mode 100644 index 0000000000000..083f6fc2b2daa --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetHubProfile.Serialization.cs @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + public partial class FleetHubProfile : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(FleetHubProfile)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsDefined(DnsPrefix)) + { + writer.WritePropertyName("dnsPrefix"u8); + writer.WriteStringValue(DnsPrefix); + } + if (Optional.IsDefined(ApiServerAccessProfile)) + { + writer.WritePropertyName("apiServerAccessProfile"u8); + writer.WriteObjectValue(ApiServerAccessProfile, options); + } + if (Optional.IsDefined(AgentProfile)) + { + writer.WritePropertyName("agentProfile"u8); + writer.WriteObjectValue(AgentProfile, options); + } + if (options.Format != "W" && Optional.IsDefined(Fqdn)) + { + writer.WritePropertyName("fqdn"u8); + writer.WriteStringValue(Fqdn); + } + if (options.Format != "W" && Optional.IsDefined(KubernetesVersion)) + { + writer.WritePropertyName("kubernetesVersion"u8); + writer.WriteStringValue(KubernetesVersion); + } + if (options.Format != "W" && Optional.IsDefined(PortalFqdn)) + { + writer.WritePropertyName("portalFqdn"u8); + writer.WriteStringValue(PortalFqdn); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + FleetHubProfile IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(FleetHubProfile)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeFleetHubProfile(document.RootElement, options); + } + + internal static FleetHubProfile DeserializeFleetHubProfile(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string dnsPrefix = default; + ContainerServiceFleetAPIServerAccessProfile apiServerAccessProfile = default; + ContainerServiceFleetAgentProfile agentProfile = default; + string fqdn = default; + string kubernetesVersion = default; + string portalFqdn = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dnsPrefix"u8)) + { + dnsPrefix = property.Value.GetString(); + continue; + } + if (property.NameEquals("apiServerAccessProfile"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + apiServerAccessProfile = ContainerServiceFleetAPIServerAccessProfile.DeserializeContainerServiceFleetAPIServerAccessProfile(property.Value, options); + continue; + } + if (property.NameEquals("agentProfile"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + agentProfile = ContainerServiceFleetAgentProfile.DeserializeContainerServiceFleetAgentProfile(property.Value, options); + continue; + } + if (property.NameEquals("fqdn"u8)) + { + fqdn = property.Value.GetString(); + continue; + } + if (property.NameEquals("kubernetesVersion"u8)) + { + kubernetesVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("portalFqdn"u8)) + { + portalFqdn = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new FleetHubProfile( + dnsPrefix, + apiServerAccessProfile, + agentProfile, + fqdn, + kubernetesVersion, + portalFqdn, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(FleetHubProfile)} does not support writing '{options.Format}' format."); + } + } + + FleetHubProfile IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeFleetHubProfile(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(FleetHubProfile)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetHubProfile.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetHubProfile.cs new file mode 100644 index 0000000000000..09a8a2486f129 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/FleetHubProfile.cs @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + /// The FleetHubProfile configures the fleet hub. + public partial class FleetHubProfile + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public FleetHubProfile() + { + } + + /// Initializes a new instance of . + /// DNS prefix used to create the FQDN for the Fleet hub. + /// The access profile for the Fleet hub API server. + /// The agent profile for the Fleet hub. + /// The FQDN of the Fleet hub. + /// The Kubernetes version of the Fleet hub. + /// The Azure Portal FQDN of the Fleet hub. + /// Keeps track of any properties unknown to the library. + internal FleetHubProfile(string dnsPrefix, ContainerServiceFleetAPIServerAccessProfile apiServerAccessProfile, ContainerServiceFleetAgentProfile agentProfile, string fqdn, string kubernetesVersion, string portalFqdn, IDictionary serializedAdditionalRawData) + { + DnsPrefix = dnsPrefix; + ApiServerAccessProfile = apiServerAccessProfile; + AgentProfile = agentProfile; + Fqdn = fqdn; + KubernetesVersion = kubernetesVersion; + PortalFqdn = portalFqdn; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// DNS prefix used to create the FQDN for the Fleet hub. + public string DnsPrefix { get; set; } + /// The access profile for the Fleet hub API server. + public ContainerServiceFleetAPIServerAccessProfile ApiServerAccessProfile { get; set; } + /// The agent profile for the Fleet hub. + public ContainerServiceFleetAgentProfile AgentProfile { get; set; } + /// The FQDN of the Fleet hub. + public string Fqdn { get; } + /// The Kubernetes version of the Fleet hub. + public string KubernetesVersion { get; } + /// The Azure Portal FQDN of the Fleet hub. + public string PortalFqdn { get; } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelection.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelection.Serialization.cs index 1492f4719f2d4..1356f8aa90d12 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelection.Serialization.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelection.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.ContainerServiceFleet.Models { - internal partial class NodeImageSelection : IUtf8JsonSerializable, IJsonModel + public partial class NodeImageSelection : IUtf8JsonSerializable, IJsonModel { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); @@ -28,6 +28,16 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrit writer.WriteStartObject(); writer.WritePropertyName("type"u8); writer.WriteStringValue(SelectionType.ToString()); + if (Optional.IsCollectionDefined(CustomNodeImageVersions)) + { + writer.WritePropertyName("customNodeImageVersions"u8); + writer.WriteStartArray(); + foreach (var item in CustomNodeImageVersions) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -67,6 +77,7 @@ internal static NodeImageSelection DeserializeNodeImageSelection(JsonElement ele return null; } NodeImageSelectionType type = default; + IList customNodeImageVersions = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -76,13 +87,27 @@ internal static NodeImageSelection DeserializeNodeImageSelection(JsonElement ele type = new NodeImageSelectionType(property.Value.GetString()); continue; } + if (property.NameEquals("customNodeImageVersions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(NodeImageVersion.DeserializeNodeImageVersion(item, options)); + } + customNodeImageVersions = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new NodeImageSelection(type, serializedAdditionalRawData); + return new NodeImageSelection(type, customNodeImageVersions ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelection.cs index 1138a95b1d3c8..9ae40e07863e1 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelection.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelection.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.ContainerServiceFleet.Models { /// The node image upgrade to be applied to the target nodes in update run. - internal partial class NodeImageSelection + public partial class NodeImageSelection { /// /// Keeps track of any properties unknown to the library. @@ -50,14 +50,17 @@ internal partial class NodeImageSelection public NodeImageSelection(NodeImageSelectionType selectionType) { SelectionType = selectionType; + CustomNodeImageVersions = new ChangeTrackingList(); } /// Initializes a new instance of . /// The node image upgrade type. + /// Custom node image versions to upgrade the nodes to. This field is required if node image selection type is Custom. Otherwise, it must be empty. For each node image family (e.g., 'AKSUbuntu-1804gen2containerd'), this field can contain at most one version (e.g., only one of 'AKSUbuntu-1804gen2containerd-2023.01.12' or 'AKSUbuntu-1804gen2containerd-2023.02.12', not both). If the nodes belong to a family without a matching image version in this field, they are not upgraded. /// Keeps track of any properties unknown to the library. - internal NodeImageSelection(NodeImageSelectionType selectionType, IDictionary serializedAdditionalRawData) + internal NodeImageSelection(NodeImageSelectionType selectionType, IList customNodeImageVersions, IDictionary serializedAdditionalRawData) { SelectionType = selectionType; + CustomNodeImageVersions = customNodeImageVersions; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -68,5 +71,7 @@ internal NodeImageSelection() /// The node image upgrade type. public NodeImageSelectionType SelectionType { get; set; } + /// Custom node image versions to upgrade the nodes to. This field is required if node image selection type is Custom. Otherwise, it must be empty. For each node image family (e.g., 'AKSUbuntu-1804gen2containerd'), this field can contain at most one version (e.g., only one of 'AKSUbuntu-1804gen2containerd-2023.01.12' or 'AKSUbuntu-1804gen2containerd-2023.02.12', not both). If the nodes belong to a family without a matching image version in this field, they are not upgraded. + public IList CustomNodeImageVersions { get; } } } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelectionType.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelectionType.cs index 2f2606ef50b6a..ea1381fe7ee23 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelectionType.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageSelectionType.cs @@ -24,11 +24,14 @@ public NodeImageSelectionType(string value) private const string LatestValue = "Latest"; private const string ConsistentValue = "Consistent"; + private const string CustomValue = "Custom"; /// Use the latest image version when upgrading nodes. Clusters may use different image versions (e.g., 'AKSUbuntu-1804gen2containerd-2021.10.12' and 'AKSUbuntu-1804gen2containerd-2021.10.19') because, for example, the latest available version is different in different regions. public static NodeImageSelectionType Latest { get; } = new NodeImageSelectionType(LatestValue); /// The image versions to upgrade nodes to are selected as described below: for each node pool in managed clusters affected by the update run, the system selects the latest image version such that it is available across all other node pools (in all other clusters) of the same image type. As a result, all node pools of the same image type will be upgraded to the same image version. For example, if the latest image version for image type 'AKSUbuntu-1804gen2containerd' is 'AKSUbuntu-1804gen2containerd-2021.10.12' for a node pool in cluster A in region X, and is 'AKSUbuntu-1804gen2containerd-2021.10.17' for a node pool in cluster B in region Y, the system will upgrade both node pools to image version 'AKSUbuntu-1804gen2containerd-2021.10.12'. public static NodeImageSelectionType Consistent { get; } = new NodeImageSelectionType(ConsistentValue); + /// Upgrade the nodes to the custom image versions. When set, update run will use node image versions provided in customNodeImageVersions to upgrade the nodes. If set, customNodeImageVersions must not be empty. + public static NodeImageSelectionType Custom { get; } = new NodeImageSelectionType(CustomValue); /// Determines if two values are the same. public static bool operator ==(NodeImageSelectionType left, NodeImageSelectionType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageVersion.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageVersion.cs index 36ab15959a68a..fb3d930628c20 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageVersion.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/NodeImageVersion.cs @@ -46,7 +46,7 @@ public partial class NodeImageVersion private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal NodeImageVersion() + public NodeImageVersion() { } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipProperties.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipProperties.Serialization.cs new file mode 100644 index 0000000000000..0933fe8937d8f --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipProperties.Serialization.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + public partial class SkipProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SkipProperties)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + writer.WritePropertyName("targets"u8); + writer.WriteStartArray(); + foreach (var item in Targets) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + SkipProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SkipProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSkipProperties(document.RootElement, options); + } + + internal static SkipProperties DeserializeSkipProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList targets = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("targets"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SkipTarget.DeserializeSkipTarget(item, options)); + } + targets = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SkipProperties(targets, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(SkipProperties)} does not support writing '{options.Format}' format."); + } + } + + SkipProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeSkipProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SkipProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipProperties.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipProperties.cs new file mode 100644 index 0000000000000..b25f0d78ae101 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipProperties.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + /// The properties of a skip operation containing multiple skip requests. + public partial class SkipProperties + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The targets to skip. + /// is null. + public SkipProperties(IEnumerable targets) + { + Argument.AssertNotNull(targets, nameof(targets)); + + Targets = targets.ToList(); + } + + /// Initializes a new instance of . + /// The targets to skip. + /// Keeps track of any properties unknown to the library. + internal SkipProperties(IList targets, IDictionary serializedAdditionalRawData) + { + Targets = targets; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal SkipProperties() + { + } + + /// The targets to skip. + public IList Targets { get; } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipTarget.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipTarget.Serialization.cs new file mode 100644 index 0000000000000..5139471eb20d7 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipTarget.Serialization.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + public partial class SkipTarget : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SkipTarget)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(TargetType.ToString()); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + SkipTarget IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SkipTarget)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSkipTarget(document.RootElement, options); + } + + internal static SkipTarget DeserializeSkipTarget(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + TargetType type = default; + string name = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + type = new TargetType(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SkipTarget(type, name, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(SkipTarget)} does not support writing '{options.Format}' format."); + } + } + + SkipTarget IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeSkipTarget(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SkipTarget)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipTarget.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipTarget.cs new file mode 100644 index 0000000000000..8d7076d22f259 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/SkipTarget.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + /// The definition of a single skip request. + public partial class SkipTarget + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The skip target type. + /// + /// The skip target's name. + /// To skip a member/group/stage, use the member/group/stage's name; + /// Tp skip an after stage wait, use the parent stage's name. + /// + /// is null. + public SkipTarget(TargetType targetType, string name) + { + Argument.AssertNotNull(name, nameof(name)); + + TargetType = targetType; + Name = name; + } + + /// Initializes a new instance of . + /// The skip target type. + /// + /// The skip target's name. + /// To skip a member/group/stage, use the member/group/stage's name; + /// Tp skip an after stage wait, use the parent stage's name. + /// + /// Keeps track of any properties unknown to the library. + internal SkipTarget(TargetType targetType, string name, IDictionary serializedAdditionalRawData) + { + TargetType = targetType; + Name = name; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal SkipTarget() + { + } + + /// The skip target type. + public TargetType TargetType { get; } + /// + /// The skip target's name. + /// To skip a member/group/stage, use the member/group/stage's name; + /// Tp skip an after stage wait, use the parent stage's name. + /// + public string Name { get; } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/TargetType.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/TargetType.cs new file mode 100644 index 0000000000000..22b1ad8d169c3 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/TargetType.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + /// The target type of a skip request. + public readonly partial struct TargetType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public TargetType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string MemberValue = "Member"; + private const string GroupValue = "Group"; + private const string StageValue = "Stage"; + private const string AfterStageWaitValue = "AfterStageWait"; + + /// Skip the update of a member. + public static TargetType Member { get; } = new TargetType(MemberValue); + /// Skip the update of a group. + public static TargetType Group { get; } = new TargetType(GroupValue); + /// Skip the update of an entire stage including the after stage wait. + public static TargetType Stage { get; } = new TargetType(StageValue); + /// Skip the update of the after stage wait of a certain stage. + public static TargetType AfterStageWait { get; } = new TargetType(AfterStageWaitValue); + /// Determines if two values are the same. + public static bool operator ==(TargetType left, TargetType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(TargetType left, TargetType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator TargetType(string value) => new TargetType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is TargetType other && Equals(other); + /// + public bool Equals(TargetType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/UpgradeChannel.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/UpgradeChannel.cs new file mode 100644 index 0000000000000..3ec3fa494c263 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/UpgradeChannel.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerServiceFleet.Models +{ + /// Configuration of how auto upgrade will be run. + public readonly partial struct UpgradeChannel : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public UpgradeChannel(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string StableValue = "Stable"; + private const string RapidValue = "Rapid"; + private const string NodeImageValue = "NodeImage"; + + /// + /// Upgrades the clusters kubernetes version to the latest supported patch release on minor version N-1, where N is the latest supported minor version. + /// For example, if a cluster runs version 1.17.7 and versions 1.17.9, 1.18.4, 1.18.6, and 1.19.1 are available, the cluster upgrades to 1.18.6. + /// + public static UpgradeChannel Stable { get; } = new UpgradeChannel(StableValue); + /// Upgrades the clusters kubernetes version to the latest supported patch release on the latest supported minor version. + public static UpgradeChannel Rapid { get; } = new UpgradeChannel(RapidValue); + /// Upgrade node image version of the clusters. + public static UpgradeChannel NodeImage { get; } = new UpgradeChannel(NodeImageValue); + /// Determines if two values are the same. + public static bool operator ==(UpgradeChannel left, UpgradeChannel right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(UpgradeChannel left, UpgradeChannel right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator UpgradeChannel(string value) => new UpgradeChannel(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is UpgradeChannel other && Equals(other); + /// + public bool Equals(UpgradeChannel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/AutoUpgradeProfilesRestOperations.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/AutoUpgradeProfilesRestOperations.cs new file mode 100644 index 0000000000000..969033b5ed7c6 --- /dev/null +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/AutoUpgradeProfilesRestOperations.cs @@ -0,0 +1,531 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ContainerServiceFleet.Models; + +namespace Azure.ResourceManager.ContainerServiceFleet +{ + internal partial class AutoUpgradeProfilesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of AutoUpgradeProfilesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public AutoUpgradeProfilesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2024-05-02-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListByFleetRequestUri(string subscriptionId, string resourceGroupName, string fleetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/autoUpgradeProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListByFleetRequest(string subscriptionId, string resourceGroupName, string fleetName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/autoUpgradeProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List AutoUpgradeProfile resources by Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByFleetAsync(string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateListByFleetRequest(subscriptionId, resourceGroupName, fleetName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutoUpgradeProfileListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutoUpgradeProfileListResult.DeserializeAutoUpgradeProfileListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List AutoUpgradeProfile resources by Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByFleet(string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateListByFleetRequest(subscriptionId, resourceGroupName, fleetName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutoUpgradeProfileListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutoUpgradeProfileListResult.DeserializeAutoUpgradeProfileListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/autoUpgradeProfiles/", false); + uri.AppendPath(autoUpgradeProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/autoUpgradeProfiles/", false); + uri.AppendPath(autoUpgradeProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get a AutoUpgradeProfile. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the AutoUpgradeProfile resource. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutoUpgradeProfileData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutoUpgradeProfileData.DeserializeAutoUpgradeProfileData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AutoUpgradeProfileData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get a AutoUpgradeProfile. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the AutoUpgradeProfile resource. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutoUpgradeProfileData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutoUpgradeProfileData.DeserializeAutoUpgradeProfileData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AutoUpgradeProfileData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, AutoUpgradeProfileData data, string ifMatch, string ifNoneMatch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/autoUpgradeProfiles/", false); + uri.AppendPath(autoUpgradeProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, AutoUpgradeProfileData data, string ifMatch, string ifNoneMatch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/autoUpgradeProfiles/", false); + uri.AppendPath(autoUpgradeProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + if (ifMatch != null) + { + request.Headers.Add("If-Match", ifMatch); + } + if (ifNoneMatch != null) + { + request.Headers.Add("If-None-Match", ifNoneMatch); + } + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create a AutoUpgradeProfile. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the AutoUpgradeProfile resource. + /// Resource create parameters. + /// The request should only proceed if an entity matches this string. + /// The request should only proceed if no entity matches this string. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, AutoUpgradeProfileData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName, data, ifMatch, ifNoneMatch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create a AutoUpgradeProfile. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the AutoUpgradeProfile resource. + /// Resource create parameters. + /// The request should only proceed if an entity matches this string. + /// The request should only proceed if no entity matches this string. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, AutoUpgradeProfileData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName, data, ifMatch, ifNoneMatch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, string ifMatch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/autoUpgradeProfiles/", false); + uri.AppendPath(autoUpgradeProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, string ifMatch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/autoUpgradeProfiles/", false); + uri.AppendPath(autoUpgradeProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + if (ifMatch != null) + { + request.Headers.Add("If-Match", ifMatch); + } + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete a AutoUpgradeProfile. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the AutoUpgradeProfile resource. + /// The request should only proceed if an entity matches this string. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName, ifMatch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete a AutoUpgradeProfile. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the AutoUpgradeProfile resource. + /// The request should only proceed if an entity matches this string. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName, ifMatch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByFleetNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string fleetName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByFleetNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string fleetName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List AutoUpgradeProfile resources by Fleet. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByFleetNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateListByFleetNextPageRequest(nextLink, subscriptionId, resourceGroupName, fleetName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutoUpgradeProfileListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutoUpgradeProfileListResult.DeserializeAutoUpgradeProfileListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List AutoUpgradeProfile resources by Fleet. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByFleetNextPage(string nextLink, string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateListByFleetNextPageRequest(nextLink, subscriptionId, resourceGroupName, fleetName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutoUpgradeProfileListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutoUpgradeProfileListResult.DeserializeAutoUpgradeProfileListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetMembersRestOperations.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetMembersRestOperations.cs index 87fbf6a8bf2bf..00c7a9bb3f781 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetMembersRestOperations.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetMembersRestOperations.cs @@ -32,7 +32,7 @@ public FleetMembersRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-10-15"; + _apiVersion = apiVersion ?? "2024-05-02-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetUpdateStrategiesRestOperations.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetUpdateStrategiesRestOperations.cs index 12e25f51db79f..83ae88ea92007 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetUpdateStrategiesRestOperations.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetUpdateStrategiesRestOperations.cs @@ -32,7 +32,7 @@ public FleetUpdateStrategiesRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-10-15"; + _apiVersion = apiVersion ?? "2024-05-02-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetsRestOperations.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetsRestOperations.cs index d39cbc5edd77a..3fd2e3eb26461 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetsRestOperations.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/FleetsRestOperations.cs @@ -32,7 +32,7 @@ public FleetsRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-10-15"; + _apiVersion = apiVersion ?? "2024-05-02-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/UpdateRunsRestOperations.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/UpdateRunsRestOperations.cs index 1b7c8e52c9023..7b72bdb633fc3 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/UpdateRunsRestOperations.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/UpdateRunsRestOperations.cs @@ -32,7 +32,7 @@ public UpdateRunsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-10-15"; + _apiVersion = apiVersion ?? "2024-05-02-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -446,6 +446,114 @@ public Response Delete(string subscriptionId, string resourceGroupName, string f } } + internal RequestUriBuilder CreateSkipRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, SkipProperties body, string ifMatch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateRuns/", false); + uri.AppendPath(updateRunName, true); + uri.AppendPath("/skip", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateSkipRequest(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, SkipProperties body, string ifMatch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/updateRuns/", false); + uri.AppendPath(updateRunName, true); + uri.AppendPath("/skip", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + if (ifMatch != null) + { + request.Headers.Add("If-Match", ifMatch); + } + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(body, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Skips one or a combination of member/group/stage/afterStageWait(s) of an update run. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the UpdateRun resource. + /// The content of the action request. + /// The request should only proceed if an entity matches this string. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task SkipAsync(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, SkipProperties body, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(updateRunName, nameof(updateRunName)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateSkipRequest(subscriptionId, resourceGroupName, fleetName, updateRunName, body, ifMatch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Skips one or a combination of member/group/stage/afterStageWait(s) of an update run. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the UpdateRun resource. + /// The content of the action request. + /// The request should only proceed if an entity matches this string. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Skip(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, SkipProperties body, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(updateRunName, nameof(updateRunName)); + Argument.AssertNotNull(body, nameof(body)); + + using var message = CreateSkipRequest(subscriptionId, resourceGroupName, fleetName, updateRunName, body, ifMatch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateStartRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string updateRunName, string ifMatch) { var uri = new RawRequestUriBuilder(); diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/autorest.md b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/autorest.md index c60c7c87c5b33..e01420a00d372 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/autorest.md +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/autorest.md @@ -7,8 +7,7 @@ azure-arm: true csharp: true library-name: ContainerServiceFleet namespace: Azure.ResourceManager.ContainerServiceFleet -require: https://github.com/Azure/azure-rest-api-specs/blob/9837baba3ca259b4f2a3f736593311f445c35c63/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md -#tag: package-2023-10 +require: https://github.com/Azure/azure-rest-api-specs/blob/7ec14d22272e95ba23e2dbaa969531448c4d7af6/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: @@ -79,18 +78,6 @@ acronym-mapping: Etag: ETag|etag ETag: ETag|eTag -operations-to-lro-api-version-override: - Fleets_CreateOrUpdate: "2016-03-30" - Fleets_Update: "2016-03-30" - Fleets_Delete: "2016-03-30" - FleetMembers_Create: "2016-03-30" - FleetMembers_Update: "2016-03-30" - FleetMembers_Delete: "2016-03-30" - UpdateRuns_CreateOrUpdate: "2016-03-30" - UpdateRuns_Delete: "2016-03-30" - FleetUpdateStrategies_CreateOrUpdate: "2016-03-30" - FleetUpdateStrategies_Delete: "2016-03-30" - models-to-treat-empty-string-as-null: - SubnetResourceId ``` diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/tests/Scenario/FleetCRUD.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/tests/Scenario/FleetCRUD.cs index bd0b6f5415c2b..8bb50cd636788 100644 --- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/tests/Scenario/FleetCRUD.cs +++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/tests/Scenario/FleetCRUD.cs @@ -19,6 +19,7 @@ using Azure.ResourceManager.Resources; using Azure.ResourceManager.ContainerService.Models; using System.Drawing; +using UpgradeChannel = Azure.ResourceManager.ContainerServiceFleet.Models.UpgradeChannel; namespace Azure.ResourceManager.ContainerServiceFleet.Tests.Scenario { @@ -104,7 +105,7 @@ public async Task FleetCRUDTest() string updateRunName = "run1"; ContainerServiceFleetUpdateRunData updateRunData = new ContainerServiceFleetUpdateRunData(); updateRunData.ManagedClusterUpdate = new ContainerServiceFleetManagedClusterUpdate( - new ContainerServiceFleetManagedClusterUpgradeSpec(ContainerServiceFleetManagedClusterUpgradeType.Full, "1.26.1", null), new NodeImageSelection(NodeImageSelectionType.Latest), null); + new ContainerServiceFleetManagedClusterUpgradeSpec(ContainerServiceFleetManagedClusterUpgradeType.Full, "1.29.8", null), new NodeImageSelection(NodeImageSelectionType.Latest), null); ArmOperation createUpdateRunLRO = await updateRunCollection.CreateOrUpdateAsync(WaitUntil.Completed, updateRunName, updateRunData); ContainerServiceFleetUpdateRunResource updateRunResource = createUpdateRunLRO.Value; @@ -123,6 +124,45 @@ public async Task FleetCRUDTest() ArmOperation stopUpdateRunLRO = await updateRunResource.StopAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded on id: {stopUpdateRunLRO.Value.Data.Id}"); + // Create AutoUpgradeProfile + AutoUpgradeProfileCollection autoUpgradeProfileCollection = fleetResource.GetAutoUpgradeProfiles(); + string autoUpgradeProfileName = "autoupgradeprofile1"; + AutoUpgradeProfileData createAutoUpgradeProfileData = new AutoUpgradeProfileData() + { + Channel = UpgradeChannel.Stable, + }; + ArmOperation createAutoUpgradeProfileLRO = await autoUpgradeProfileCollection.CreateOrUpdateAsync(WaitUntil.Completed, autoUpgradeProfileName, createAutoUpgradeProfileData); + AutoUpgradeProfileResource createAutoUpgradeProfileResult = createAutoUpgradeProfileLRO.Value; + Debug.Assert(createAutoUpgradeProfileResult.HasData, "CreateOrUpdateAsync AutoUpgradeProfile data was not valid"); + + createAutoUpgradeProfileData = createAutoUpgradeProfileResult.Data; + Console.WriteLine($"Succeeded on id: {createAutoUpgradeProfileData.Id}"); + Console.WriteLine($"Created AutoUpgradeProfile was: {createAutoUpgradeProfileData.Id}"); + + // Get AutoUpgradeProfile + AutoUpgradeProfileResource getAutoUpgradeProfileResult = await autoUpgradeProfileCollection.GetAsync(autoUpgradeProfileName); + Debug.Assert(getAutoUpgradeProfileResult.HasData, "GetAsync AutoUpgradeProfile data was not valid"); + AutoUpgradeProfileData getAutoUpgradeProfileData = getAutoUpgradeProfileResult.Data; + Console.WriteLine($"Succeeded on id: {getAutoUpgradeProfileData.Id}"); + Console.WriteLine($"Get AutoUpgradeProfile was: {getAutoUpgradeProfileData.Id}"); + Debug.Assert(getAutoUpgradeProfileData.Name == createAutoUpgradeProfileData.Name, "GetAutoUpgradeProfile did not retrieve the correct data."); + Debug.Assert(getAutoUpgradeProfileData.Id == createAutoUpgradeProfileData.Id, "GetAutoUpgradeProfile did not retrieve the correct data."); + + // Update AutoUpgradeProfile + AutoUpgradeProfileData updateAutoUpgradeProfileData = new AutoUpgradeProfileData() + { + Channel = UpgradeChannel.Rapid, + }; + ArmOperation updateAutoUpgradeProfileLRO = await autoUpgradeProfileCollection.CreateOrUpdateAsync(WaitUntil.Completed, autoUpgradeProfileName, updateAutoUpgradeProfileData); + AutoUpgradeProfileResource updateAutoUpgradeProfileResult = updateAutoUpgradeProfileLRO.Value; + Debug.Assert(updateAutoUpgradeProfileResult.HasData, "CreateOrUpdateAsync AutoUpgradeProfile data was not valid"); + Debug.Assert(updateAutoUpgradeProfileResult.Data.Channel == UpgradeChannel.Rapid, "CreateOrUpdateAsync AutoUpgradeProfile channel was not successfully updated."); + + // Delete AutoUpgradeProfile + await updateAutoUpgradeProfileResult.DeleteAsync(WaitUntil.Completed); + bool doesAutoUpgradeProfileExist = await autoUpgradeProfileCollection.ExistsAsync(autoUpgradeProfileName); + Debug.Assert(doesAutoUpgradeProfileExist == false, "AutoUpgradeProfile was not deleted."); + // Delete UpdateRun await updateRunResource.DeleteAsync(WaitUntil.Completed); bool doesUpdateRunExist = await updateRunCollection.ExistsAsync(updateRunName); diff --git a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs index 5c118520db2bc..1f8ccf5fb5b20 100644 --- a/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs +++ b/sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/samples/Generated/Samples/Sample_EndpointResource.cs @@ -156,7 +156,7 @@ public async Task GetCredentials_HybridConnectivityEndpointsPostListCredentials( EndpointResource endpointResource = client.GetEndpointResource(endpointResourceId); // invoke the operation - long? expiresin = 10800; + long? expiresin = 10800L; TargetResourceEndpointAccess result = await endpointResource.GetCredentialsAsync(expiresin: expiresin); Console.WriteLine($"Succeeded: {result}"); diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/samples/Generated/Samples/Sample_IotFirmwareCollection.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/samples/Generated/Samples/Sample_IotFirmwareCollection.cs index 83464a2b36302..0c4ab263294c7 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/samples/Generated/Samples/Sample_IotFirmwareCollection.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/samples/Generated/Samples/Sample_IotFirmwareCollection.cs @@ -122,7 +122,7 @@ public async Task CreateOrUpdate_FirmwaresCreateMaximumSetGen() Model = "f", Version = "s", Description = "uz", - FileSize = 17, + FileSize = 17L, Status = FirmwareAnalysisStatus.Pending, StatusMessages = { diff --git a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/samples/Generated/Samples/Sample_IotFirmwareResource.cs b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/samples/Generated/Samples/Sample_IotFirmwareResource.cs index 191557d2f3ce2..41c77d78e7472 100644 --- a/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/samples/Generated/Samples/Sample_IotFirmwareResource.cs +++ b/sdk/iot/Azure.ResourceManager.IotFirmwareDefense/samples/Generated/Samples/Sample_IotFirmwareResource.cs @@ -293,7 +293,7 @@ public async Task Update_FirmwaresUpdateMaximumSetGen() Model = "f", Version = "s", Description = "uz", - FileSize = 17, + FileSize = 17L, Status = FirmwareAnalysisStatus.Pending, StatusMessages = { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/samples/Generated/Samples/Sample_IotHubDescriptionCollection.cs b/sdk/iothub/Azure.ResourceManager.IotHub/samples/Generated/Samples/Sample_IotHubDescriptionCollection.cs index 0b4724a8db1d1..83a2603de3f99 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/samples/Generated/Samples/Sample_IotHubDescriptionCollection.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/samples/Generated/Samples/Sample_IotHubDescriptionCollection.cs @@ -150,7 +150,7 @@ public async Task CreateOrUpdate_IotHubResourceAddCosmosDbEndpoint() string resourceName = "testHub"; IotHubDescriptionData data = new IotHubDescriptionData(new AzureLocation("centraluseuap"), new IotHubSkuInfo(IotHubSku.S1) { - Capacity = 1, + Capacity = 1L, }) { ETag = new ETag("AAAAAAFD6M4="), @@ -177,7 +177,7 @@ public async Task CreateOrUpdate_IotHubResourceAddCosmosDbEndpoint() { ["events"] = new EventHubCompatibleEndpointProperties() { -RetentionTimeInDays = 1, +RetentionTimeInDays = 1L, PartitionCount = 2, }, }, @@ -295,7 +295,7 @@ public async Task CreateOrUpdate_IotHubResourceCreateOrUpdate() string resourceName = "testHub"; IotHubDescriptionData data = new IotHubDescriptionData(new AzureLocation("centraluseuap"), new IotHubSkuInfo(IotHubSku.S1) { - Capacity = 1, + Capacity = 1L, }) { ETag = new ETag("AAAAAAFD6M4="), @@ -322,7 +322,7 @@ public async Task CreateOrUpdate_IotHubResourceCreateOrUpdate() { ["events"] = new EventHubCompatibleEndpointProperties() { -RetentionTimeInDays = 1, +RetentionTimeInDays = 1L, PartitionCount = 2, }, }, diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/samples/Generated/Samples/Sample_KubernetesFluxConfigurationCollection.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/samples/Generated/Samples/Sample_KubernetesFluxConfigurationCollection.cs index 7cd36eeedf3c5..e677294283ebe 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/samples/Generated/Samples/Sample_KubernetesFluxConfigurationCollection.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/samples/Generated/Samples/Sample_KubernetesFluxConfigurationCollection.cs @@ -168,8 +168,8 @@ public async Task CreateOrUpdate_CreateFluxConfiguration() GitRepository = new KubernetesGitRepository() { Uri = new Uri("https://github.com/Azure/arc-k8s-demo"), - TimeoutInSeconds = 600, - SyncIntervalInSeconds = 600, + TimeoutInSeconds = 600L, + SyncIntervalInSeconds = 600L, RepositoryRef = new KubernetesGitRepositoryRef() { Branch = "master", @@ -184,8 +184,8 @@ public async Task CreateOrUpdate_CreateFluxConfiguration() DependsOn = { }, -TimeoutInSeconds = 600, -SyncIntervalInSeconds = 600, +TimeoutInSeconds = 600L, +SyncIntervalInSeconds = 600L, }, ["srs-kustomization2"] = new Kustomization() { @@ -194,9 +194,9 @@ public async Task CreateOrUpdate_CreateFluxConfiguration() { "srs-kustomization1" }, -TimeoutInSeconds = 600, -SyncIntervalInSeconds = 600, -RetryIntervalInSeconds = 600, +TimeoutInSeconds = 600L, +SyncIntervalInSeconds = 600L, +RetryIntervalInSeconds = 600L, Prune = false, }, }, @@ -249,8 +249,8 @@ public async Task CreateOrUpdate_CreateFluxConfigurationWithBucketSourceKind() { Uri = new Uri("https://fluxminiotest.az.minio.io"), BucketName = "flux", - TimeoutInSeconds = 1000, - SyncIntervalInSeconds = 1000, + TimeoutInSeconds = 1000L, + SyncIntervalInSeconds = 1000L, AccessKey = "fluxminiotest", }, Kustomizations = @@ -261,8 +261,8 @@ public async Task CreateOrUpdate_CreateFluxConfigurationWithBucketSourceKind() DependsOn = { }, -TimeoutInSeconds = 600, -SyncIntervalInSeconds = 600, +TimeoutInSeconds = 600L, +SyncIntervalInSeconds = 600L, }, ["srs-kustomization2"] = new Kustomization() { @@ -271,9 +271,9 @@ public async Task CreateOrUpdate_CreateFluxConfigurationWithBucketSourceKind() { "srs-kustomization1" }, -TimeoutInSeconds = 600, -SyncIntervalInSeconds = 600, -RetryIntervalInSeconds = 600, +TimeoutInSeconds = 600L, +SyncIntervalInSeconds = 600L, +RetryIntervalInSeconds = 600L, Prune = false, }, }, diff --git a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/samples/Generated/Samples/Sample_KubernetesFluxConfigurationResource.cs b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/samples/Generated/Samples/Sample_KubernetesFluxConfigurationResource.cs index 765bf02db1c8d..81b83aeaab2bd 100644 --- a/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/samples/Generated/Samples/Sample_KubernetesFluxConfigurationResource.cs +++ b/sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/samples/Generated/Samples/Sample_KubernetesFluxConfigurationResource.cs @@ -90,12 +90,12 @@ public async Task Update_PatchFluxConfiguration() DependsOn = { }, -SyncIntervalInSeconds = 300, +SyncIntervalInSeconds = 300L, }, ["srs-kustomization3"] = new KustomizationUpdateContent() { Path = "./test/another-path", -SyncIntervalInSeconds = 300, +SyncIntervalInSeconds = 300L, }, }, }; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs index 30e3ca78d4c48..609ea80124672 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs @@ -206,7 +206,7 @@ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceBatchDeployment() MaxRetries = 1, Timeout = XmlConvert.ToTimeSpan("PT5M"), }, - MiniBatchSize = 1, + MiniBatchSize = 1L, LoggingLevel = MachineLearningBatchLoggingLevel.Info, Model = new MachineLearningIdAssetReference(new ResourceIdentifier("string")), MaxConcurrencyPerInstance = 1, diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index b02c76f343046..bce1897acbbcf 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -103,13 +103,13 @@ public async Task UpdateMachineLearningQuotas_UpdateQuotas() { Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs", QuotaBasePropertiesType = "Microsoft.MachineLearningServices/workspaces/quotas", -Limit = 100, +Limit = 100L, Unit = MachineLearningQuotaUnit.Count, },new MachineLearningQuotaProperties() { Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs", QuotaBasePropertiesType = "Microsoft.MachineLearningServices/workspaces/quotas", -Limit = 200, +Limit = 200L, Unit = MachineLearningQuotaUnit.Count, } }, diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricAccessControlListCollection.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricAccessControlListCollection.cs index 6ad378213ef78..db894fc4c4c40 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricAccessControlListCollection.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricAccessControlListCollection.cs @@ -52,7 +52,7 @@ public async Task CreateOrUpdate_AccessControlListsCreateMaximumSetGen() new AccessControlListMatchConfiguration() { MatchConfigurationName = "example-match", -SequenceNumber = 123, +SequenceNumber = 123L, IPAddressType = NetworkFabricIPAddressType.IPv4, MatchConditions = { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricAccessControlListResource.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricAccessControlListResource.cs index 18197ddd405a0..b1862a39848ff 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricAccessControlListResource.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricAccessControlListResource.cs @@ -79,7 +79,7 @@ public async Task Update_AccessControlListsUpdateMaximumSetGen() new AccessControlListMatchConfiguration() { MatchConfigurationName = "example-match", -SequenceNumber = 123, +SequenceNumber = 123L, IPAddressType = NetworkFabricIPAddressType.IPv4, MatchConditions = { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricCollection.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricCollection.cs index c5d669dc540a7..c0f693ff6abe6 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricCollection.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricCollection.cs @@ -41,7 +41,7 @@ public async Task CreateOrUpdate_NetworkFabricsCreateMaximumSetGen() // invoke the operation string networkFabricName = "example-fabric"; - NetworkFabricData data = new NetworkFabricData(new AzureLocation("eastuseuap"), "M4-A400-A100-C16-aa", new ResourceIdentifier("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-fabricController"), 8, "10.18.0.0/19", 29249, new TerminalServerConfiguration() + NetworkFabricData data = new NetworkFabricData(new AzureLocation("eastuseuap"), "M4-A400-A100-C16-aa", new ResourceIdentifier("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-fabricController"), 8, "10.18.0.0/19", 29249L, new TerminalServerConfiguration() { PrimaryIPv4Prefix = "10.0.0.12/30", PrimaryIPv6Prefix = "4FFE:FFFF:0:CD30::a8/127", @@ -91,7 +91,7 @@ public async Task CreateOrUpdate_NetworkFabricsCreateMaximumSetGen() SecondaryIPv6Prefix = "6FFE:FFFF:0:CD30::ac/127", Mtu = 1501, VlanId = 3001, - PeerAsn = 1235, + PeerAsn = 1235L, BfdConfiguration = new BfdConfiguration() { IntervalInMilliSeconds = 300, @@ -139,7 +139,7 @@ public async Task CreateOrUpdate_NetworkFabricsCreateMaximumSetGen() SecondaryIPv6Prefix = "2FFE:FFFF:0:CD30::ac/126", Mtu = 1500, VlanId = 3000, - PeerAsn = 61234, + PeerAsn = 61234L, BfdConfiguration = new BfdConfiguration() { IntervalInMilliSeconds = 300, diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricExternalNetworkCollection.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricExternalNetworkCollection.cs index fa3399822c6ff..131dfc7d2857d 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricExternalNetworkCollection.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricExternalNetworkCollection.cs @@ -90,7 +90,7 @@ public async Task CreateOrUpdate_ExternalNetworksCreateMaximumSetGen() { Mtu = 1500, VlanId = 1001, - PeerAsn = 65047, + PeerAsn = 65047L, BfdConfiguration = new BfdConfiguration() { IntervalInMilliSeconds = 300, diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricExternalNetworkResource.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricExternalNetworkResource.cs index 077de1a1e813c..ab5fea46dfc75 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricExternalNetworkResource.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricExternalNetworkResource.cs @@ -120,7 +120,7 @@ public async Task Update_ExternalNetworksUpdateMaximumSetGen() { Mtu = 1500, VlanId = 1001, - PeerAsn = 65047, + PeerAsn = 65047L, BfdConfiguration = new BfdConfiguration() { IntervalInMilliSeconds = 300, diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPCommunityCollection.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPCommunityCollection.cs index 284c9d1d603fb..51cb56623bd73 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPCommunityCollection.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPCommunityCollection.cs @@ -46,7 +46,7 @@ public async Task CreateOrUpdate_IpCommunitiesCreateMaximumSetGen() Annotation = "annotation", IPCommunityRules = { -new IPCommunityRule(CommunityActionType.Permit,4155123341,new string[] +new IPCommunityRule(CommunityActionType.Permit,4155123341L,new string[] { "1:1" }) diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPCommunityResource.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPCommunityResource.cs index 29c38c9d64f96..702415518a12c 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPCommunityResource.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPCommunityResource.cs @@ -73,7 +73,7 @@ public async Task Update_IpCommunitiesUpdateMaximumSetGen() { IPCommunityRules = { -new IPCommunityRule(CommunityActionType.Permit,4155123341,new string[] +new IPCommunityRule(CommunityActionType.Permit,4155123341L,new string[] { "1:1" }) diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPExtendedCommunityCollection.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPExtendedCommunityCollection.cs index 26e6f5432842f..67fe4b534315f 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPExtendedCommunityCollection.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPExtendedCommunityCollection.cs @@ -43,7 +43,7 @@ public async Task CreateOrUpdate_IpExtendedCommunitiesCreateMaximumSetGen() string ipExtendedCommunityName = "example-ipExtendedCommunity"; NetworkFabricIPExtendedCommunityData data = new NetworkFabricIPExtendedCommunityData(new AzureLocation("eastus"), new IPExtendedCommunityRule[] { -new IPExtendedCommunityRule(CommunityActionType.Permit,4155123341,new string[] +new IPExtendedCommunityRule(CommunityActionType.Permit,4155123341L,new string[] { "1234:2345" }) diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPExtendedCommunityResource.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPExtendedCommunityResource.cs index c201a2a7b2452..b39b284014b57 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPExtendedCommunityResource.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPExtendedCommunityResource.cs @@ -73,7 +73,7 @@ public async Task Update_IpExtendedCommunitiesUpdateMaximumSetGen() { IPExtendedCommunityRules = { -new IPExtendedCommunityRule(CommunityActionType.Permit,4155123341,new string[] +new IPExtendedCommunityRule(CommunityActionType.Permit,4155123341L,new string[] { "1234:2345" }) diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPPrefixCollection.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPPrefixCollection.cs index 7d0b21469582c..7408b45f5e96b 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPPrefixCollection.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPPrefixCollection.cs @@ -46,7 +46,7 @@ public async Task CreateOrUpdate_IpPrefixesCreateMaximumSetGen() Annotation = "annotation", IPPrefixRules = { -new IPPrefixRule(CommunityActionType.Permit,4155123341,"10.10.10.10/30") +new IPPrefixRule(CommunityActionType.Permit,4155123341L,"10.10.10.10/30") { Condition = IPPrefixRuleCondition.GreaterThanOrEqualTo, SubnetMaskLength = "10", diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPPrefixResource.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPPrefixResource.cs index d8466449677a9..38f4e81ac64fd 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPPrefixResource.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricIPPrefixResource.cs @@ -74,7 +74,7 @@ public async Task Update_IpPrefixesUpdateMaximumSetGen() Annotation = "annotation", IPPrefixRules = { -new IPPrefixRule(CommunityActionType.Permit,4155123341,"10.10.10.10/30") +new IPPrefixRule(CommunityActionType.Permit,4155123341L,"10.10.10.10/30") { Condition = IPPrefixRuleCondition.GreaterThanOrEqualTo, SubnetMaskLength = "10", diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricInternalNetworkCollection.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricInternalNetworkCollection.cs index 4bf75da77eeb7..4b8a41338bf7e 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricInternalNetworkCollection.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricInternalNetworkCollection.cs @@ -85,7 +85,7 @@ public async Task CreateOrUpdate_InternalNetworksCreateMaximumSetGen() DefaultRouteOriginate = NetworkFabricBooleanValue.True, AllowAS = 10, AllowASOverride = AllowASOverride.Enable, - PeerAsn = 61234, + PeerAsn = 61234L, IPv4ListenRangePrefixes = { "10.1.0.0/25" diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricInternalNetworkResource.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricInternalNetworkResource.cs index 82a869e4e8ef6..350f04a05b122 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricInternalNetworkResource.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricInternalNetworkResource.cs @@ -113,7 +113,7 @@ public async Task Update_InternalNetworksUpdateMaximumSetGen() DefaultRouteOriginate = NetworkFabricBooleanValue.True, AllowAS = 10, AllowASOverride = AllowASOverride.Enable, - PeerAsn = 61234, + PeerAsn = 61234L, IPv4ListenRangePrefixes = { "10.1.0.0/25" diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricResource.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricResource.cs index 985eecef53342..1ace5854e3475 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricResource.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricResource.cs @@ -76,7 +76,7 @@ public async Task Update_NetworkFabricsUpdateMaximumSetGen() ServerCountPerRack = 10, IPv4Prefix = "10.18.0.0/17", IPv6Prefix = "3FFE:FFFF:0:CD40::/60", - FabricAsn = 12345, + FabricAsn = 12345L, TerminalServerConfiguration = new NetworkFabricPatchablePropertiesTerminalServerConfiguration() { PrimaryIPv4Prefix = "10.0.0.12/30", @@ -131,7 +131,7 @@ public async Task Update_NetworkFabricsUpdateMaximumSetGen() SecondaryIPv6Prefix = "6FFE:FFFF:0:CD30::ac/127", Mtu = 1501, VlanId = 3001, - PeerAsn = 1235, + PeerAsn = 1235L, BfdConfiguration = new BfdConfiguration() { IntervalInMilliSeconds = 300, @@ -181,7 +181,7 @@ public async Task Update_NetworkFabricsUpdateMaximumSetGen() SecondaryIPv6Prefix = "2FFE:FFFF:0:CD30::ac/126", Mtu = 1500, VlanId = 3000, - PeerAsn = 61234, + PeerAsn = 61234L, BfdConfiguration = new BfdConfiguration() { IntervalInMilliSeconds = 300, diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricRoutePolicyCollection.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricRoutePolicyCollection.cs index e43cf44c63768..c0d0a11308b3b 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricRoutePolicyCollection.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricRoutePolicyCollection.cs @@ -47,7 +47,7 @@ public async Task CreateOrUpdate_RoutePoliciesCreateMaximumSetGen() DefaultAction = CommunityActionType.Deny, Statements = { -new RoutePolicyStatementProperties(7,new StatementConditionProperties() +new RoutePolicyStatementProperties(7L,new StatementConditionProperties() { RoutePolicyConditionType = RoutePolicyConditionType.Or, IPPrefixId = new ResourceIdentifier("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/ipPrefixes/example-ipPrefix"), @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_RoutePoliciesCreateMaximumSetGen() }, },new StatementActionProperties(RoutePolicyActionType.Permit) { -LocalPreference = 20, +LocalPreference = 20L, IPCommunityProperties = new ActionIPCommunityProperties() { DeleteIPCommunityIds = diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricRoutePolicyResource.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricRoutePolicyResource.cs index bf458a2c3f1b2..0194c89238900 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricRoutePolicyResource.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkFabricRoutePolicyResource.cs @@ -74,7 +74,7 @@ public async Task Update_RoutePoliciesUpdateMaximumSetGen() DefaultAction = CommunityActionType.Deny, Statements = { -new RoutePolicyStatementProperties(7,new StatementConditionProperties() +new RoutePolicyStatementProperties(7L,new StatementConditionProperties() { RoutePolicyConditionType = RoutePolicyConditionType.Or, IPPrefixId = new ResourceIdentifier("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/ipPrefixes/example-ipPrefix"), @@ -88,7 +88,7 @@ public async Task Update_RoutePoliciesUpdateMaximumSetGen() }, },new StatementActionProperties(RoutePolicyActionType.Permit) { -LocalPreference = 20, +LocalPreference = 20L, IPCommunityProperties = new ActionIPCommunityProperties() { DeleteIPCommunityIds = diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkTapRuleCollection.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkTapRuleCollection.cs index f2aba6126ea9f..ea4e0d405b809 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkTapRuleCollection.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkTapRuleCollection.cs @@ -51,7 +51,7 @@ public async Task CreateOrUpdate_NetworkTapRulesCreateMaximumSetGen() new NetworkTapRuleMatchConfiguration() { MatchConfigurationName = "config1", -SequenceNumber = 10, +SequenceNumber = 10L, IPAddressType = NetworkFabricIPAddressType.IPv4, MatchConditions = { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkTapRuleResource.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkTapRuleResource.cs index 016041a020989..e9ac289d6c529 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkTapRuleResource.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkTapRuleResource.cs @@ -79,7 +79,7 @@ public async Task Update_NetworkTapRulesUpdateMaximumSetGen() new NetworkTapRuleMatchConfiguration() { MatchConfigurationName = "config1", -SequenceNumber = 10, +SequenceNumber = 10L, IPAddressType = NetworkFabricIPAddressType.IPv4, MatchConditions = { diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkToNetworkInterconnectCollection.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkToNetworkInterconnectCollection.cs index 57d562551b337..8c57a53eed955 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkToNetworkInterconnectCollection.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkToNetworkInterconnectCollection.cs @@ -55,7 +55,7 @@ public async Task CreateOrUpdate_NetworkToNetworkInterconnectsCreateMaximumSetGe }, OptionBLayer3Configuration = new NetworkToNetworkInterconnectOptionBLayer3Configuration() { - PeerAsn = 61234, + PeerAsn = 61234L, VlanId = 1234, PrimaryIPv4Prefix = "10.0.0.12/30", PrimaryIPv6Prefix = "4FFE:FFFF:0:CD30::a8/127", diff --git a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkToNetworkInterconnectResource.cs b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkToNetworkInterconnectResource.cs index 0be24159dedfc..f73090470b592 100644 --- a/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkToNetworkInterconnectResource.cs +++ b/sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/samples/Generated/Samples/Sample_NetworkToNetworkInterconnectResource.cs @@ -82,7 +82,7 @@ public async Task Update_NetworkToNetworkInterconnectsUpdateMaximumSetGen() }, OptionBLayer3Configuration = new OptionBLayer3Configuration() { - PeerAsn = 2345, + PeerAsn = 2345L, VlanId = 1235, PrimaryIPv4Prefix = "20.0.0.12/29", PrimaryIPv6Prefix = "4FFE:FFFF:0:CD30::a8/127", diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaAssetFilterCollection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaAssetFilterCollection.cs index 887e1422fd6b3..5fc93902edb14 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaAssetFilterCollection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaAssetFilterCollection.cs @@ -196,11 +196,11 @@ public async Task CreateOrUpdate_CreateAnAssetFilter() { PresentationTimeRange = new PresentationTimeRange() { - StartTimestamp = 0, - EndTimestamp = 170000000, - PresentationWindowDuration = 9223372036854775000, - LiveBackoffDuration = 0, - Timescale = 10000000, + StartTimestamp = 0L, + EndTimestamp = 170000000L, + PresentationWindowDuration = 9223372036854775000L, + LiveBackoffDuration = 0L, + Timescale = 10000000L, ForceEndTimestamp = false, }, FirstQualityBitrate = 128000, diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaAssetFilterResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaAssetFilterResource.cs index 426594d7ccd82..078e72364364a 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaAssetFilterResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaAssetFilterResource.cs @@ -105,11 +105,11 @@ public async Task Update_UpdateAnAssetFilter() { PresentationTimeRange = new PresentationTimeRange() { - StartTimestamp = 10, - EndTimestamp = 170000000, - PresentationWindowDuration = 9223372036854775000, - LiveBackoffDuration = 0, - Timescale = 10000000, + StartTimestamp = 10L, + EndTimestamp = 170000000L, + PresentationWindowDuration = 9223372036854775000L, + LiveBackoffDuration = 0L, + Timescale = 10000000L, ForceEndTimestamp = false, }, FirstQualityBitrate = 128000, diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaServicesAccountFilterCollection.cs b/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaServicesAccountFilterCollection.cs index 70507eeeb2275..5b682b2f2af68 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaServicesAccountFilterCollection.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaServicesAccountFilterCollection.cs @@ -191,11 +191,11 @@ public async Task CreateOrUpdate_CreateAnAccountFilter() { PresentationTimeRange = new PresentationTimeRange() { - StartTimestamp = 0, - EndTimestamp = 170000000, - PresentationWindowDuration = 9223372036854775000, - LiveBackoffDuration = 0, - Timescale = 10000000, + StartTimestamp = 0L, + EndTimestamp = 170000000L, + PresentationWindowDuration = 9223372036854775000L, + LiveBackoffDuration = 0L, + Timescale = 10000000L, ForceEndTimestamp = false, }, FirstQualityBitrate = 128000, diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaServicesAccountFilterResource.cs b/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaServicesAccountFilterResource.cs index e13baead4a554..c456e1e590467 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaServicesAccountFilterResource.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/samples/Generated/Samples/Sample_MediaServicesAccountFilterResource.cs @@ -102,11 +102,11 @@ public async Task Update_UpdateAnAccountFilter() { PresentationTimeRange = new PresentationTimeRange() { - StartTimestamp = 10, - EndTimestamp = 170000000, - PresentationWindowDuration = 9223372036854775000, - LiveBackoffDuration = 0, - Timescale = 10000000, + StartTimestamp = 10L, + EndTimestamp = 170000000L, + PresentationWindowDuration = 9223372036854775000L, + LiveBackoffDuration = 0L, + Timescale = 10000000L, ForceEndTimestamp = false, }, FirstQualityBitrate = 128000, diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/samples/Generated/Samples/Sample_MobileNetworkPacketCaptureCollection.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/samples/Generated/Samples/Sample_MobileNetworkPacketCaptureCollection.cs index 316a1cbb80070..eec47e8b4c222 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/samples/Generated/Samples/Sample_MobileNetworkPacketCaptureCollection.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/samples/Generated/Samples/Sample_MobileNetworkPacketCaptureCollection.cs @@ -46,8 +46,8 @@ public async Task CreateOrUpdate_CreatePacketCapture() { "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestADN" }, - BytesToCapturePerPacket = 10000, - TotalBytesPerSession = 100000, + BytesToCapturePerPacket = 10000L, + TotalBytesPerSession = 100000L, TimeLimitInSeconds = 100, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, packetCaptureName, data); diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/samples/Generated/Samples/Sample_MobileNetworkPacketCaptureResource.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/samples/Generated/Samples/Sample_MobileNetworkPacketCaptureResource.cs index 62568593ecbef..7d6fff0d004bd 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/samples/Generated/Samples/Sample_MobileNetworkPacketCaptureResource.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/samples/Generated/Samples/Sample_MobileNetworkPacketCaptureResource.cs @@ -44,8 +44,8 @@ public async Task Update_CreatePacketCapture() { "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestADN" }, - BytesToCapturePerPacket = 10000, - TotalBytesPerSession = 100000, + BytesToCapturePerPacket = 10000L, + TotalBytesPerSession = 100000L, TimeLimitInSeconds = 100, }; ArmOperation lro = await mobileNetworkPacketCapture.UpdateAsync(WaitUntil.Completed, data); diff --git a/sdk/mongocluster/Azure.ResourceManager.MongoCluster/samples/Generated/Samples/Sample_MongoClusterCollection.cs b/sdk/mongocluster/Azure.ResourceManager.MongoCluster/samples/Generated/Samples/Sample_MongoClusterCollection.cs index 264ae8e86888f..89210ba451af8 100644 --- a/sdk/mongocluster/Azure.ResourceManager.MongoCluster/samples/Generated/Samples/Sample_MongoClusterCollection.cs +++ b/sdk/mongocluster/Azure.ResourceManager.MongoCluster/samples/Generated/Samples/Sample_MongoClusterCollection.cs @@ -158,7 +158,7 @@ public async Task CreateOrUpdate_CreatesANewMongoClusterResource() }, ServerVersion = "5.0", HighAvailabilityTargetMode = HighAvailabilityMode.SameZone, - StorageSizeGb = 128, + StorageSizeGb = 128L, ShardingShardCount = 1, ComputeTier = "M30", }, diff --git a/sdk/mongocluster/Azure.ResourceManager.MongoCluster/samples/Generated/Samples/Sample_MongoClusterResource.cs b/sdk/mongocluster/Azure.ResourceManager.MongoCluster/samples/Generated/Samples/Sample_MongoClusterResource.cs index 923f56a029418..395c6da7aec19 100644 --- a/sdk/mongocluster/Azure.ResourceManager.MongoCluster/samples/Generated/Samples/Sample_MongoClusterResource.cs +++ b/sdk/mongocluster/Azure.ResourceManager.MongoCluster/samples/Generated/Samples/Sample_MongoClusterResource.cs @@ -73,7 +73,7 @@ public async Task Update_UpdatesTheDiskSizeOnAMongoClusterResource() { Properties = new MongoClusterUpdateProperties() { - StorageSizeGb = 256, + StorageSizeGb = 256L, }, }; ArmOperation lro = await mongoCluster.UpdateAsync(WaitUntil.Completed, patch); @@ -201,7 +201,7 @@ public async Task Update_UpdatesAMongoClusterResource() ServerVersion = "5.0", PublicNetworkAccess = MongoClusterPublicNetworkAccess.Enabled, HighAvailabilityTargetMode = HighAvailabilityMode.SameZone, - StorageSizeGb = 256, + StorageSizeGb = 256L, ShardingShardCount = 4, ComputeTier = "M50", PreviewFeatures = diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/samples/Generated/Samples/Sample_ScheduledQueryRuleCollection.cs b/sdk/monitor/Azure.ResourceManager.Monitor/samples/Generated/Samples/Sample_ScheduledQueryRuleCollection.cs index c3c6b8ac705fb..672c33f34241e 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/samples/Generated/Samples/Sample_ScheduledQueryRuleCollection.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/samples/Generated/Samples/Sample_ScheduledQueryRuleCollection.cs @@ -217,8 +217,8 @@ public async Task CreateOrUpdate_CreateOrUpdateAScheduledQueryRuleForSingleResou Threshold = 70, FailingPeriods = new ConditionFailingPeriods() { -NumberOfEvaluationPeriods = 1, -MinFailingPeriodsToAlert = 1, +NumberOfEvaluationPeriods = 1L, +MinFailingPeriodsToAlert = 1L, }, } }, @@ -302,8 +302,8 @@ public async Task CreateOrUpdate_CreateOrUpdateAScheduledQueryRuleOnResourceGrou Threshold = 360, FailingPeriods = new ConditionFailingPeriods() { -NumberOfEvaluationPeriods = 1, -MinFailingPeriodsToAlert = 1, +NumberOfEvaluationPeriods = 1L, +MinFailingPeriodsToAlert = 1L, }, } }, @@ -396,8 +396,8 @@ public async Task CreateOrUpdate_CreateOrUpdateAScheduledQueryRuleOnSubscription Threshold = 70, FailingPeriods = new ConditionFailingPeriods() { -NumberOfEvaluationPeriods = 1, -MinFailingPeriodsToAlert = 1, +NumberOfEvaluationPeriods = 1L, +MinFailingPeriodsToAlert = 1L, }, } }, diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs index 26b9c101a9001..c905912275a48 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_CapacityPoolCollection.cs @@ -187,7 +187,7 @@ public async Task CreateOrUpdate_PoolsCreateOrUpdate() // invoke the operation string poolName = "pool1"; - CapacityPoolData data = new CapacityPoolData(new AzureLocation("eastus"), 4398046511104, NetAppFileServiceLevel.Premium) + CapacityPoolData data = new CapacityPoolData(new AzureLocation("eastus"), 4398046511104L, NetAppFileServiceLevel.Premium) { QosType = CapacityPoolQosType.Auto, }; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs index fa9c4ab4e8205..bae8a74ffe902 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeCollection.cs @@ -192,7 +192,7 @@ public async Task CreateOrUpdate_VolumesCreateOrUpdate() // invoke the operation string volumeName = "volume1"; - NetAppVolumeData data = new NetAppVolumeData(new AzureLocation("eastus"), "my-unique-file-path", 107374182400, new ResourceIdentifier("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) + NetAppVolumeData data = new NetAppVolumeData(new AzureLocation("eastus"), "my-unique-file-path", 107374182400L, new ResourceIdentifier("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { ServiceLevel = NetAppFileServiceLevel.Premium, }; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs index 9b0c7e1928c6b..55bcf71ab2c2f 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupCollection.cs @@ -270,7 +270,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() }, Volumes = { -new NetAppVolumeGroupVolume("test-ora-data1",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +new NetAppVolumeGroupVolume("test-ora-data1",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data1", Zones = @@ -305,7 +305,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data1", -},new NetAppVolumeGroupVolume("test-ora-data2",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data2",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data2", Zones = @@ -340,7 +340,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data2", -},new NetAppVolumeGroupVolume("test-ora-data3",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data3",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data3", Zones = @@ -375,7 +375,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data3", -},new NetAppVolumeGroupVolume("test-ora-data4",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data4",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data4", Zones = @@ -410,7 +410,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data4", -},new NetAppVolumeGroupVolume("test-ora-data5",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data5",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data5", Zones = @@ -445,7 +445,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data5", -},new NetAppVolumeGroupVolume("test-ora-data6",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data6",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data6", Zones = @@ -480,7 +480,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data6", -},new NetAppVolumeGroupVolume("test-ora-data7",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data7",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data7", Zones = @@ -515,7 +515,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data7", -},new NetAppVolumeGroupVolume("test-ora-data8",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data8",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data8", Zones = @@ -550,7 +550,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data8", -},new NetAppVolumeGroupVolume("test-ora-log",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-log",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-log", Zones = @@ -585,7 +585,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-log", -},new NetAppVolumeGroupVolume("test-ora-log-mirror",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-log-mirror",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-log-mirror", Zones = @@ -620,7 +620,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-log-mirror", -},new NetAppVolumeGroupVolume("test-ora-binary",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-binary",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-binary", Zones = @@ -655,7 +655,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-binary", -},new NetAppVolumeGroupVolume("test-ora-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-backup",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-backup", Zones = @@ -740,7 +740,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateSapHana() }, Volumes = { -new NetAppVolumeGroupVolume("test-data-mnt00001",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +new NetAppVolumeGroupVolume("test-data-mnt00001",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-data-mnt00001", ServiceLevel = NetAppFileServiceLevel.Premium, @@ -772,7 +772,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateSapHana() CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), VolumeSpecName = "data", -},new NetAppVolumeGroupVolume("test-log-mnt00001",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-log-mnt00001",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-log-mnt00001", ServiceLevel = NetAppFileServiceLevel.Premium, @@ -804,7 +804,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateSapHana() CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), VolumeSpecName = "log", -},new NetAppVolumeGroupVolume("test-shared",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-shared",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-shared", ServiceLevel = NetAppFileServiceLevel.Premium, @@ -836,7 +836,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateSapHana() CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), VolumeSpecName = "shared", -},new NetAppVolumeGroupVolume("test-data-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-data-backup",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-data-backup", ServiceLevel = NetAppFileServiceLevel.Premium, @@ -868,7 +868,7 @@ public async Task CreateOrUpdate_VolumeGroupsCreateSapHana() CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), VolumeSpecName = "data-backup", -},new NetAppVolumeGroupVolume("test-log-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-log-backup",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-log-backup", ServiceLevel = NetAppFileServiceLevel.Premium, diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupResource.cs index 8508cb632c326..5f5bad540ddff 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeGroupResource.cs @@ -113,7 +113,7 @@ public async Task Update_VolumeGroupsCreateOracle() }, Volumes = { -new NetAppVolumeGroupVolume("test-ora-data1",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +new NetAppVolumeGroupVolume("test-ora-data1",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data1", Zones = @@ -148,7 +148,7 @@ public async Task Update_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data1", -},new NetAppVolumeGroupVolume("test-ora-data2",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data2",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data2", Zones = @@ -183,7 +183,7 @@ public async Task Update_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data2", -},new NetAppVolumeGroupVolume("test-ora-data3",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data3",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data3", Zones = @@ -218,7 +218,7 @@ public async Task Update_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data3", -},new NetAppVolumeGroupVolume("test-ora-data4",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data4",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data4", Zones = @@ -253,7 +253,7 @@ public async Task Update_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data4", -},new NetAppVolumeGroupVolume("test-ora-data5",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data5",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data5", Zones = @@ -288,7 +288,7 @@ public async Task Update_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data5", -},new NetAppVolumeGroupVolume("test-ora-data6",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data6",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data6", Zones = @@ -323,7 +323,7 @@ public async Task Update_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data6", -},new NetAppVolumeGroupVolume("test-ora-data7",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data7",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data7", Zones = @@ -358,7 +358,7 @@ public async Task Update_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data7", -},new NetAppVolumeGroupVolume("test-ora-data8",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-data8",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-data8", Zones = @@ -393,7 +393,7 @@ public async Task Update_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-data8", -},new NetAppVolumeGroupVolume("test-ora-log",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-log",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-log", Zones = @@ -428,7 +428,7 @@ public async Task Update_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-log", -},new NetAppVolumeGroupVolume("test-ora-log-mirror",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-log-mirror",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-log-mirror", Zones = @@ -463,7 +463,7 @@ public async Task Update_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-log-mirror", -},new NetAppVolumeGroupVolume("test-ora-binary",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-binary",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-binary", Zones = @@ -498,7 +498,7 @@ public async Task Update_VolumeGroupsCreateOracle() ThroughputMibps = 10, CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), VolumeSpecName = "ora-binary", -},new NetAppVolumeGroupVolume("test-ora-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-ora-backup",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-ora-backup", Zones = @@ -580,7 +580,7 @@ public async Task Update_VolumeGroupsCreateSapHana() }, Volumes = { -new NetAppVolumeGroupVolume("test-data-mnt00001",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +new NetAppVolumeGroupVolume("test-data-mnt00001",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-data-mnt00001", ServiceLevel = NetAppFileServiceLevel.Premium, @@ -612,7 +612,7 @@ public async Task Update_VolumeGroupsCreateSapHana() CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), VolumeSpecName = "data", -},new NetAppVolumeGroupVolume("test-log-mnt00001",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-log-mnt00001",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-log-mnt00001", ServiceLevel = NetAppFileServiceLevel.Premium, @@ -644,7 +644,7 @@ public async Task Update_VolumeGroupsCreateSapHana() CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), VolumeSpecName = "log", -},new NetAppVolumeGroupVolume("test-shared",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-shared",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-shared", ServiceLevel = NetAppFileServiceLevel.Premium, @@ -676,7 +676,7 @@ public async Task Update_VolumeGroupsCreateSapHana() CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), VolumeSpecName = "shared", -},new NetAppVolumeGroupVolume("test-data-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-data-backup",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-data-backup", ServiceLevel = NetAppFileServiceLevel.Premium, @@ -708,7 +708,7 @@ public async Task Update_VolumeGroupsCreateSapHana() CapacityPoolResourceId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), ProximityPlacementGroupId = new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), VolumeSpecName = "data-backup", -},new NetAppVolumeGroupVolume("test-log-backup",107374182400,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) +},new NetAppVolumeGroupVolume("test-log-backup",107374182400L,new ResourceIdentifier("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")) { Name = "test-log-backup", ServiceLevel = NetAppFileServiceLevel.Premium, diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs index 6a79b8fcbf76a..0c1d949c43122 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleCollection.cs @@ -199,7 +199,7 @@ public async Task CreateOrUpdate_VolumeQuotaRulesCreate() string volumeQuotaRuleName = "rule-0004"; NetAppVolumeQuotaRuleData data = new NetAppVolumeQuotaRuleData(new AzureLocation("westus")) { - QuotaSizeInKiBs = 100005, + QuotaSizeInKiBs = 100005L, QuotaType = NetAppVolumeQuotaType.IndividualUserQuota, QuotaTarget = "1821", }; diff --git a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs index 7c0298b99bc84..480b87a5fbf40 100644 --- a/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs +++ b/sdk/netapp/Azure.ResourceManager.NetApp/samples/Generated/Samples/Sample_NetAppVolumeQuotaRuleResource.cs @@ -76,7 +76,7 @@ public async Task Update_VolumeQuotaRulesUpdate() // invoke the operation NetAppVolumeQuotaRulePatch patch = new NetAppVolumeQuotaRulePatch() { - QuotaSizeInKiBs = 100009, + QuotaSizeInKiBs = 100009L, }; ArmOperation lro = await netAppVolumeQuotaRule.UpdateAsync(WaitUntil.Completed, patch); NetAppVolumeQuotaRuleResource result = lro.Value; diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs index 24f836b4259af..59e637a4837a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs @@ -151,7 +151,7 @@ public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() string connectionName = "conn1"; BgpConnectionData data = new BgpConnectionData() { - PeerAsn = 20000, + PeerAsn = 20000L, PeerIP = "192.168.1.5", HubVirtualNetworkConnectionId = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubVirtualNetworkConnections/hubVnetConn1"), }; diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs index 02b38f5051708..bab4cc4199354 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs @@ -73,7 +73,7 @@ public async Task Update_VirtualHubRouteTableV2Put() // invoke the operation BgpConnectionData data = new BgpConnectionData() { - PeerAsn = 20000, + PeerAsn = 20000L, PeerIP = "192.168.1.5", HubVirtualNetworkConnectionId = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubVirtualNetworkConnections/hubVnetConn1"), }; diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs index 76b4f0dcc930a..e69e1db6e4745 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs @@ -151,7 +151,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuitPeerings() string peeringName = "AzurePrivatePeering"; ExpressRouteCircuitPeeringData data = new ExpressRouteCircuitPeeringData() { - PeerASN = 200, + PeerASN = 200L, PrimaryPeerAddressPrefix = "192.168.16.252/30", SecondaryPeerAddressPrefix = "192.168.18.252/30", VlanId = 200, diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs index 0c93f4154d8d4..c107218758d98 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs @@ -100,7 +100,7 @@ public async Task Update_CreateExpressRouteCircuitPeerings() // invoke the operation ExpressRouteCircuitPeeringData data = new ExpressRouteCircuitPeeringData() { - PeerASN = 200, + PeerASN = 200L, PrimaryPeerAddressPrefix = "192.168.16.252/30", SecondaryPeerAddressPrefix = "192.168.18.252/30", VlanId = 200, diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs index faab00524f241..78267f51f5d27 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs @@ -189,7 +189,7 @@ public async Task CreateOrUpdate_ExpressRouteCrossConnectionBgpPeeringCreate() string peeringName = "AzurePrivatePeering"; ExpressRouteCrossConnectionPeeringData data = new ExpressRouteCrossConnectionPeeringData() { - PeerASN = 200, + PeerASN = 200L, PrimaryPeerAddressPrefix = "192.168.16.252/30", SecondaryPeerAddressPrefix = "192.168.18.252/30", VlanId = 200, diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs index 1c0961002b690..d3037b1ca75da 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs @@ -190,7 +190,7 @@ public async Task Update_ExpressRouteCrossConnectionBgpPeeringCreate() // invoke the operation ExpressRouteCrossConnectionPeeringData data = new ExpressRouteCrossConnectionPeeringData() { - PeerASN = 200, + PeerASN = 200L, PrimaryPeerAddressPrefix = "192.168.16.252/30", SecondaryPeerAddressPrefix = "192.168.18.252/30", VlanId = 200, diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs index ee7ceb08d804c..13ee3057b3a50 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs @@ -173,7 +173,7 @@ public async Task CreateOrUpdate_CreateNetworkVirtualAppliance() { "https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig" }, - VirtualApplianceAsn = 10000, + VirtualApplianceAsn = 10000L, NetworkInterfaceConfigurations = { new VirtualApplianceNetworkInterfaceConfiguration() diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs index f9aff5ecb5a66..9925712e17c4a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs @@ -45,8 +45,8 @@ public async Task CreateOrUpdate_NetworkVirtualApplianceConnectionPut() NetworkVirtualApplianceConnectionData data = new NetworkVirtualApplianceConnectionData() { NamePropertiesName = "connection1", - Asn = 64512, - TunnelIdentifier = 0, + Asn = 64512L, + TunnelIdentifier = 0L, BgpPeerAddress = { "169.254.16.13","169.254.16.14" diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs index db318f30491df..fcbc8f6cd215d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs @@ -42,8 +42,8 @@ public async Task Update_NetworkVirtualApplianceConnectionPut() NetworkVirtualApplianceConnectionData data = new NetworkVirtualApplianceConnectionData() { NamePropertiesName = "connection1", - Asn = 64512, - TunnelIdentifier = 0, + Asn = 64512L, + TunnelIdentifier = 0L, BgpPeerAddress = { "169.254.16.13","169.254.16.14" diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs index ecaad128fd9f0..67a4295cdea1e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs @@ -48,8 +48,8 @@ public async Task CreateOrUpdate_CreatePacketCapture() FilePath = "D:\\capture\\pc1.cap", }) { - BytesToCapturePerPacket = 10000, - TotalBytesPerSession = 100000, + BytesToCapturePerPacket = 10000L, + TotalBytesPerSession = 100000L, TimeLimitInSeconds = 100, Filters = { diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs index b028fb88c2266..9c6e31c9c3a9c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs @@ -45,8 +45,8 @@ public async Task Update_CreatePacketCapture() FilePath = "D:\\capture\\pc1.cap", }) { - BytesToCapturePerPacket = 10000, - TotalBytesPerSession = 100000, + BytesToCapturePerPacket = 10000L, + TotalBytesPerSession = 100000L, TimeLimitInSeconds = 100, Filters = { diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs index 6dd296209ea67..26a1baa7458bd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs @@ -79,14 +79,14 @@ public async Task CreateOrUpdate_UpdateVirtualNetworkGateway() { new RadiusServer("10.2.0.0") { -RadiusServerScore = 20, +RadiusServerScore = 20L, RadiusServerSecret = "radiusServerSecret", } }, }, BgpSettings = new BgpSettings() { - Asn = 65515, + Asn = 65515L, BgpPeeringAddress = "10.0.1.30", PeerWeight = 0, }, diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs index f7582b8c6194a..fcea91224cd84 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs @@ -66,7 +66,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkGatewayConnectionS2S() }, BgpSettings = new BgpSettings() { - Asn = 65514, + Asn = 65514L, BgpPeeringAddress = "10.0.1.30", PeerWeight = 0, }, diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs index dfa5f67984544..d2191fa1f4a7c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs @@ -151,7 +151,7 @@ public async Task CreateOrUpdate_CreateVirtualRouterPeering() string peeringName = "peering1"; VirtualRouterPeeringData data = new VirtualRouterPeeringData() { - PeerAsn = 20000, + PeerAsn = 20000L, PeerIP = "192.168.1.5", }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, peeringName, data); diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs index b7381d372424a..a7feb4a258fe5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs @@ -99,7 +99,7 @@ public async Task Update_CreateVirtualRouterPeering() // invoke the operation VirtualRouterPeeringData data = new VirtualRouterPeeringData() { - PeerAsn = 20000, + PeerAsn = 20000L, PeerIP = "192.168.1.5", }; ArmOperation lro = await virtualRouterPeering.UpdateAsync(WaitUntil.Completed, data); diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs index f62d831a55bbe..cfd54d39e2aba 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs @@ -179,7 +179,7 @@ public async Task CreateOrUpdate_VpnGatewayPut() }, BgpSettings = new BgpSettings() { - Asn = 65515, + Asn = 65515L, PeerWeight = 0, BgpPeeringAddresses = { diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs index 63139d50313de..28c7569d4a8de 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs @@ -193,7 +193,7 @@ public async Task CreateOrUpdate_VpnServerConfigurationCreate() { new RadiusServer("10.0.0.0") { -RadiusServerScore = 25, +RadiusServerScore = 25L, RadiusServerSecret = "radiusServerSecret", } }, diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs index 9368fe6f73493..8c364f08a82d7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs @@ -168,7 +168,7 @@ public async Task CreateOrUpdate_VpnSiteCreate() Fqdn = "link1.vpnsite1.contoso.com", BgpProperties = new VpnLinkBgpSettings() { -Asn = 1234, +Asn = 1234L, BgpPeeringAddress = "192.168.0.0", }, Name = "vpnSiteLink1", diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudAgentPoolCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudAgentPoolCollection.cs index 6b2d8d989b61b..f2c147e6179c3 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudAgentPoolCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudAgentPoolCollection.cs @@ -187,7 +187,7 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesClusterAgentPool() // invoke the operation string agentPoolName = "agentPoolName"; - NetworkCloudAgentPoolData data = new NetworkCloudAgentPoolData(new AzureLocation("location"), 3, NetworkCloudAgentPoolMode.System, "NC_M16_v1") + NetworkCloudAgentPoolData data = new NetworkCloudAgentPoolData(new AzureLocation("location"), 3L, NetworkCloudAgentPoolMode.System, "NC_M16_v1") { ExtendedLocation = new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), AdministratorConfiguration = new AdministratorConfiguration() @@ -198,7 +198,7 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesClusterAgentPool() new NetworkCloudSshPublicKey("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm") }, }, - AgentOptions = new NetworkCloudAgentConfiguration(96) + AgentOptions = new NetworkCloudAgentConfiguration(96L) { HugepagesSize = HugepagesSize.OneG, }, diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudAgentPoolResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudAgentPoolResource.cs index 5ea4d09299386..08634ce262672 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudAgentPoolResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudAgentPoolResource.cs @@ -105,7 +105,7 @@ public async Task Update_PatchKubernetesClusterAgentPool() ["key1"] = "myvalue1", ["key2"] = "myvalue2", }, - Count = 3, + Count = 3L, UpgradeMaxSurge = "1", }; ArmOperation lro = await networkCloudAgentPool.UpdateAsync(WaitUntil.Completed, patch); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs index 787a2c33bd22d..2fe990ef878fc 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs @@ -301,7 +301,7 @@ public async Task RunCommand_RunCommandOnBareMetalMachine() NetworkCloudBareMetalMachineResource networkCloudBareMetalMachine = client.GetNetworkCloudBareMetalMachineResource(networkCloudBareMetalMachineResourceId); // invoke the operation - BareMetalMachineRunCommandContent content = new BareMetalMachineRunCommandContent(60, "cHdkCg==") + BareMetalMachineRunCommandContent content = new BareMetalMachineRunCommandContent(60L, "cHdkCg==") { Arguments = { @@ -345,7 +345,7 @@ public async Task RunDataExtracts_RunDataExtractionOnBareMetalMachine() "SysInfo","TTYLog" }, } - }, 60); + }, 60L); ArmOperation lro = await networkCloudBareMetalMachine.RunDataExtractsAsync(WaitUntil.Completed, content); NetworkCloudOperationStatusResult result = lro.Value; @@ -389,7 +389,7 @@ public async Task RunReadCommands_RunAndRetrieveOutputFromReadOnlyCommandsOnBare "192.168.0.99","-c","3" }, } - }, 60); + }, 60L); ArmOperation lro = await networkCloudBareMetalMachine.RunReadCommandsAsync(WaitUntil.Completed, content); NetworkCloudOperationStatusResult result = lro.Value; diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkCollection.cs index 1e40c45cde158..2e3f57564a043 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkCollection.cs @@ -191,7 +191,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCloudServicesNetwork() { new EndpointDependency("https://storageaccountex.blob.core.windows.net") { -Port = 443, +Port = 443L, } }) }, diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkResource.cs index 4d95201c72281..db158b34fe361 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudCloudServicesNetworkResource.cs @@ -141,7 +141,7 @@ public async Task Update_PatchCloudServicesNetwork() { new EndpointDependency("https://storageaccountex.blob.core.windows.net") { -Port = 443, +Port = 443L, } }) }, diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterCollection.cs index 0d6b1f1a84129..fb7a3366851cc 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterCollection.cs @@ -190,14 +190,14 @@ public async Task CreateOrUpdate_CreateOrUpdateCluster() new BareMetalMachineConfiguration(new AdministrativeCredentials("username") { Password = "{password}", -},"AA:BB:CC:DD:EE:FF","00:BB:CC:DD:EE:FF",1,"BM1219XXX") +},"AA:BB:CC:DD:EE:FF","00:BB:CC:DD:EE:FF",1L,"BM1219XXX") { MachineDetails = "extraDetails", MachineName = "bmmName1", },new BareMetalMachineConfiguration(new AdministrativeCredentials("username") { Password = "{password}", -},"AA:BB:CC:DD:EE:00","00:BB:CC:DD:EE:00",2,"BM1219YYY") +},"AA:BB:CC:DD:EE:00","00:BB:CC:DD:EE:00",2L,"BM1219YYY") { MachineDetails = "extraDetails", MachineName = "bmmName2", @@ -209,7 +209,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCluster() new StorageApplianceConfiguration(new AdministrativeCredentials("username") { Password = "{password}", -},1,"BM1219XXX") +},1L,"BM1219XXX") { StorageApplianceName = "vmName", } @@ -222,7 +222,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCluster() { Password = "{password}", }, - ComputeDeploymentThreshold = new ValidationThreshold(ValidationThresholdGrouping.PerCluster, ValidationThresholdType.PercentSuccess, 90), + ComputeDeploymentThreshold = new ValidationThreshold(ValidationThresholdGrouping.PerCluster, ValidationThresholdType.PercentSuccess, 90L), ComputeRackDefinitions = { new NetworkCloudRackDefinition(new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName"),"AA1234",new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName")) @@ -232,14 +232,14 @@ public async Task CreateOrUpdate_CreateOrUpdateCluster() new BareMetalMachineConfiguration(new AdministrativeCredentials("username") { Password = "{password}", -},"AA:BB:CC:DD:EE:FF","00:BB:CC:DD:EE:FF",1,"BM1219XXX") +},"AA:BB:CC:DD:EE:FF","00:BB:CC:DD:EE:FF",1L,"BM1219XXX") { MachineDetails = "extraDetails", MachineName = "bmmName1", },new BareMetalMachineConfiguration(new AdministrativeCredentials("username") { Password = "{password}", -},"AA:BB:CC:DD:EE:00","00:BB:CC:DD:EE:00",2,"BM1219YYY") +},"AA:BB:CC:DD:EE:00","00:BB:CC:DD:EE:00",2L,"BM1219YYY") { MachineDetails = "extraDetails", MachineName = "bmmName2", @@ -251,7 +251,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCluster() new StorageApplianceConfiguration(new AdministrativeCredentials("username") { Password = "{password}", -},1,"BM1219XXX") +},1L,"BM1219XXX") { StorageApplianceName = "vmName", } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationCollection.cs index 34f4a58b456df..3c1c934864505 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationCollection.cs @@ -187,7 +187,7 @@ public async Task CreateOrUpdate_CreateOrUpdateMetricsConfigurationOfCluster() // invoke the operation string metricsConfigurationName = "default"; - NetworkCloudClusterMetricsConfigurationData data = new NetworkCloudClusterMetricsConfigurationData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), 15) + NetworkCloudClusterMetricsConfigurationData data = new NetworkCloudClusterMetricsConfigurationData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), 15L) { EnabledMetrics = { diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationResource.cs index 28cc723928943..4adf2da46ee3f 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterMetricsConfigurationResource.cs @@ -105,7 +105,7 @@ public async Task Update_PatchMetricsConfigurationOfCluster() ["key1"] = "myvalue1", ["key2"] = "myvalue2", }, - CollectionInterval = 15, + CollectionInterval = 15L, EnabledMetrics = { "metric1","metric2" diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterResource.cs index 633154573b70f..8a32ef45818fb 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterResource.cs @@ -142,14 +142,14 @@ public async Task Update_PatchClusterAggregatorOrSingleRackDefinition() new BareMetalMachineConfiguration(new AdministrativeCredentials("username") { Password = "{password}", -},"AA:BB:CC:DD:EE:FF","00:BB:CC:DD:EE:FF",1,"BM1219XXX") +},"AA:BB:CC:DD:EE:FF","00:BB:CC:DD:EE:FF",1L,"BM1219XXX") { MachineDetails = "extraDetails", MachineName = "bmmName1", },new BareMetalMachineConfiguration(new AdministrativeCredentials("username") { Password = "{password}", -},"AA:BB:CC:DD:EE:00","00:BB:CC:DD:EE:00",2,"BM1219YYY") +},"AA:BB:CC:DD:EE:00","00:BB:CC:DD:EE:00",2L,"BM1219YYY") { MachineDetails = "extraDetails", MachineName = "bmmName2", @@ -161,13 +161,13 @@ public async Task Update_PatchClusterAggregatorOrSingleRackDefinition() new StorageApplianceConfiguration(new AdministrativeCredentials("username") { Password = "{password}", -},1,"BM1219XXX") +},1L,"BM1219XXX") { StorageApplianceName = "vmName", } }, }, - ComputeDeploymentThreshold = new ValidationThreshold(ValidationThresholdGrouping.PerCluster, ValidationThresholdType.PercentSuccess, 90), + ComputeDeploymentThreshold = new ValidationThreshold(ValidationThresholdGrouping.PerCluster, ValidationThresholdType.PercentSuccess, 90L), }; ArmOperation lro = await networkCloudCluster.UpdateAsync(WaitUntil.Completed, patch); NetworkCloudClusterResource result = lro.Value; diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterCollection.cs index b974843a605ae..4e686e6fea3f1 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterCollection.cs @@ -184,7 +184,7 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesCluster() // invoke the operation string kubernetesClusterName = "kubernetesClusterName"; - NetworkCloudKubernetesClusterData data = new NetworkCloudKubernetesClusterData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), new ControlPlaneNodeConfiguration(3, "NC_G4_v1") + NetworkCloudKubernetesClusterData data = new NetworkCloudKubernetesClusterData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), new ControlPlaneNodeConfiguration(3L, "NC_G4_v1") { AdministratorConfiguration = new AdministratorConfiguration() { @@ -200,7 +200,7 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesCluster() }, }, new InitialAgentPoolConfiguration[] { -new InitialAgentPoolConfiguration(3,NetworkCloudAgentPoolMode.System,"SystemPool-1","NC_M16_v1") +new InitialAgentPoolConfiguration(3L,NetworkCloudAgentPoolMode.System,"SystemPool-1","NC_M16_v1") { AdministratorConfiguration = new AdministratorConfiguration() { @@ -210,7 +210,7 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesCluster() new NetworkCloudSshPublicKey("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm") }, }, -AgentOptions = new NetworkCloudAgentConfiguration(96) +AgentOptions = new NetworkCloudAgentConfiguration(96L) { HugepagesSize = HugepagesSize.OneG, }, @@ -302,14 +302,14 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesCluster() }, BgpPeers = { -new ServiceLoadBalancerBgpPeer("peer1","203.0.113.254",64497) +new ServiceLoadBalancerBgpPeer("peer1","203.0.113.254",64497L) { BfdEnabled = BfdEnabled.False, BgpMultiHop = BgpMultiHop.False, HoldTime = "P300s", KeepAliveTime = "P300s", -MyAsn = 64512, -PeerPort = 179, +MyAsn = 64512L, +PeerPort = 179L, } }, FabricPeeringEnabled = FabricPeeringEnabled.True, diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs index 1d1306d8ed839..687bad97837f0 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs @@ -135,7 +135,7 @@ public async Task Update_PatchKubernetesCluster() ["key1"] = "myvalue1", ["key2"] = "myvalue2", }, - ControlPlaneNodeCount = 3, + ControlPlaneNodeCount = 3L, KubernetesVersion = "1.24.12", }; ArmOperation lro = await networkCloudKubernetesCluster.UpdateAsync(WaitUntil.Completed, patch); diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudL3NetworkCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudL3NetworkCollection.cs index b69134292237e..169e55e0590b7 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudL3NetworkCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudL3NetworkCollection.cs @@ -183,7 +183,7 @@ public async Task CreateOrUpdate_CreateOrUpdateL3Network() // invoke the operation string l3NetworkName = "l3NetworkName"; - NetworkCloudL3NetworkData data = new NetworkCloudL3NetworkData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName"), 12) + NetworkCloudL3NetworkData data = new NetworkCloudL3NetworkData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName"), 12L) { InterfaceName = "eth0", IPAllocationType = IPAllocationType.DualStack, diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudTrunkedNetworkCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudTrunkedNetworkCollection.cs index d47ab6a4dc7f6..747872702754a 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudTrunkedNetworkCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudTrunkedNetworkCollection.cs @@ -188,7 +188,7 @@ public async Task CreateOrUpdate_CreateOrUpdateTrunkedNetwork() new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName"),new ResourceIdentifier("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName") }, new long[] { -12,14 +12L,14L }) { InterfaceName = "eth0", diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs index a792b5dd51175..4810c4733c25e 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs @@ -183,7 +183,7 @@ public async Task CreateOrUpdate_CreateOrUpdateVirtualMachine() // invoke the operation string virtualMachineName = "virtualMachineName"; - NetworkCloudVirtualMachineData data = new NetworkCloudVirtualMachineData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), "username", new NetworkAttachment("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", VirtualMachineIPAllocationMethod.Dynamic), 2, 8, new NetworkCloudStorageProfile(new NetworkCloudOSDisk(120) + NetworkCloudVirtualMachineData data = new NetworkCloudVirtualMachineData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), "username", new NetworkAttachment("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", VirtualMachineIPAllocationMethod.Dynamic), 2L, 8L, new NetworkCloudStorageProfile(new NetworkCloudOSDisk(120L) { CreateOption = OSDiskCreateOption.Ephemeral, DeleteOption = OSDiskDeleteOption.Delete, diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVolumeCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVolumeCollection.cs index a2922eeb8855b..d6df6aeb4c8c0 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVolumeCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVolumeCollection.cs @@ -183,7 +183,7 @@ public async Task CreateOrUpdate_CreateOrUpdateVolume() // invoke the operation string volumeName = "volumeName"; - NetworkCloudVolumeData data = new NetworkCloudVolumeData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), 10000) + NetworkCloudVolumeData data = new NetworkCloudVolumeData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), 10000L) { Tags = { diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_LogAnalyticsQueryPackResource.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_LogAnalyticsQueryPackResource.cs index 779ecb824c2a8..c0759bcda93af 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_LogAnalyticsQueryPackResource.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_LogAnalyticsQueryPackResource.cs @@ -252,7 +252,7 @@ public async Task SearchQueries_QuerySearch() }, }, }; - long? top = 3; + long? top = 3L; bool? includeBody = true; await foreach (LogAnalyticsQueryResource item in logAnalyticsQueryPack.SearchQueriesAsync(querySearchProperties, top: top, includeBody: includeBody)) { diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_OperationalInsightsSavedSearchCollection.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_OperationalInsightsSavedSearchCollection.cs index 9b607ea03f8c3..7d0c9fb39afc2 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_OperationalInsightsSavedSearchCollection.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_OperationalInsightsSavedSearchCollection.cs @@ -45,7 +45,7 @@ public async Task CreateOrUpdate_SavedSearchCreateOrUpdate() { FunctionAlias = "heartbeat_func", FunctionParameters = "a:int=1", - Version = 2, + Version = 2L, Tags = { new OperationalInsightsTag("Group","Computer") diff --git a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_OperationalInsightsSavedSearchResource.cs b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_OperationalInsightsSavedSearchResource.cs index a6285cfd00347..edfb49853f935 100644 --- a/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_OperationalInsightsSavedSearchResource.cs +++ b/sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/samples/Generated/Samples/Sample_OperationalInsightsSavedSearchResource.cs @@ -70,7 +70,7 @@ public async Task Update_SavedSearchCreateOrUpdate() { FunctionAlias = "heartbeat_func", FunctionParameters = "a:int=1", - Version = 2, + Version = 2L, Tags = { new OperationalInsightsTag("Group","Computer") diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Entity.xml b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Entity.xml index 217187c7c1ae0..f1504b28a12ee 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Entity.xml +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Entity.xml @@ -59,7 +59,7 @@ AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -107,7 +107,7 @@ AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo }, Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }, }; Response response = await client.CreateOrUpdateAsync(body); @@ -137,7 +137,7 @@ AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -214,7 +214,7 @@ AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -262,7 +262,7 @@ AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo }, Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }, }; Response response = client.CreateOrUpdate(body); @@ -292,7 +292,7 @@ AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -387,7 +387,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = await client.CreateOrUpdateAsync(content); @@ -423,7 +423,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = await client.CreateOrUpdateAsync(content); @@ -473,7 +473,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = await client.CreateOrUpdateAsync(content); @@ -558,7 +558,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = client.CreateOrUpdate(content); @@ -594,7 +594,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = client.CreateOrUpdate(content); @@ -644,7 +644,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = client.CreateOrUpdate(content); @@ -730,7 +730,7 @@ AtlasEntitiesWithExtInfo body = new AtlasEntitiesWithExtInfo CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -760,7 +760,7 @@ AtlasEntitiesWithExtInfo body = new AtlasEntitiesWithExtInfo CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -806,7 +806,7 @@ AtlasEntitiesWithExtInfo body = new AtlasEntitiesWithExtInfo CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -836,7 +836,7 @@ AtlasEntitiesWithExtInfo body = new AtlasEntitiesWithExtInfo CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -901,7 +901,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, new { @@ -937,7 +937,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, } }, }); @@ -993,7 +993,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, new { @@ -1029,7 +1029,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, } }, }); @@ -1731,7 +1731,7 @@ AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo }, TypeName = "azure_storage_account", LastModifiedTS = "1", - CreateTime = 1605766397985, + CreateTime = default, CreatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", Guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", RelationshipAttributes = @@ -1740,9 +1740,9 @@ AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo ["meanings"] = BinaryData.FromObjectAsJson(Array.Empty()) }, Status = EntityStatus.Active, - UpdateTime = 1605766397985, + UpdateTime = default, UpdatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - Version = 0, + Version = 0L, }, }; Response response = await client.UpdateByUniqueAttributeAsync("azure_storage_account", body); @@ -1770,7 +1770,7 @@ AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo }, TypeName = "azure_storage_account", LastModifiedTS = "1", - CreateTime = 1605766397985, + CreateTime = default, CreatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", Guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", RelationshipAttributes = @@ -1779,9 +1779,9 @@ AtlasEntityWithExtInfo body = new AtlasEntityWithExtInfo ["meanings"] = BinaryData.FromObjectAsJson(Array.Empty()) }, Status = EntityStatus.Active, - UpdateTime = 1605766397985, + UpdateTime = default, UpdatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - Version = 0, + Version = 0L, }, }; Response response = client.UpdateByUniqueAttribute("azure_storage_account", body); @@ -1799,7 +1799,6 @@ using RequestContent content = RequestContent.Create(new { entity = new { - createTime = 1605766397985, createdBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", relationshipAttributes = new @@ -1808,10 +1807,9 @@ using RequestContent content = RequestContent.Create(new meanings = Array.Empty(), }, status = "ACTIVE", - updateTime = 1605766397985, updatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", lastModifiedTS = "1", - version = 0, + version = 0L, attributes = new { owner = "ExampleOwner", @@ -1841,7 +1839,6 @@ using RequestContent content = RequestContent.Create(new { entity = new { - createTime = 1605766397985, createdBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", relationshipAttributes = new @@ -1850,10 +1847,9 @@ using RequestContent content = RequestContent.Create(new meanings = Array.Empty(), }, status = "ACTIVE", - updateTime = 1605766397985, updatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", lastModifiedTS = "1", - version = 0, + version = 0L, attributes = new { owner = "ExampleOwner", diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Relationship.xml b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Relationship.xml index 00e562cc62ee8..9d8c6bd96915e 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Relationship.xml +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/src/Generated/Docs/Relationship.xml @@ -34,7 +34,7 @@ AtlasRelationship body = new AtlasRelationship Label = "r:AtlasGlossarySynonym", Status = StatusAtlasRelationship.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }; Response response = await client.CreateAsync(body); ]]> @@ -72,7 +72,7 @@ AtlasRelationship body = new AtlasRelationship Label = "r:AtlasGlossarySynonym", Status = StatusAtlasRelationship.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }; Response response = client.Create(body); ]]> @@ -108,7 +108,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }); Response response = await client.CreateAsync(content); @@ -147,7 +147,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }); Response response = client.Create(content); @@ -189,7 +189,7 @@ AtlasRelationship body = new AtlasRelationship Label = "r:AtlasGlossarySynonym", Status = StatusAtlasRelationship.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }; Response response = await client.UpdateAsync(body); ]]> @@ -228,7 +228,7 @@ AtlasRelationship body = new AtlasRelationship Label = "r:AtlasGlossarySynonym", Status = StatusAtlasRelationship.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }; Response response = client.Update(body); ]]> @@ -265,7 +265,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }); Response response = await client.UpdateAsync(content); @@ -305,7 +305,7 @@ using RequestContent content = RequestContent.Create(new status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }); Response response = client.Update(content); diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Entity.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Entity.cs index 77e1ee0c2cc3e..7a3d4b9a330b2 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Entity.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Entity.cs @@ -199,7 +199,7 @@ public void Example_Entity_CreateOrUpdate_EntityCreate() status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = client.CreateOrUpdate(content); @@ -252,7 +252,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityCreate_Async() status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = await client.CreateOrUpdateAsync(content); @@ -288,7 +288,7 @@ public void Example_Entity_CreateOrUpdate_EntityCreate_Convenience() CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -334,7 +334,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityCreate_Convenience_Async() CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -383,7 +383,7 @@ public void Example_Entity_CreateOrUpdate_EntityCreateOrUpdateWithRichText() status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = client.CreateOrUpdate(content); @@ -422,7 +422,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityCreateOrUpdateWithRichText status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = await client.CreateOrUpdateAsync(content); @@ -463,7 +463,7 @@ public void Example_Entity_CreateOrUpdate_EntityCreateOrUpdateWithRichText_Conve }, Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }, }; Response response = client.CreateOrUpdate(body); @@ -501,7 +501,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityCreateOrUpdateWithRichText }, Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }, }; Response response = await client.CreateOrUpdateAsync(body); @@ -551,7 +551,7 @@ public void Example_Entity_CreateOrUpdate_EntityUpdate() status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = client.CreateOrUpdate(content); @@ -604,7 +604,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityUpdate_Async() status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }, }); Response response = await client.CreateOrUpdateAsync(content); @@ -640,7 +640,7 @@ public void Example_Entity_CreateOrUpdate_EntityUpdate_Convenience() CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -686,7 +686,7 @@ public async Task Example_Entity_CreateOrUpdate_EntityUpdate_Convenience_Async() CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -801,7 +801,7 @@ public void Example_Entity_BatchCreateOrUpdate_EntityBulkCreateOrUpdate() status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", -version = 0, +version = 0L, }, new { @@ -837,7 +837,7 @@ public void Example_Entity_BatchCreateOrUpdate_EntityBulkCreateOrUpdate() status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", -version = 0, +version = 0L, } }, }); @@ -893,7 +893,7 @@ public async Task Example_Entity_BatchCreateOrUpdate_EntityBulkCreateOrUpdate_As status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", -version = 0, +version = 0L, }, new { @@ -929,7 +929,7 @@ public async Task Example_Entity_BatchCreateOrUpdate_EntityBulkCreateOrUpdate_As status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", -version = 0, +version = 0L, } }, }); @@ -966,7 +966,7 @@ public void Example_Entity_BatchCreateOrUpdate_EntityBulkCreateOrUpdate_Convenie CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", -Version = 0, +Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -996,7 +996,7 @@ public void Example_Entity_BatchCreateOrUpdate_EntityBulkCreateOrUpdate_Convenie CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", -Version = 0, +Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -1042,7 +1042,7 @@ public async Task Example_Entity_BatchCreateOrUpdate_EntityBulkCreateOrUpdate_Co CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", -Version = 0, +Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -1072,7 +1072,7 @@ public async Task Example_Entity_BatchCreateOrUpdate_EntityBulkCreateOrUpdate_Co CreatedBy = "ExampleCreator", Status = EntityStatus.Active, UpdatedBy = "ExampleUpdator", -Version = 0, +Version = 0L, Contacts = { ["Expert"] = {new ContactInfo @@ -1773,7 +1773,6 @@ public void Example_Entity_UpdateByUniqueAttribute_EntityPartialUpdateByUniqueAt { entity = new { - createTime = 1605766397985, createdBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", relationshipAttributes = new @@ -1782,10 +1781,9 @@ public void Example_Entity_UpdateByUniqueAttribute_EntityPartialUpdateByUniqueAt meanings = Array.Empty(), }, status = "ACTIVE", - updateTime = 1605766397985, updatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", lastModifiedTS = "1", - version = 0, + version = 0L, attributes = new { owner = "ExampleOwner", @@ -1815,7 +1813,6 @@ public async Task Example_Entity_UpdateByUniqueAttribute_EntityPartialUpdateByUn { entity = new { - createTime = 1605766397985, createdBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", relationshipAttributes = new @@ -1824,10 +1821,9 @@ public async Task Example_Entity_UpdateByUniqueAttribute_EntityPartialUpdateByUn meanings = Array.Empty(), }, status = "ACTIVE", - updateTime = 1605766397985, updatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", lastModifiedTS = "1", - version = 0, + version = 0L, attributes = new { owner = "ExampleOwner", @@ -1867,7 +1863,7 @@ public void Example_Entity_UpdateByUniqueAttribute_EntityPartialUpdateByUniqueAt }, TypeName = "azure_storage_account", LastModifiedTS = "1", - CreateTime = 1605766397985, + CreateTime = default, CreatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", Guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", RelationshipAttributes = @@ -1876,9 +1872,9 @@ public void Example_Entity_UpdateByUniqueAttribute_EntityPartialUpdateByUniqueAt ["meanings"] = BinaryData.FromObjectAsJson(Array.Empty()) }, Status = EntityStatus.Active, - UpdateTime = 1605766397985, + UpdateTime = default, UpdatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - Version = 0, + Version = 0L, }, }; Response response = client.UpdateByUniqueAttribute("azure_storage_account", body); @@ -1906,7 +1902,7 @@ public async Task Example_Entity_UpdateByUniqueAttribute_EntityPartialUpdateByUn }, TypeName = "azure_storage_account", LastModifiedTS = "1", - CreateTime = 1605766397985, + CreateTime = default, CreatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", Guid = "dc507ccf-0c57-4165-9327-f37b0d13fda0", RelationshipAttributes = @@ -1915,9 +1911,9 @@ public async Task Example_Entity_UpdateByUniqueAttribute_EntityPartialUpdateByUn ["meanings"] = BinaryData.FromObjectAsJson(Array.Empty()) }, Status = EntityStatus.Active, - UpdateTime = 1605766397985, + UpdateTime = default, UpdatedBy = "8c062c84-5d25-449f-a990-9d8ab70b8ec7", - Version = 0, + Version = 0L, }, }; Response response = await client.UpdateByUniqueAttributeAsync("azure_storage_account", body); diff --git a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Relationship.cs b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Relationship.cs index 367686d43ce33..d6689895797a1 100644 --- a/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Relationship.cs +++ b/sdk/purview/Azure.Analytics.Purview.DataMap/tests/Generated/Samples/Samples_Relationship.cs @@ -47,7 +47,7 @@ public void Example_Relationship_Create_RelationshipCreate() status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }); Response response = client.Create(content); @@ -86,7 +86,7 @@ public async Task Example_Relationship_Create_RelationshipCreate_Async() status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }); Response response = await client.CreateAsync(content); @@ -127,7 +127,7 @@ public void Example_Relationship_Create_RelationshipCreate_Convenience() Label = "r:AtlasGlossarySynonym", Status = StatusAtlasRelationship.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }; Response response = client.Create(body); } @@ -165,7 +165,7 @@ public async Task Example_Relationship_Create_RelationshipCreate_Convenience_Asy Label = "r:AtlasGlossarySynonym", Status = StatusAtlasRelationship.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }; Response response = await client.CreateAsync(body); } @@ -202,7 +202,7 @@ public void Example_Relationship_Update_RelationshipUpdate() status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }); Response response = client.Update(content); @@ -242,7 +242,7 @@ public async Task Example_Relationship_Update_RelationshipUpdate_Async() status = "ACTIVE", createdBy = "ExampleCreator", updatedBy = "ExampleUpdator", - version = 0, + version = 0L, }); Response response = await client.UpdateAsync(content); @@ -284,7 +284,7 @@ public void Example_Relationship_Update_RelationshipUpdate_Convenience() Label = "r:AtlasGlossarySynonym", Status = StatusAtlasRelationship.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }; Response response = client.Update(body); } @@ -323,7 +323,7 @@ public async Task Example_Relationship_Update_RelationshipUpdate_Convenience_Asy Label = "r:AtlasGlossarySynonym", Status = StatusAtlasRelationship.Active, UpdatedBy = "ExampleUpdator", - Version = 0, + Version = 0L, }; Response response = await client.UpdateAsync(body); } diff --git a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusResource.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusResource.cs index 1098c190739a6..bf896a400648a 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusResource.cs @@ -112,7 +112,7 @@ public async Task CreateOrUpdateGroupQuotaSubscriptionAllocationRequest_Subscrip { RequestedResource = new QuotaAllocationRequestBase() { - Limit = 10, + Limit = 10L, Region = "westus", }, }; @@ -154,7 +154,7 @@ public async Task UpdateGroupQuotaSubscriptionAllocationRequest_SubscriptionQuot { RequestedResource = new QuotaAllocationRequestBase() { - Limit = 10, + Limit = 10L, Region = "westus", }, }; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorCollection.cs index d1bf55e2cea33..7f39b6f51b953 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorCollection.cs @@ -196,7 +196,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASecurityConnector() }, EnvironmentData = new AwsEnvironment() { - ScanInterval = 4, + ScanInterval = 4L, }, ETag = new ETag("etag value (must be supplied for update)"), Tags = diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricApplicationCollection.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricApplicationCollection.cs index faadc86971f48..a1951795bd3f5 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricApplicationCollection.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricApplicationCollection.cs @@ -183,17 +183,17 @@ public async Task CreateOrUpdate_PutAnApplicationWithMaximumParameters() }, UpgradeMode = ApplicationRollingUpgradeMode.Monitored, }, - MinimumNodes = 1, - MaximumNodes = 3, + MinimumNodes = 1L, + MaximumNodes = 3L, RemoveApplicationCapacity = false, Metrics = { new ApplicationMetricDescription() { Name = "metric1", -MaximumCapacity = 3, -ReservationCapacity = 1, -TotalApplicationCapacity = 5, +MaximumCapacity = 3L, +ReservationCapacity = 1L, +TotalApplicationCapacity = 5L, } }, TypeName = "myAppType", diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricApplicationResource.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricApplicationResource.cs index 91453262b26d1..80bc82c623e97 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricApplicationResource.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricApplicationResource.cs @@ -79,9 +79,9 @@ public async Task Update_PatchAnApplication() new ApplicationMetricDescription() { Name = "metric1", -MaximumCapacity = 3, -ReservationCapacity = 1, -TotalApplicationCapacity = 5, +MaximumCapacity = 3L, +ReservationCapacity = 1L, +TotalApplicationCapacity = 5L, } }, Tags = diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricClusterCollection.cs b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricClusterCollection.cs index de7508f3f1810..18846cc6a5907 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricClusterCollection.cs +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/samples/Generated/Samples/Sample_ServiceFabricClusterCollection.cs @@ -247,7 +247,7 @@ public async Task CreateOrUpdate_PutAClusterWithMaximumParameters() }, }, UpgradeMode = ClusterUpgradeMode.Manual, - MaxUnusedVersionsToKeep = 2, + MaxUnusedVersionsToKeep = 2L, VmImage = "Windows", ServiceFabricZonalUpgradeMode = SfZonalUpgradeMode.Hierarchical, VmssZonalUpgradeMode = VmssZonalUpgradeMode.Parallel, diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/samples/Generated/Samples/Sample_ServiceFabricManagedApplicationCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/samples/Generated/Samples/Sample_ServiceFabricManagedApplicationCollection.cs index 61ed96fb0e68e..abbbfa1c6af75 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/samples/Generated/Samples/Sample_ServiceFabricManagedApplicationCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/samples/Generated/Samples/Sample_ServiceFabricManagedApplicationCollection.cs @@ -169,9 +169,9 @@ public async Task CreateOrUpdate_PutAnApplicationWithMaximumParameters() }, ForceRestart = false, RollingUpgradeMonitoringPolicy = new RollingUpgradeMonitoringPolicy(PolicyViolationCompensationAction.Rollback, TimeSpan.Parse("00:02:00"), TimeSpan.Parse("00:05:00"), TimeSpan.Parse("00:10:00"), TimeSpan.Parse("01:00:00"), TimeSpan.Parse("00:15:00")), - InstanceCloseDelayDurationInSeconds = 600, + InstanceCloseDelayDurationInSeconds = 600L, UpgradeMode = RollingUpgradeMode.UnmonitoredAuto, - UpgradeReplicaSetCheckTimeout = 3600, + UpgradeReplicaSetCheckTimeout = 3600L, RecreateApplication = false, }, Tags = diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseCollection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseCollection.cs index 14e7767d84735..2d2166b6a7066 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseCollection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseCollection.cs @@ -1189,7 +1189,7 @@ public async Task CreateOrUpdate_CreatesADatabaseWithAvailabilityZoneSpecified() }, CreateMode = SqlDatabaseCreateMode.Default, Collation = "SQL_Latin1_General_CP1_CI_AS", - MaxSizeBytes = 1073741824, + MaxSizeBytes = 1073741824L, AvailabilityZone = SqlAvailabilityZoneType.One, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, databaseName, data); @@ -1244,7 +1244,7 @@ public async Task CreateOrUpdate_CreatesADatabaseWithDatabaseLevelCustomerManage }, CreateMode = SqlDatabaseCreateMode.Default, Collation = "SQL_Latin1_General_CP1_CI_AS", - MaxSizeBytes = 1073741824, + MaxSizeBytes = 1073741824L, Keys = { ["https://your-key-vault-name.vault.azure.net/yourKey/yourKeyVersion"] = new SqlDatabaseKey(), @@ -1296,7 +1296,7 @@ public async Task CreateOrUpdate_CreatesADatabaseWithDefaultMode() }, CreateMode = SqlDatabaseCreateMode.Default, Collation = "SQL_Latin1_General_CP1_CI_AS", - MaxSizeBytes = 1073741824, + MaxSizeBytes = 1073741824L, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, databaseName, data); SqlDatabaseResource result = lro.Value; @@ -1419,7 +1419,7 @@ public async Task CreateOrUpdate_CreatesADatabaseWithPreferredMaintenanceWindow( }, CreateMode = SqlDatabaseCreateMode.Default, Collation = "SQL_Latin1_General_CP1_CI_AS", - MaxSizeBytes = 1073741824, + MaxSizeBytes = 1073741824L, MaintenanceConfigurationId = new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_SouthEastAsia_1"), }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, databaseName, data); diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseResource.cs index fa4730591372a..501bbaeeda627 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/samples/Generated/Samples/Sample_SqlDatabaseResource.cs @@ -1000,7 +1000,7 @@ public async Task Update_UpdatesADatabase() SqlDatabasePatch patch = new SqlDatabasePatch() { Sku = new SqlSku("BC_Gen4_4"), - MaxSizeBytes = 1073741824, + MaxSizeBytes = 1073741824L, LicenseType = DatabaseLicenseType.LicenseIncluded, }; ArmOperation lro = await sqlDatabase.UpdateAsync(WaitUntil.Completed, patch); diff --git a/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyContainerGroupPoolCollection.cs b/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyContainerGroupPoolCollection.cs index a12de8b567586..11110b121948c 100644 --- a/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyContainerGroupPoolCollection.cs +++ b/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyContainerGroupPoolCollection.cs @@ -150,12 +150,12 @@ public async Task CreateOrUpdate_StandbyContainerGroupPoolsCreateOrUpdate() string standbyContainerGroupPoolName = "pool"; StandbyContainerGroupPoolData data = new StandbyContainerGroupPoolData(new AzureLocation("West US")) { - Properties = new StandbyContainerGroupPoolProperties(new StandbyContainerGroupPoolElasticityProfile(688) + Properties = new StandbyContainerGroupPoolProperties(new StandbyContainerGroupPoolElasticityProfile(688L) { RefillPolicy = StandbyRefillPolicy.Always, }, new StandbyContainerGroupProperties(new StandbyContainerGroupProfile(new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile")) { - Revision = 1, + Revision = 1L, }) { SubnetIds = diff --git a/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyContainerGroupPoolResource.cs b/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyContainerGroupPoolResource.cs index 5b6a7e720416a..ee698b40f63d5 100644 --- a/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyContainerGroupPoolResource.cs +++ b/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyContainerGroupPoolResource.cs @@ -104,13 +104,13 @@ public async Task Update_StandbyContainerGroupPoolsUpdate() }, Properties = new StandbyContainerGroupPoolUpdateProperties() { - ElasticityProfile = new StandbyContainerGroupPoolElasticityProfile(1743) + ElasticityProfile = new StandbyContainerGroupPoolElasticityProfile(1743L) { RefillPolicy = StandbyRefillPolicy.Always, }, ContainerGroupProperties = new StandbyContainerGroupProperties(new StandbyContainerGroupProfile(new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile")) { - Revision = 2, + Revision = 2L, }) { SubnetIds = diff --git a/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyVirtualMachinePoolCollection.cs b/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyVirtualMachinePoolCollection.cs index 69d03441f0616..c2246de76bebc 100644 --- a/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyVirtualMachinePoolCollection.cs +++ b/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyVirtualMachinePoolCollection.cs @@ -151,9 +151,9 @@ public async Task CreateOrUpdate_StandbyVirtualMachinePoolsCreateOrUpdate() { Properties = new StandbyVirtualMachinePoolProperties(StandbyVirtualMachineState.Running) { - ElasticityProfile = new StandbyVirtualMachinePoolElasticityProfile(304) + ElasticityProfile = new StandbyVirtualMachinePoolElasticityProfile(304L) { - MinReadyCapacity = 300, + MinReadyCapacity = 300L, }, AttachedVirtualMachineScaleSetId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss"), }, diff --git a/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyVirtualMachinePoolResource.cs b/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyVirtualMachinePoolResource.cs index c2686462b555c..a830d19387469 100644 --- a/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyVirtualMachinePoolResource.cs +++ b/sdk/standbypool/Azure.ResourceManager.StandbyPool/samples/Generated/Samples/Sample_StandbyVirtualMachinePoolResource.cs @@ -103,9 +103,9 @@ public async Task Update_StandbyVirtualMachinePoolsUpdate() }, Properties = new StandbyVirtualMachinePoolUpdateProperties() { - ElasticityProfile = new StandbyVirtualMachinePoolElasticityProfile(304) + ElasticityProfile = new StandbyVirtualMachinePoolElasticityProfile(304L) { - MinReadyCapacity = 300, + MinReadyCapacity = 300L, }, VirtualMachineState = StandbyVirtualMachineState.Running, AttachedVirtualMachineScaleSetId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss"), diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/samples/Generated/Samples/Sample_AmlFileSystemCollection.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/samples/Generated/Samples/Sample_AmlFileSystemCollection.cs index a2f0c7699add3..21845d6c6a2dc 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/samples/Generated/Samples/Sample_AmlFileSystemCollection.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/samples/Generated/Samples/Sample_AmlFileSystemCollection.cs @@ -224,8 +224,8 @@ public async Task CreateOrUpdate_AmlFilesystemsCreateOrUpdate() { Mode = AmlFileSystemSquashMode.All, NoSquashNidLists = "10.0.0.[5-6]@tcp;10.0.1.2@tcp", - SquashUID = 99, - SquashGID = 99, + SquashUID = 99L, + SquashGID = 99L, }, Tags = { diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/samples/Generated/Samples/Sample_AmlFileSystemResource.cs b/sdk/storagecache/Azure.ResourceManager.StorageCache/samples/Generated/Samples/Sample_AmlFileSystemResource.cs index e4ae813060f77..12f22395b0942 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/samples/Generated/Samples/Sample_AmlFileSystemResource.cs +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/samples/Generated/Samples/Sample_AmlFileSystemResource.cs @@ -148,8 +148,8 @@ public async Task Update_AmlFilesystemsUpdate() { Mode = AmlFileSystemSquashMode.All, NoSquashNidLists = "10.0.0.[5-6]@tcp;10.0.1.2@tcp", - SquashUID = 99, - SquashGID = 99, + SquashUID = 99L, + SquashGID = 99L, }, }; ArmOperation lro = await amlFileSystem.UpdateAsync(WaitUntil.Completed, patch); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolCollection.cs index 3cf0d82af4227..dea66e9048fbd 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolCollection.cs @@ -157,7 +157,7 @@ public async Task CreateOrUpdate_CreateASQLAnalyticsPool() Tier = "", Name = "", }, - MaxSizeBytes = 0, + MaxSizeBytes = 0L, Collation = "", SourceDatabaseId = "", RecoverableDatabaseId = "", diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolResource.cs index f2140512de3f9..caad932bc2985 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseSqlPoolResource.cs @@ -81,7 +81,7 @@ public async Task Update_UpdateASQLAnalyticsPool() Tier = "", Name = "", }, - MaxSizeBytes = 0, + MaxSizeBytes = 0L, Collation = "", RestorePointInTime = DateTimeOffset.Parse("1970-01-01T00:00:00.000Z"), }; diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/samples/Generated/Samples/Sample_TrafficManagerProfileCollection.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/samples/Generated/Samples/Sample_TrafficManagerProfileCollection.cs index 92055c2165f63..9b07222de0685 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/samples/Generated/Samples/Sample_TrafficManagerProfileCollection.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/samples/Generated/Samples/Sample_TrafficManagerProfileCollection.cs @@ -402,16 +402,16 @@ public async Task CreateOrUpdate_ProfilePUTMultiValue() DnsConfig = new TrafficManagerDnsConfig() { RelativeName = "azsmnet6386", - Ttl = 35, + Ttl = 35L, }, MonitorConfig = new TrafficManagerMonitorConfig() { Protocol = TrafficManagerMonitorProtocol.Http, - Port = 80, + Port = 80L, Path = "/testpath.aspx", }, TrafficViewEnrollmentStatus = TrafficViewEnrollmentStatus.Disabled, - MaxReturn = 2, + MaxReturn = 2L, Location = new AzureLocation("global"), }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, profileName, data); @@ -456,12 +456,12 @@ public async Task CreateOrUpdate_ProfilePUTNoEndpoints() DnsConfig = new TrafficManagerDnsConfig() { RelativeName = "azsmnet6386", - Ttl = 35, + Ttl = 35L, }, MonitorConfig = new TrafficManagerMonitorConfig() { Protocol = TrafficManagerMonitorProtocol.Http, - Port = 80, + Port = 80L, Path = "/testpath.aspx", }, Location = new AzureLocation("global"), @@ -508,16 +508,16 @@ public async Task CreateOrUpdate_ProfilePUTWithAliasing() DnsConfig = new TrafficManagerDnsConfig() { RelativeName = "azuresdkfornetautoresttrafficmanager6192", - Ttl = 35, + Ttl = 35L, }, MonitorConfig = new TrafficManagerMonitorConfig() { Protocol = TrafficManagerMonitorProtocol.Http, - Port = 80, + Port = 80L, Path = "/testpath.aspx", - IntervalInSeconds = 10, - TimeoutInSeconds = 5, - ToleratedNumberOfFailures = 2, + IntervalInSeconds = 10L, + TimeoutInSeconds = 5L, + ToleratedNumberOfFailures = 2L, }, Endpoints = { @@ -578,16 +578,16 @@ public async Task CreateOrUpdate_ProfilePUTWithCustomHeaders() DnsConfig = new TrafficManagerDnsConfig() { RelativeName = "azuresdkfornetautoresttrafficmanager6192", - Ttl = 35, + Ttl = 35L, }, MonitorConfig = new TrafficManagerMonitorConfig() { Protocol = TrafficManagerMonitorProtocol.Http, - Port = 80, + Port = 80L, Path = "/testpath.aspx", - IntervalInSeconds = 10, - TimeoutInSeconds = 5, - ToleratedNumberOfFailures = 2, + IntervalInSeconds = 10L, + TimeoutInSeconds = 5L, + ToleratedNumberOfFailures = 2L, CustomHeaders = { new TrafficManagerMonitorConfigCustomHeaderInfo() @@ -677,16 +677,16 @@ public async Task CreateOrUpdate_ProfilePUTWithEndpoints() DnsConfig = new TrafficManagerDnsConfig() { RelativeName = "azuresdkfornetautoresttrafficmanager6192", - Ttl = 35, + Ttl = 35L, }, MonitorConfig = new TrafficManagerMonitorConfig() { Protocol = TrafficManagerMonitorProtocol.Http, - Port = 80, + Port = 80L, Path = "/testpath.aspx", - IntervalInSeconds = 10, - TimeoutInSeconds = 5, - ToleratedNumberOfFailures = 2, + IntervalInSeconds = 10L, + TimeoutInSeconds = 5L, + ToleratedNumberOfFailures = 2L, }, Endpoints = { @@ -743,16 +743,16 @@ public async Task CreateOrUpdate_ProfilePUTWithNestedEndpoints() DnsConfig = new TrafficManagerDnsConfig() { RelativeName = "parentprofile", - Ttl = 35, + Ttl = 35L, }, MonitorConfig = new TrafficManagerMonitorConfig() { Protocol = TrafficManagerMonitorProtocol.Http, - Port = 80, + Port = 80L, Path = "/testpath.aspx", - IntervalInSeconds = 10, - TimeoutInSeconds = 5, - ToleratedNumberOfFailures = 2, + IntervalInSeconds = 10L, + TimeoutInSeconds = 5L, + ToleratedNumberOfFailures = 2L, }, Endpoints = { @@ -760,22 +760,22 @@ public async Task CreateOrUpdate_ProfilePUTWithNestedEndpoints() { Target = "firstnestedprofile.tmpreview.watmtest.azure-test.net", EndpointStatus = TrafficManagerEndpointStatus.Enabled, -Weight = 1, -Priority = 1, -MinChildEndpoints = 2, -MinChildEndpointsIPv4 = 1, -MinChildEndpointsIPv6 = 2, +Weight = 1L, +Priority = 1L, +MinChildEndpoints = 2L, +MinChildEndpointsIPv4 = 1L, +MinChildEndpointsIPv6 = 2L, Name = "MyFirstNestedEndpoint", ResourceType = new ResourceType("Microsoft.Network/trafficManagerProfiles/nestedEndpoints"), },new TrafficManagerEndpointData() { Target = "secondnestedprofile.tmpreview.watmtest.azure-test.net", EndpointStatus = TrafficManagerEndpointStatus.Enabled, -Weight = 1, -Priority = 2, -MinChildEndpoints = 2, -MinChildEndpointsIPv4 = 2, -MinChildEndpointsIPv6 = 1, +Weight = 1L, +Priority = 2L, +MinChildEndpoints = 2L, +MinChildEndpointsIPv4 = 2L, +MinChildEndpointsIPv6 = 1L, Name = "MySecondNestedEndpoint", ResourceType = new ResourceType("Microsoft.Network/trafficManagerProfiles/nestedEndpoints"), } diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/samples/Generated/Samples/Sample_TrafficManagerProfileResource.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/samples/Generated/Samples/Sample_TrafficManagerProfileResource.cs index 700872ebad517..6b9f5a6b73087 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/samples/Generated/Samples/Sample_TrafficManagerProfileResource.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/samples/Generated/Samples/Sample_TrafficManagerProfileResource.cs @@ -311,11 +311,11 @@ public async Task Update_ProfilePATCHMonitorConfig() MonitorConfig = new TrafficManagerMonitorConfig() { Protocol = TrafficManagerMonitorProtocol.Http, - Port = 80, + Port = 80L, Path = "/testpath.aspx", - IntervalInSeconds = 30, - TimeoutInSeconds = 6, - ToleratedNumberOfFailures = 4, + IntervalInSeconds = 30L, + TimeoutInSeconds = 6L, + ToleratedNumberOfFailures = 4L, CustomHeaders = { new TrafficManagerMonitorConfigCustomHeaderInfo() diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapApplicationServerInstanceResource.cs b/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapApplicationServerInstanceResource.cs index 88c85a13916eb..70e17c9f7905a 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapApplicationServerInstanceResource.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapApplicationServerInstanceResource.cs @@ -171,7 +171,7 @@ public async Task StopInstance_StopTheSAPApplicationServerInstance() // invoke the operation SapStopContent content = new SapStopContent() { - SoftStopTimeoutSeconds = 0, + SoftStopTimeoutSeconds = 0L, }; ArmOperation lro = await sapApplicationServerInstance.StopInstanceAsync(WaitUntil.Completed, content: content); OperationStatusResult result = lro.Value; diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapCentralServerInstanceResource.cs b/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapCentralServerInstanceResource.cs index 449e660bb4156..dac0bbfbbe80a 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapCentralServerInstanceResource.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapCentralServerInstanceResource.cs @@ -171,7 +171,7 @@ public async Task StopInstance_StopTheSAPCentralServicesInstance() // invoke the operation SapStopContent content = new SapStopContent() { - SoftStopTimeoutSeconds = 1200, + SoftStopTimeoutSeconds = 1200L, }; ArmOperation lro = await sapCentralServerInstance.StopInstanceAsync(WaitUntil.Completed, content: content); OperationStatusResult result = lro.Value; diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapDatabaseInstanceResource.cs b/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapDatabaseInstanceResource.cs index ca8b5d7593718..df026bf3edb93 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapDatabaseInstanceResource.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapDatabaseInstanceResource.cs @@ -171,7 +171,7 @@ public async Task StopInstance_StopTheDatabaseInstanceOfTheSAPSystem() // invoke the operation SapStopContent content = new SapStopContent() { - SoftStopTimeoutSeconds = 0, + SoftStopTimeoutSeconds = 0L, }; ArmOperation lro = await sapDatabaseInstance.StopInstanceAsync(WaitUntil.Completed, content: content); OperationStatusResult result = lro.Value; diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapVirtualInstanceCollection.cs b/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapVirtualInstanceCollection.cs index 73e38919c2dba..0b8a0f1702243 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapVirtualInstanceCollection.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapVirtualInstanceCollection.cs @@ -62,7 +62,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationWithCust PrivateKey = "xyz", }, }, - }), 1), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 1L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -80,7 +80,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationWithCust PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -98,7 +98,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationWithCust PrivateKey = "xyz", }, }, - }), 1) + }), 1L) { DatabaseType = SapDatabaseType.Hana, }) @@ -288,7 +288,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationWithCust PrivateKey = "xyz", }, }, - }), 2), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 2L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -306,7 +306,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationWithCust PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -324,7 +324,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationWithCust PrivateKey = "xyz", }, }, - }), 2) + }), 2L) { DatabaseType = SapDatabaseType.Hana, }) @@ -585,7 +585,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationWithCust PrivateKey = "xyz", }, }, - }), 2), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 2L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -603,7 +603,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationWithCust PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -621,7 +621,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationWithCust PrivateKey = "xyz", }, }, - }), 2) + }), 2L) { DatabaseType = SapDatabaseType.Hana, }) @@ -952,7 +952,7 @@ public async Task CreateOrUpdate_CreateInfrastructureOnlyForDistributedSystem() } }, }, - }), 1), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 1L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -972,7 +972,7 @@ public async Task CreateOrUpdate_CreateInfrastructureOnlyForDistributedSystem() } }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -992,7 +992,7 @@ public async Task CreateOrUpdate_CreateInfrastructureOnlyForDistributedSystem() } }, }, - }), 1) + }), 1L) { DatabaseType = SapDatabaseType.Hana, }), @@ -1060,7 +1060,7 @@ public async Task CreateOrUpdate_CreateInfrastructureOnlyForHASystemWithAvailabi } }, }, - }), 2), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 2L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1080,7 +1080,7 @@ public async Task CreateOrUpdate_CreateInfrastructureOnlyForHASystemWithAvailabi } }, }, - }), 5), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 5L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1100,7 +1100,7 @@ public async Task CreateOrUpdate_CreateInfrastructureOnlyForHASystemWithAvailabi } }, }, - }), 2) + }), 2L) { DatabaseType = SapDatabaseType.Hana, }) @@ -1171,7 +1171,7 @@ public async Task CreateOrUpdate_CreateInfrastructureOnlyForHASystemWithAvailabi } }, }, - }), 2), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 2L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1191,7 +1191,7 @@ public async Task CreateOrUpdate_CreateInfrastructureOnlyForHASystemWithAvailabi } }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1211,7 +1211,7 @@ public async Task CreateOrUpdate_CreateInfrastructureOnlyForHASystemWithAvailabi } }, }, - }), 2) + }), 2L) { DatabaseType = SapDatabaseType.Hana, }) @@ -1349,7 +1349,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithDiskAndOSConfigurationF PrivateKey = "xyz", }, }, - }), 1), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 1L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1367,7 +1367,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithDiskAndOSConfigurationF PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1385,45 +1385,45 @@ public async Task CreateOrUpdate_CreateInfrastructureWithDiskAndOSConfigurationF PrivateKey = "xyz", }, }, - }), 1) + }), 1L) { DatabaseType = SapDatabaseType.Hana, DiskVolumeConfigurations = { ["backup"] = new DiskVolumeConfiguration() { -Count = 2, -SizeInGB = 256, +Count = 2L, +SizeInGB = 256L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["hana/data"] = new DiskVolumeConfiguration() { -Count = 4, -SizeInGB = 128, +Count = 4L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, ["hana/log"] = new DiskVolumeConfiguration() { -Count = 3, -SizeInGB = 128, +Count = 3L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, ["hana/shared"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 256, +Count = 1L, +SizeInGB = 256L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["os"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 64, +Count = 1L, +SizeInGB = 64L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["usr/sap"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 128, +Count = 1L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, }, @@ -1494,7 +1494,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithDiskAndOSConfigurationF PrivateKey = "xyz", }, }, - }), 2), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 2L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1512,7 +1512,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithDiskAndOSConfigurationF PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1530,45 +1530,45 @@ public async Task CreateOrUpdate_CreateInfrastructureWithDiskAndOSConfigurationF PrivateKey = "xyz", }, }, - }), 2) + }), 2L) { DatabaseType = SapDatabaseType.Hana, DiskVolumeConfigurations = { ["backup"] = new DiskVolumeConfiguration() { -Count = 2, -SizeInGB = 256, +Count = 2L, +SizeInGB = 256L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["hana/data"] = new DiskVolumeConfiguration() { -Count = 4, -SizeInGB = 128, +Count = 4L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, ["hana/log"] = new DiskVolumeConfiguration() { -Count = 3, -SizeInGB = 128, +Count = 3L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, ["hana/shared"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 256, +Count = 1L, +SizeInGB = 256L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["os"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 64, +Count = 1L, +SizeInGB = 64L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["usr/sap"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 128, +Count = 1L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, }, @@ -1642,7 +1642,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithDiskAndOSConfigurationF PrivateKey = "xyz", }, }, - }), 2), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 2L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1660,7 +1660,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithDiskAndOSConfigurationF PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1678,45 +1678,45 @@ public async Task CreateOrUpdate_CreateInfrastructureWithDiskAndOSConfigurationF PrivateKey = "xyz", }, }, - }), 2) + }), 2L) { DatabaseType = SapDatabaseType.Hana, DiskVolumeConfigurations = { ["backup"] = new DiskVolumeConfiguration() { -Count = 2, -SizeInGB = 256, +Count = 2L, +SizeInGB = 256L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["hana/data"] = new DiskVolumeConfiguration() { -Count = 4, -SizeInGB = 128, +Count = 4L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, ["hana/log"] = new DiskVolumeConfiguration() { -Count = 3, -SizeInGB = 128, +Count = 3L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, ["hana/shared"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 256, +Count = 1L, +SizeInGB = 256L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["os"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 64, +Count = 1L, +SizeInGB = 64L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["usr/sap"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 128, +Count = 1L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, }, @@ -1798,38 +1798,38 @@ public async Task CreateOrUpdate_CreateInfrastructureWithDiskAndOSConfigurations { ["backup"] = new DiskVolumeConfiguration() { -Count = 2, -SizeInGB = 256, +Count = 2L, +SizeInGB = 256L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["hana/data"] = new DiskVolumeConfiguration() { -Count = 4, -SizeInGB = 128, +Count = 4L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, ["hana/log"] = new DiskVolumeConfiguration() { -Count = 3, -SizeInGB = 128, +Count = 3L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, ["hana/shared"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 256, +Count = 1L, +SizeInGB = 256L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["os"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 64, +Count = 1L, +SizeInGB = 64L, SkuName = DiskDetailsDiskSkuName.StandardSsdLrs, }, ["usr/sap"] = new DiskVolumeConfiguration() { -Count = 1, -SizeInGB = 128, +Count = 1L, +SizeInGB = 128L, SkuName = DiskDetailsDiskSkuName.PremiumLrs, }, }, @@ -1900,7 +1900,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationForDistr PrivateKey = "xyz", }, }, - }), 1), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 1L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1918,7 +1918,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationForDistr PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -1936,7 +1936,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationForDistr PrivateKey = "xyz", }, }, - }), 1) + }), 1L) { DatabaseType = SapDatabaseType.Hana, }), @@ -2006,7 +2006,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationForHASys PrivateKey = "xyz", }, }, - }), 2), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 2L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -2024,7 +2024,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationForHASys PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -2042,7 +2042,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationForHASys PrivateKey = "xyz", }, }, - }), 2) + }), 2L) { DatabaseType = SapDatabaseType.Hana, }) @@ -2115,7 +2115,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationForHASys PrivateKey = "xyz", }, }, - }), 2), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 2L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -2133,7 +2133,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationForHASys PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -2151,7 +2151,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithOSConfigurationForHASys PrivateKey = "xyz", }, }, - }), 2) + }), 2L) { DatabaseType = SapDatabaseType.Hana, }) @@ -2295,7 +2295,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithANewSAPTransportDirecto PrivateKey = "xyz", }, }, - }), 1), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 1L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -2313,7 +2313,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithANewSAPTransportDirecto PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -2331,7 +2331,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithANewSAPTransportDirecto PrivateKey = "xyz", }, }, - }), 1) + }), 1L) { DatabaseType = SapDatabaseType.Hana, }) @@ -2408,7 +2408,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithAnExistingSAPTransportD PrivateKey = "xyz", }, }, - }), 1), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 1L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -2426,7 +2426,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithAnExistingSAPTransportD PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -2444,7 +2444,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithAnExistingSAPTransportD PrivateKey = "xyz", }, }, - }), 1) + }), 1L) { DatabaseType = SapDatabaseType.Hana, }) @@ -2517,7 +2517,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithoutASAPTransportDirecto PrivateKey = "xyz", }, }, - }), 1), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 1L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -2535,7 +2535,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithoutASAPTransportDirecto PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP", @@ -2553,7 +2553,7 @@ public async Task CreateOrUpdate_CreateInfrastructureWithoutASAPTransportDirecto PrivateKey = "xyz", }, }, - }), 1) + }), 1L) { DatabaseType = SapDatabaseType.Hana, }) @@ -2626,7 +2626,7 @@ public async Task CreateOrUpdate_DetectSAPSoftwareInstallationOnADistributedSyst PrivateKey = "{{privateKey}}", }, }, - }), 1), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), new SapVirtualMachineConfiguration("Standard_E4ds_v4", new SapImageReference() + }), 1L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), new SapVirtualMachineConfiguration("Standard_E4ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP-HA", @@ -2644,7 +2644,7 @@ public async Task CreateOrUpdate_DetectSAPSoftwareInstallationOnADistributedSyst PrivateKey = "{{privateKey}}", }, }, - }), 2), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 2L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP-HA", @@ -2662,7 +2662,7 @@ public async Task CreateOrUpdate_DetectSAPSoftwareInstallationOnADistributedSyst PrivateKey = "{{privateKey}}", }, }, - }), 1)) + }), 1L)) { IsSecondaryIPEnabled = true, }, @@ -2812,7 +2812,7 @@ public async Task CreateOrUpdate_DetectSAPSoftwareInstallationOnAnHASystemWithAv PrivateKey = "xyz", }, }, - }), 2), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 2L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP-HA", @@ -2830,7 +2830,7 @@ public async Task CreateOrUpdate_DetectSAPSoftwareInstallationOnAnHASystemWithAv PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP-HA", @@ -2848,7 +2848,7 @@ public async Task CreateOrUpdate_DetectSAPSoftwareInstallationOnAnHASystemWithAv PrivateKey = "xyz", }, }, - }), 2) + }), 2L) { DatabaseType = SapDatabaseType.Hana, }) @@ -2925,7 +2925,7 @@ public async Task CreateOrUpdate_DetectSAPSoftwareInstallationOnAnHASystemWithAv PrivateKey = "xyz", }, }, - }), 2), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() + }), 2L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), new SapVirtualMachineConfiguration("Standard_E32ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP-HA", @@ -2943,7 +2943,7 @@ public async Task CreateOrUpdate_DetectSAPSoftwareInstallationOnAnHASystemWithAv PrivateKey = "xyz", }, }, - }), 6), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 6L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP-HA", @@ -2961,7 +2961,7 @@ public async Task CreateOrUpdate_DetectSAPSoftwareInstallationOnAnHASystemWithAv PrivateKey = "xyz", }, }, - }), 2) + }), 2L) { DatabaseType = SapDatabaseType.Hana, }) @@ -3038,7 +3038,7 @@ public async Task CreateOrUpdate_InstallSAPSoftwareOnDistributedSystem() PrivateKey = "{{privateKey}}", }, }, - }), 1), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), new SapVirtualMachineConfiguration("Standard_E4ds_v4", new SapImageReference() + }), 1L), new ApplicationServerConfiguration(new ResourceIdentifier("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), new SapVirtualMachineConfiguration("Standard_E4ds_v4", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP-HA", @@ -3056,7 +3056,7 @@ public async Task CreateOrUpdate_InstallSAPSoftwareOnDistributedSystem() PrivateKey = "{{privateKey}}", }, }, - }), 2), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() + }), 2L), new DatabaseConfiguration(new ResourceIdentifier("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), new SapVirtualMachineConfiguration("Standard_M32ts", new SapImageReference() { Publisher = "RedHat", Offer = "RHEL-SAP-HA", @@ -3074,7 +3074,7 @@ public async Task CreateOrUpdate_InstallSAPSoftwareOnDistributedSystem() PrivateKey = "{{privateKey}}", }, }, - }), 1)) + }), 1L)) { IsSecondaryIPEnabled = true, }, diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapVirtualInstanceResource.cs b/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapVirtualInstanceResource.cs index 8c8e15a64b1f1..069f5196685bd 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapVirtualInstanceResource.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/samples/Generated/Samples/Sample_SapVirtualInstanceResource.cs @@ -160,7 +160,7 @@ public async Task Stop_SAPVirtualInstancesStop() // invoke the operation SapStopContent content = new SapStopContent() { - SoftStopTimeoutSeconds = 0, + SoftStopTimeoutSeconds = 0L, }; ArmOperation lro = await sapVirtualInstance.StopAsync(WaitUntil.Completed, content: content); OperationStatusResult result = lro.Value;