mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 10:18:13 +00:00 
			
		
		
		
	Update Azure Go SDK version to v53.1.0
This commit is contained in:
		
							
								
								
									
										218
									
								
								LICENSES/vendor/github.com/Azure/azure-sdk-for-go/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										218
									
								
								LICENSES/vendor/github.com/Azure/azure-sdk-for-go/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,206 +1,24 @@ | ||||
| = vendor/github.com/Azure/azure-sdk-for-go licensed under: = | ||||
|  | ||||
| The MIT License (MIT) | ||||
|  | ||||
|                                  Apache License | ||||
|                            Version 2.0, January 2004 | ||||
|                         http://www.apache.org/licenses/ | ||||
| Copyright (c) 2021 Microsoft | ||||
|  | ||||
|    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | ||||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
| of this software and associated documentation files (the "Software"), to deal | ||||
| in the Software without restriction, including without limitation the rights | ||||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
| copies of the Software, and to permit persons to whom the Software is | ||||
| furnished to do so, subject to the following conditions: | ||||
|  | ||||
|    1. Definitions. | ||||
| The above copyright notice and this permission notice shall be included in all | ||||
| copies or substantial portions of the Software. | ||||
|  | ||||
|       "License" shall mean the terms and conditions for use, reproduction, | ||||
|       and distribution as defined by Sections 1 through 9 of this document. | ||||
|  | ||||
|       "Licensor" shall mean the copyright owner or entity authorized by | ||||
|       the copyright owner that is granting the License. | ||||
|  | ||||
|       "Legal Entity" shall mean the union of the acting entity and all | ||||
|       other entities that control, are controlled by, or are under common | ||||
|       control with that entity. For the purposes of this definition, | ||||
|       "control" means (i) the power, direct or indirect, to cause the | ||||
|       direction or management of such entity, whether by contract or | ||||
|       otherwise, or (ii) ownership of fifty percent (50%) or more of the | ||||
|       outstanding shares, or (iii) beneficial ownership of such entity. | ||||
|  | ||||
|       "You" (or "Your") shall mean an individual or Legal Entity | ||||
|       exercising permissions granted by this License. | ||||
|  | ||||
|       "Source" form shall mean the preferred form for making modifications, | ||||
|       including but not limited to software source code, documentation | ||||
|       source, and configuration files. | ||||
|  | ||||
|       "Object" form shall mean any form resulting from mechanical | ||||
|       transformation or translation of a Source form, including but | ||||
|       not limited to compiled object code, generated documentation, | ||||
|       and conversions to other media types. | ||||
|  | ||||
|       "Work" shall mean the work of authorship, whether in Source or | ||||
|       Object form, made available under the License, as indicated by a | ||||
|       copyright notice that is included in or attached to the work | ||||
|       (an example is provided in the Appendix below). | ||||
|  | ||||
|       "Derivative Works" shall mean any work, whether in Source or Object | ||||
|       form, that is based on (or derived from) the Work and for which the | ||||
|       editorial revisions, annotations, elaborations, or other modifications | ||||
|       represent, as a whole, an original work of authorship. For the purposes | ||||
|       of this License, Derivative Works shall not include works that remain | ||||
|       separable from, or merely link (or bind by name) to the interfaces of, | ||||
|       the Work and Derivative Works thereof. | ||||
|  | ||||
|       "Contribution" shall mean any work of authorship, including | ||||
|       the original version of the Work and any modifications or additions | ||||
|       to that Work or Derivative Works thereof, that is intentionally | ||||
|       submitted to Licensor for inclusion in the Work by the copyright owner | ||||
|       or by an individual or Legal Entity authorized to submit on behalf of | ||||
|       the copyright owner. For the purposes of this definition, "submitted" | ||||
|       means any form of electronic, verbal, or written communication sent | ||||
|       to the Licensor or its representatives, including but not limited to | ||||
|       communication on electronic mailing lists, source code control systems, | ||||
|       and issue tracking systems that are managed by, or on behalf of, the | ||||
|       Licensor for the purpose of discussing and improving the Work, but | ||||
|       excluding communication that is conspicuously marked or otherwise | ||||
|       designated in writing by the copyright owner as "Not a Contribution." | ||||
|  | ||||
|       "Contributor" shall mean Licensor and any individual or Legal Entity | ||||
|       on behalf of whom a Contribution has been received by Licensor and | ||||
|       subsequently incorporated within the Work. | ||||
|  | ||||
|    2. Grant of Copyright License. Subject to the terms and conditions of | ||||
|       this License, each Contributor hereby grants to You a perpetual, | ||||
|       worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||||
|       copyright license to reproduce, prepare Derivative Works of, | ||||
|       publicly display, publicly perform, sublicense, and distribute the | ||||
|       Work and such Derivative Works in Source or Object form. | ||||
|  | ||||
|    3. Grant of Patent License. Subject to the terms and conditions of | ||||
|       this License, each Contributor hereby grants to You a perpetual, | ||||
|       worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||||
|       (except as stated in this section) patent license to make, have made, | ||||
|       use, offer to sell, sell, import, and otherwise transfer the Work, | ||||
|       where such license applies only to those patent claims licensable | ||||
|       by such Contributor that are necessarily infringed by their | ||||
|       Contribution(s) alone or by combination of their Contribution(s) | ||||
|       with the Work to which such Contribution(s) was submitted. If You | ||||
|       institute patent litigation against any entity (including a | ||||
|       cross-claim or counterclaim in a lawsuit) alleging that the Work | ||||
|       or a Contribution incorporated within the Work constitutes direct | ||||
|       or contributory patent infringement, then any patent licenses | ||||
|       granted to You under this License for that Work shall terminate | ||||
|       as of the date such litigation is filed. | ||||
|  | ||||
|    4. Redistribution. You may reproduce and distribute copies of the | ||||
|       Work or Derivative Works thereof in any medium, with or without | ||||
|       modifications, and in Source or Object form, provided that You | ||||
|       meet the following conditions: | ||||
|  | ||||
|       (a) You must give any other recipients of the Work or | ||||
|           Derivative Works a copy of this License; and | ||||
|  | ||||
|       (b) You must cause any modified files to carry prominent notices | ||||
|           stating that You changed the files; and | ||||
|  | ||||
|       (c) You must retain, in the Source form of any Derivative Works | ||||
|           that You distribute, all copyright, patent, trademark, and | ||||
|           attribution notices from the Source form of the Work, | ||||
|           excluding those notices that do not pertain to any part of | ||||
|           the Derivative Works; and | ||||
|  | ||||
|       (d) If the Work includes a "NOTICE" text file as part of its | ||||
|           distribution, then any Derivative Works that You distribute must | ||||
|           include a readable copy of the attribution notices contained | ||||
|           within such NOTICE file, excluding those notices that do not | ||||
|           pertain to any part of the Derivative Works, in at least one | ||||
|           of the following places: within a NOTICE text file distributed | ||||
|           as part of the Derivative Works; within the Source form or | ||||
|           documentation, if provided along with the Derivative Works; or, | ||||
|           within a display generated by the Derivative Works, if and | ||||
|           wherever such third-party notices normally appear. The contents | ||||
|           of the NOTICE file are for informational purposes only and | ||||
|           do not modify the License. You may add Your own attribution | ||||
|           notices within Derivative Works that You distribute, alongside | ||||
|           or as an addendum to the NOTICE text from the Work, provided | ||||
|           that such additional attribution notices cannot be construed | ||||
|           as modifying the License. | ||||
|  | ||||
|       You may add Your own copyright statement to Your modifications and | ||||
|       may provide additional or different license terms and conditions | ||||
|       for use, reproduction, or distribution of Your modifications, or | ||||
|       for any such Derivative Works as a whole, provided Your use, | ||||
|       reproduction, and distribution of the Work otherwise complies with | ||||
|       the conditions stated in this License. | ||||
|  | ||||
|    5. Submission of Contributions. Unless You explicitly state otherwise, | ||||
|       any Contribution intentionally submitted for inclusion in the Work | ||||
|       by You to the Licensor shall be under the terms and conditions of | ||||
|       this License, without any additional terms or conditions. | ||||
|       Notwithstanding the above, nothing herein shall supersede or modify | ||||
|       the terms of any separate license agreement you may have executed | ||||
|       with Licensor regarding such Contributions. | ||||
|  | ||||
|    6. Trademarks. This License does not grant permission to use the trade | ||||
|       names, trademarks, service marks, or product names of the Licensor, | ||||
|       except as required for reasonable and customary use in describing the | ||||
|       origin of the Work and reproducing the content of the NOTICE file. | ||||
|  | ||||
|    7. Disclaimer of Warranty. Unless required by applicable law or | ||||
|       agreed to in writing, Licensor provides the Work (and each | ||||
|       Contributor provides its Contributions) on an "AS IS" BASIS, | ||||
|       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||||
|       implied, including, without limitation, any warranties or conditions | ||||
|       of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A | ||||
|       PARTICULAR PURPOSE. You are solely responsible for determining the | ||||
|       appropriateness of using or redistributing the Work and assume any | ||||
|       risks associated with Your exercise of permissions under this License. | ||||
|  | ||||
|    8. Limitation of Liability. In no event and under no legal theory, | ||||
|       whether in tort (including negligence), contract, or otherwise, | ||||
|       unless required by applicable law (such as deliberate and grossly | ||||
|       negligent acts) or agreed to in writing, shall any Contributor be | ||||
|       liable to You for damages, including any direct, indirect, special, | ||||
|       incidental, or consequential damages of any character arising as a | ||||
|       result of this License or out of the use or inability to use the | ||||
|       Work (including but not limited to damages for loss of goodwill, | ||||
|       work stoppage, computer failure or malfunction, or any and all | ||||
|       other commercial damages or losses), even if such Contributor | ||||
|       has been advised of the possibility of such damages. | ||||
|  | ||||
|    9. Accepting Warranty or Additional Liability. While redistributing | ||||
|       the Work or Derivative Works thereof, You may choose to offer, | ||||
|       and charge a fee for, acceptance of support, warranty, indemnity, | ||||
|       or other liability obligations and/or rights consistent with this | ||||
|       License. However, in accepting such obligations, You may act only | ||||
|       on Your own behalf and on Your sole responsibility, not on behalf | ||||
|       of any other Contributor, and only if You agree to indemnify, | ||||
|       defend, and hold each Contributor harmless for any liability | ||||
|       incurred by, or claims asserted against, such Contributor by reason | ||||
|       of your accepting any such warranty or additional liability. | ||||
|  | ||||
|    END OF TERMS AND CONDITIONS | ||||
|  | ||||
|    APPENDIX: How to apply the Apache License to your work. | ||||
|  | ||||
|       To apply the Apache License to your work, attach the following | ||||
|       boilerplate notice, with the fields enclosed by brackets "[]" | ||||
|       replaced with your own identifying information. (Don't include | ||||
|       the brackets!)  The text should be enclosed in the appropriate | ||||
|       comment syntax for the file format. We also recommend that a | ||||
|       file or class name and description of purpose be included on the | ||||
|       same "printed page" as the copyright notice for easier | ||||
|       identification within third-party archives. | ||||
|  | ||||
|    Copyright 2020 Microsoft Corporation | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
|  | ||||
| = vendor/github.com/Azure/azure-sdk-for-go/LICENSE c77d8e9ae880604d853d488c416c3bcc | ||||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
| SOFTWARE. | ||||
| = vendor/github.com/Azure/azure-sdk-for-go/LICENSE.txt a0bb788f0d0ea938b4210eccd2c50189 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| = vendor/github.com/satori/go.uuid licensed under: = | ||||
| = vendor/github.com/gofrs/uuid licensed under: = | ||||
| 
 | ||||
| Copyright (C) 2013-2018 by Maxim Bublis <b@codemonkey.ru> | ||||
| 
 | ||||
| @@ -21,4 +21,4 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||||
| OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||||
| WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
| 
 | ||||
| = vendor/github.com/satori/go.uuid/LICENSE ae4ba217c6e20c2d8f48f69966b9121b | ||||
| = vendor/github.com/gofrs/uuid/LICENSE ae4ba217c6e20c2d8f48f69966b9121b | ||||
							
								
								
									
										14
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								go.mod
									
									
									
									
									
								
							| @@ -10,9 +10,9 @@ go 1.16 | ||||
|  | ||||
| require ( | ||||
| 	bitbucket.org/bertimus9/systemstat v0.0.0-20180207000608-0eeff89b0690 | ||||
| 	github.com/Azure/azure-sdk-for-go v43.0.0+incompatible | ||||
| 	github.com/Azure/go-autorest/autorest v0.11.12 | ||||
| 	github.com/Azure/go-autorest/autorest/adal v0.9.5 | ||||
| 	github.com/Azure/azure-sdk-for-go v53.1.0+incompatible | ||||
| 	github.com/Azure/go-autorest/autorest v0.11.17 | ||||
| 	github.com/Azure/go-autorest/autorest/adal v0.9.10 | ||||
| 	github.com/Azure/go-autorest/autorest/to v0.2.0 | ||||
| 	github.com/GoogleCloudPlatform/k8s-cloud-provider v0.0.0-20200415212048-7901bc822317 | ||||
| 	github.com/JeffAshton/win_pdh v0.0.0-20161109143554-76bb4ee9f0ab | ||||
| @@ -149,11 +149,11 @@ replace ( | ||||
| 	cloud.google.com/go/pubsub => cloud.google.com/go/pubsub v1.2.0 | ||||
| 	cloud.google.com/go/storage => cloud.google.com/go/storage v1.6.0 | ||||
| 	dmitri.shuralyov.com/gpu/mtl => dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037 | ||||
| 	github.com/Azure/azure-sdk-for-go => github.com/Azure/azure-sdk-for-go v43.0.0+incompatible | ||||
| 	github.com/Azure/azure-sdk-for-go => github.com/Azure/azure-sdk-for-go v53.1.0+incompatible | ||||
| 	github.com/Azure/go-ansiterm => github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 | ||||
| 	github.com/Azure/go-autorest => github.com/Azure/go-autorest v14.2.0+incompatible | ||||
| 	github.com/Azure/go-autorest/autorest => github.com/Azure/go-autorest/autorest v0.11.12 | ||||
| 	github.com/Azure/go-autorest/autorest/adal => github.com/Azure/go-autorest/autorest/adal v0.9.5 | ||||
| 	github.com/Azure/go-autorest/autorest => github.com/Azure/go-autorest/autorest v0.11.17 | ||||
| 	github.com/Azure/go-autorest/autorest/adal => github.com/Azure/go-autorest/autorest/adal v0.9.10 | ||||
| 	github.com/Azure/go-autorest/autorest/date => github.com/Azure/go-autorest/autorest/date v0.3.0 | ||||
| 	github.com/Azure/go-autorest/autorest/mocks => github.com/Azure/go-autorest/autorest/mocks v0.4.1 | ||||
| 	github.com/Azure/go-autorest/autorest/to => github.com/Azure/go-autorest/autorest/to v0.2.0 | ||||
| @@ -267,6 +267,7 @@ replace ( | ||||
| 	github.com/go-stack/stack => github.com/go-stack/stack v1.8.0 | ||||
| 	github.com/gobuffalo/here => github.com/gobuffalo/here v0.6.0 | ||||
| 	github.com/godbus/dbus/v5 => github.com/godbus/dbus/v5 v5.0.3 | ||||
| 	github.com/gofrs/uuid => github.com/gofrs/uuid v4.0.0+incompatible | ||||
| 	github.com/gogo/protobuf => github.com/gogo/protobuf v1.3.2 | ||||
| 	github.com/golang/freetype => github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 | ||||
| 	github.com/golang/glog => github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b | ||||
| @@ -408,7 +409,6 @@ replace ( | ||||
| 	github.com/russross/blackfriday => github.com/russross/blackfriday v1.5.2 | ||||
| 	github.com/russross/blackfriday/v2 => github.com/russross/blackfriday/v2 v2.0.1 | ||||
| 	github.com/ryanuber/columnize => github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f | ||||
| 	github.com/satori/go.uuid => github.com/satori/go.uuid v1.2.0 | ||||
| 	github.com/sean-/seed => github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 | ||||
| 	github.com/seccomp/libseccomp-golang => github.com/seccomp/libseccomp-golang v0.9.1 | ||||
| 	github.com/sergi/go-diff => github.com/sergi/go-diff v1.1.0 | ||||
|   | ||||
							
								
								
									
										16
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								go.sum
									
									
									
									
									
								
							| @@ -8,16 +8,16 @@ cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqCl | ||||
| cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= | ||||
| cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/azure-sdk-for-go v43.0.0+incompatible h1:/wSNCu0e6EsHFR4Qa3vBEBbicaprEHMyyga9g8RTULI= | ||||
| github.com/Azure/azure-sdk-for-go v43.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= | ||||
| github.com/Azure/azure-sdk-for-go v53.1.0+incompatible h1:f2h0KLVGa3zIaMDMHBe5Lazc0FT5+L78z0B8K9PmDyg= | ||||
| github.com/Azure/azure-sdk-for-go v53.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12 h1:gI8ytXbxMfI+IVbI9mP2JGCTXIuhHLgRlvQ9X4PsnHE= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5 h1:Y3bBUV4rTuxenJJs41HU3qmqsb+auo+a3Lz+PlJPpL0= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17 h1:2zCdHwNgRH+St1J+ZMf66xI8aLr/5KMy+wWLH97zwYM= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10 h1:r6fZHMaHD8B6LDCn0o5vyBFHIHrM6Ywwx7mb49lPItI= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1 h1:K0laFcLE6VLTOwNgSxaGbUcLPuGXlNkbVvq4cW4nIHk= | ||||
| @@ -203,6 +203,8 @@ github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/me | ||||
| github.com/gobuffalo/here v0.6.0/go.mod h1:wAG085dHOYqUpf+Ap+WOdrPTp5IYcDAs/x7PLa8Y5fM= | ||||
| github.com/godbus/dbus/v5 v5.0.3 h1:ZqHaoEF7TBzh4jzPmqVhE/5A1z9of6orkAe5uHoAeME= | ||||
| github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= | ||||
| github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw= | ||||
| github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= | ||||
| github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= | ||||
| github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= | ||||
| github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= | ||||
| @@ -428,8 +430,6 @@ github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR | ||||
| github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= | ||||
| github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= | ||||
| github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= | ||||
| github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= | ||||
| github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= | ||||
| github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= | ||||
| github.com/seccomp/libseccomp-golang v0.9.1 h1:NJjM5DNFOs0s3kYE1WUOr6G8V97sdt46rlXTMfXGWBo= | ||||
| github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo= | ||||
|   | ||||
| @@ -24,8 +24,9 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/apiserver/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/apiserver/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -24,8 +24,9 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/cli-runtime/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/cli-runtime/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -23,8 +23,9 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo | ||||
| cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
| @@ -6,8 +6,8 @@ go 1.16 | ||||
|  | ||||
| require ( | ||||
| 	cloud.google.com/go v0.54.0 // indirect | ||||
| 	github.com/Azure/go-autorest/autorest v0.11.12 | ||||
| 	github.com/Azure/go-autorest/autorest/adal v0.9.5 | ||||
| 	github.com/Azure/go-autorest/autorest v0.11.17 | ||||
| 	github.com/Azure/go-autorest/autorest/adal v0.9.10 | ||||
| 	github.com/davecgh/go-spew v1.1.1 | ||||
| 	github.com/evanphx/json-patch v4.9.0+incompatible | ||||
| 	github.com/gogo/protobuf v1.3.2 | ||||
|   | ||||
							
								
								
									
										7
									
								
								staging/src/k8s.io/client-go/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										7
									
								
								staging/src/k8s.io/client-go/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -24,10 +24,11 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12 h1:gI8ytXbxMfI+IVbI9mP2JGCTXIuhHLgRlvQ9X4PsnHE= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5 h1:Y3bBUV4rTuxenJJs41HU3qmqsb+auo+a3Lz+PlJPpL0= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17 h1:2zCdHwNgRH+St1J+ZMf66xI8aLr/5KMy+wWLH97zwYM= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10 h1:r6fZHMaHD8B6LDCn0o5vyBFHIHrM6Ywwx7mb49lPItI= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1 h1:K0laFcLE6VLTOwNgSxaGbUcLPuGXlNkbVvq4cW4nIHk= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/cloud-provider/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/cloud-provider/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -25,8 +25,9 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7 | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
| @@ -22,8 +22,9 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo | ||||
| cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/component-base/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/component-base/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -25,8 +25,9 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7 | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/component-helpers/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/component-helpers/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -22,8 +22,9 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo | ||||
| cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/controller-manager/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/controller-manager/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -30,8 +30,9 @@ github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/kube-aggregator/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/kube-aggregator/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -24,8 +24,9 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
| @@ -24,8 +24,9 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/kube-proxy/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/kube-proxy/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -24,8 +24,9 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/kube-scheduler/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/kube-scheduler/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -24,8 +24,9 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/kubectl/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/kubectl/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -25,8 +25,9 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7 | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/kubelet/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/kubelet/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -24,8 +24,9 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
| @@ -6,9 +6,9 @@ go 1.16 | ||||
|  | ||||
| require ( | ||||
| 	cloud.google.com/go v0.54.0 | ||||
| 	github.com/Azure/azure-sdk-for-go v43.0.0+incompatible | ||||
| 	github.com/Azure/go-autorest/autorest v0.11.12 | ||||
| 	github.com/Azure/go-autorest/autorest/adal v0.9.5 | ||||
| 	github.com/Azure/azure-sdk-for-go v53.1.0+incompatible | ||||
| 	github.com/Azure/go-autorest/autorest v0.11.17 | ||||
| 	github.com/Azure/go-autorest/autorest/adal v0.9.10 | ||||
| 	github.com/Azure/go-autorest/autorest/mocks v0.4.1 | ||||
| 	github.com/Azure/go-autorest/autorest/to v0.2.0 | ||||
| 	github.com/Azure/go-autorest/autorest/validation v0.1.0 // indirect | ||||
| @@ -16,12 +16,12 @@ require ( | ||||
| 	github.com/aws/aws-sdk-go v1.35.24 | ||||
| 	github.com/blang/semver v3.5.1+incompatible | ||||
| 	github.com/dnaeon/go-vcr v1.0.1 // indirect | ||||
| 	github.com/gofrs/uuid v4.0.0+incompatible // indirect | ||||
| 	github.com/golang/mock v1.4.4 | ||||
| 	github.com/google/go-cmp v0.5.2 | ||||
| 	github.com/gophercloud/gophercloud v0.1.0 | ||||
| 	github.com/mitchellh/mapstructure v1.1.2 | ||||
| 	github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021 | ||||
| 	github.com/satori/go.uuid v1.2.0 // indirect | ||||
| 	github.com/stretchr/objx v0.2.0 // indirect | ||||
| 	github.com/stretchr/testify v1.6.1 | ||||
| 	github.com/vmware/govmomi v0.20.3 | ||||
|   | ||||
							
								
								
									
										15
									
								
								staging/src/k8s.io/legacy-cloud-providers/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										15
									
								
								staging/src/k8s.io/legacy-cloud-providers/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -24,15 +24,16 @@ cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiy | ||||
| cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= | ||||
| cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/azure-sdk-for-go v43.0.0+incompatible h1:/wSNCu0e6EsHFR4Qa3vBEBbicaprEHMyyga9g8RTULI= | ||||
| github.com/Azure/azure-sdk-for-go v43.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= | ||||
| github.com/Azure/azure-sdk-for-go v53.1.0+incompatible h1:f2h0KLVGa3zIaMDMHBe5Lazc0FT5+L78z0B8K9PmDyg= | ||||
| github.com/Azure/azure-sdk-for-go v53.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12 h1:gI8ytXbxMfI+IVbI9mP2JGCTXIuhHLgRlvQ9X4PsnHE= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5 h1:Y3bBUV4rTuxenJJs41HU3qmqsb+auo+a3Lz+PlJPpL0= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17 h1:2zCdHwNgRH+St1J+ZMf66xI8aLr/5KMy+wWLH97zwYM= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10 h1:r6fZHMaHD8B6LDCn0o5vyBFHIHrM6Ywwx7mb49lPItI= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1 h1:K0laFcLE6VLTOwNgSxaGbUcLPuGXlNkbVvq4cW4nIHk= | ||||
| @@ -131,6 +132,8 @@ github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34 | ||||
| github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= | ||||
| github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= | ||||
| github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= | ||||
| github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw= | ||||
| github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= | ||||
| github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= | ||||
| github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= | ||||
| @@ -337,8 +340,6 @@ github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021 h1:if3/24+h9Sq6eDx8 | ||||
| github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto= | ||||
| github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= | ||||
| github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= | ||||
| github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= | ||||
| github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= | ||||
| github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= | ||||
| github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= | ||||
| github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/metrics/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/metrics/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -22,8 +22,9 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo | ||||
| cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/sample-apiserver/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/sample-apiserver/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -24,8 +24,9 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/sample-cli-plugin/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/sample-cli-plugin/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -23,8 +23,9 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo | ||||
| cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										3
									
								
								staging/src/k8s.io/sample-controller/go.sum
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								staging/src/k8s.io/sample-controller/go.sum
									
									
									
										generated
									
									
									
								
							| @@ -22,8 +22,9 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo | ||||
| cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= | ||||
| github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= | ||||
| github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= | ||||
| github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= | ||||
| github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= | ||||
|   | ||||
							
								
								
									
										202
									
								
								vendor/github.com/Azure/azure-sdk-for-go/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										202
									
								
								vendor/github.com/Azure/azure-sdk-for-go/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,202 +0,0 @@ | ||||
|  | ||||
|                                  Apache License | ||||
|                            Version 2.0, January 2004 | ||||
|                         http://www.apache.org/licenses/ | ||||
|  | ||||
|    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | ||||
|  | ||||
|    1. Definitions. | ||||
|  | ||||
|       "License" shall mean the terms and conditions for use, reproduction, | ||||
|       and distribution as defined by Sections 1 through 9 of this document. | ||||
|  | ||||
|       "Licensor" shall mean the copyright owner or entity authorized by | ||||
|       the copyright owner that is granting the License. | ||||
|  | ||||
|       "Legal Entity" shall mean the union of the acting entity and all | ||||
|       other entities that control, are controlled by, or are under common | ||||
|       control with that entity. For the purposes of this definition, | ||||
|       "control" means (i) the power, direct or indirect, to cause the | ||||
|       direction or management of such entity, whether by contract or | ||||
|       otherwise, or (ii) ownership of fifty percent (50%) or more of the | ||||
|       outstanding shares, or (iii) beneficial ownership of such entity. | ||||
|  | ||||
|       "You" (or "Your") shall mean an individual or Legal Entity | ||||
|       exercising permissions granted by this License. | ||||
|  | ||||
|       "Source" form shall mean the preferred form for making modifications, | ||||
|       including but not limited to software source code, documentation | ||||
|       source, and configuration files. | ||||
|  | ||||
|       "Object" form shall mean any form resulting from mechanical | ||||
|       transformation or translation of a Source form, including but | ||||
|       not limited to compiled object code, generated documentation, | ||||
|       and conversions to other media types. | ||||
|  | ||||
|       "Work" shall mean the work of authorship, whether in Source or | ||||
|       Object form, made available under the License, as indicated by a | ||||
|       copyright notice that is included in or attached to the work | ||||
|       (an example is provided in the Appendix below). | ||||
|  | ||||
|       "Derivative Works" shall mean any work, whether in Source or Object | ||||
|       form, that is based on (or derived from) the Work and for which the | ||||
|       editorial revisions, annotations, elaborations, or other modifications | ||||
|       represent, as a whole, an original work of authorship. For the purposes | ||||
|       of this License, Derivative Works shall not include works that remain | ||||
|       separable from, or merely link (or bind by name) to the interfaces of, | ||||
|       the Work and Derivative Works thereof. | ||||
|  | ||||
|       "Contribution" shall mean any work of authorship, including | ||||
|       the original version of the Work and any modifications or additions | ||||
|       to that Work or Derivative Works thereof, that is intentionally | ||||
|       submitted to Licensor for inclusion in the Work by the copyright owner | ||||
|       or by an individual or Legal Entity authorized to submit on behalf of | ||||
|       the copyright owner. For the purposes of this definition, "submitted" | ||||
|       means any form of electronic, verbal, or written communication sent | ||||
|       to the Licensor or its representatives, including but not limited to | ||||
|       communication on electronic mailing lists, source code control systems, | ||||
|       and issue tracking systems that are managed by, or on behalf of, the | ||||
|       Licensor for the purpose of discussing and improving the Work, but | ||||
|       excluding communication that is conspicuously marked or otherwise | ||||
|       designated in writing by the copyright owner as "Not a Contribution." | ||||
|  | ||||
|       "Contributor" shall mean Licensor and any individual or Legal Entity | ||||
|       on behalf of whom a Contribution has been received by Licensor and | ||||
|       subsequently incorporated within the Work. | ||||
|  | ||||
|    2. Grant of Copyright License. Subject to the terms and conditions of | ||||
|       this License, each Contributor hereby grants to You a perpetual, | ||||
|       worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||||
|       copyright license to reproduce, prepare Derivative Works of, | ||||
|       publicly display, publicly perform, sublicense, and distribute the | ||||
|       Work and such Derivative Works in Source or Object form. | ||||
|  | ||||
|    3. Grant of Patent License. Subject to the terms and conditions of | ||||
|       this License, each Contributor hereby grants to You a perpetual, | ||||
|       worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||||
|       (except as stated in this section) patent license to make, have made, | ||||
|       use, offer to sell, sell, import, and otherwise transfer the Work, | ||||
|       where such license applies only to those patent claims licensable | ||||
|       by such Contributor that are necessarily infringed by their | ||||
|       Contribution(s) alone or by combination of their Contribution(s) | ||||
|       with the Work to which such Contribution(s) was submitted. If You | ||||
|       institute patent litigation against any entity (including a | ||||
|       cross-claim or counterclaim in a lawsuit) alleging that the Work | ||||
|       or a Contribution incorporated within the Work constitutes direct | ||||
|       or contributory patent infringement, then any patent licenses | ||||
|       granted to You under this License for that Work shall terminate | ||||
|       as of the date such litigation is filed. | ||||
|  | ||||
|    4. Redistribution. You may reproduce and distribute copies of the | ||||
|       Work or Derivative Works thereof in any medium, with or without | ||||
|       modifications, and in Source or Object form, provided that You | ||||
|       meet the following conditions: | ||||
|  | ||||
|       (a) You must give any other recipients of the Work or | ||||
|           Derivative Works a copy of this License; and | ||||
|  | ||||
|       (b) You must cause any modified files to carry prominent notices | ||||
|           stating that You changed the files; and | ||||
|  | ||||
|       (c) You must retain, in the Source form of any Derivative Works | ||||
|           that You distribute, all copyright, patent, trademark, and | ||||
|           attribution notices from the Source form of the Work, | ||||
|           excluding those notices that do not pertain to any part of | ||||
|           the Derivative Works; and | ||||
|  | ||||
|       (d) If the Work includes a "NOTICE" text file as part of its | ||||
|           distribution, then any Derivative Works that You distribute must | ||||
|           include a readable copy of the attribution notices contained | ||||
|           within such NOTICE file, excluding those notices that do not | ||||
|           pertain to any part of the Derivative Works, in at least one | ||||
|           of the following places: within a NOTICE text file distributed | ||||
|           as part of the Derivative Works; within the Source form or | ||||
|           documentation, if provided along with the Derivative Works; or, | ||||
|           within a display generated by the Derivative Works, if and | ||||
|           wherever such third-party notices normally appear. The contents | ||||
|           of the NOTICE file are for informational purposes only and | ||||
|           do not modify the License. You may add Your own attribution | ||||
|           notices within Derivative Works that You distribute, alongside | ||||
|           or as an addendum to the NOTICE text from the Work, provided | ||||
|           that such additional attribution notices cannot be construed | ||||
|           as modifying the License. | ||||
|  | ||||
|       You may add Your own copyright statement to Your modifications and | ||||
|       may provide additional or different license terms and conditions | ||||
|       for use, reproduction, or distribution of Your modifications, or | ||||
|       for any such Derivative Works as a whole, provided Your use, | ||||
|       reproduction, and distribution of the Work otherwise complies with | ||||
|       the conditions stated in this License. | ||||
|  | ||||
|    5. Submission of Contributions. Unless You explicitly state otherwise, | ||||
|       any Contribution intentionally submitted for inclusion in the Work | ||||
|       by You to the Licensor shall be under the terms and conditions of | ||||
|       this License, without any additional terms or conditions. | ||||
|       Notwithstanding the above, nothing herein shall supersede or modify | ||||
|       the terms of any separate license agreement you may have executed | ||||
|       with Licensor regarding such Contributions. | ||||
|  | ||||
|    6. Trademarks. This License does not grant permission to use the trade | ||||
|       names, trademarks, service marks, or product names of the Licensor, | ||||
|       except as required for reasonable and customary use in describing the | ||||
|       origin of the Work and reproducing the content of the NOTICE file. | ||||
|  | ||||
|    7. Disclaimer of Warranty. Unless required by applicable law or | ||||
|       agreed to in writing, Licensor provides the Work (and each | ||||
|       Contributor provides its Contributions) on an "AS IS" BASIS, | ||||
|       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||||
|       implied, including, without limitation, any warranties or conditions | ||||
|       of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A | ||||
|       PARTICULAR PURPOSE. You are solely responsible for determining the | ||||
|       appropriateness of using or redistributing the Work and assume any | ||||
|       risks associated with Your exercise of permissions under this License. | ||||
|  | ||||
|    8. Limitation of Liability. In no event and under no legal theory, | ||||
|       whether in tort (including negligence), contract, or otherwise, | ||||
|       unless required by applicable law (such as deliberate and grossly | ||||
|       negligent acts) or agreed to in writing, shall any Contributor be | ||||
|       liable to You for damages, including any direct, indirect, special, | ||||
|       incidental, or consequential damages of any character arising as a | ||||
|       result of this License or out of the use or inability to use the | ||||
|       Work (including but not limited to damages for loss of goodwill, | ||||
|       work stoppage, computer failure or malfunction, or any and all | ||||
|       other commercial damages or losses), even if such Contributor | ||||
|       has been advised of the possibility of such damages. | ||||
|  | ||||
|    9. Accepting Warranty or Additional Liability. While redistributing | ||||
|       the Work or Derivative Works thereof, You may choose to offer, | ||||
|       and charge a fee for, acceptance of support, warranty, indemnity, | ||||
|       or other liability obligations and/or rights consistent with this | ||||
|       License. However, in accepting such obligations, You may act only | ||||
|       on Your own behalf and on Your sole responsibility, not on behalf | ||||
|       of any other Contributor, and only if You agree to indemnify, | ||||
|       defend, and hold each Contributor harmless for any liability | ||||
|       incurred by, or claims asserted against, such Contributor by reason | ||||
|       of your accepting any such warranty or additional liability. | ||||
|  | ||||
|    END OF TERMS AND CONDITIONS | ||||
|  | ||||
|    APPENDIX: How to apply the Apache License to your work. | ||||
|  | ||||
|       To apply the Apache License to your work, attach the following | ||||
|       boilerplate notice, with the fields enclosed by brackets "[]" | ||||
|       replaced with your own identifying information. (Don't include | ||||
|       the brackets!)  The text should be enclosed in the appropriate | ||||
|       comment syntax for the file format. We also recommend that a | ||||
|       file or class name and description of purpose be included on the | ||||
|       same "printed page" as the copyright notice for easier | ||||
|       identification within third-party archives. | ||||
|  | ||||
|    Copyright 2020 Microsoft Corporation | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
							
								
								
									
										21
									
								
								vendor/github.com/Azure/azure-sdk-for-go/LICENSE.txt
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								vendor/github.com/Azure/azure-sdk-for-go/LICENSE.txt
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| The MIT License (MIT) | ||||
|  | ||||
| Copyright (c) 2021 Microsoft | ||||
|  | ||||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
| of this software and associated documentation files (the "Software"), to deal | ||||
| in the Software without restriction, including without limitation the rights | ||||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
| copies of the Software, and to permit persons to whom the Software is | ||||
| furnished to do so, subject to the following conditions: | ||||
|  | ||||
| The above copyright notice and this permission notice shall be included in all | ||||
| copies or substantial portions of the Software. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
| SOFTWARE. | ||||
							
								
								
									
										96
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										96
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-12-01/compute/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,96 @@ | ||||
| Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82//specification/compute/resource-manager/readme.md tag: `package-2019-12-01` | ||||
|  | ||||
| Code generator @microsoft.azure/autorest.go@2.1.178 | ||||
|  | ||||
|  | ||||
| ### New Funcs | ||||
|  | ||||
| 1. *ContainerServicesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ContainerServicesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DedicatedHostsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DedicatedHostsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DedicatedHostsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DiskEncryptionSetsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DiskEncryptionSetsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DiskEncryptionSetsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DisksCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DisksDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DisksGrantAccessFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DisksRevokeAccessFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DisksUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleriesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleriesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleriesUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryApplicationVersionsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryApplicationVersionsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryApplicationVersionsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryApplicationsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryApplicationsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryApplicationsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryImageVersionsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryImageVersionsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryImageVersionsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryImagesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryImagesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *GalleryImagesUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ImagesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ImagesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ImagesUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *LogAnalyticsExportRequestRateByIntervalFuture.UnmarshalJSON([]byte) error | ||||
| 1. *LogAnalyticsExportThrottledRequestsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SnapshotsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SnapshotsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SnapshotsGrantAccessFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SnapshotsRevokeAccessFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SnapshotsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineExtensionsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineExtensionsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineExtensionsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetExtensionsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetExtensionsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetExtensionsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetRollingUpgradesCancelFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetRollingUpgradesStartOSUpgradeFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMExtensionsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMExtensionsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMsDeallocateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMsPerformMaintenanceFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMsPowerOffFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMsRedeployFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMsReimageAllFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMsReimageFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMsRestartFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMsRunCommandFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMsStartFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetVMsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsDeallocateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsDeleteInstancesFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsPerformMaintenanceFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsPowerOffFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsRedeployFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsReimageAllFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsReimageFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsRestartFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsSetOrchestrationServiceStateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsStartFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachineScaleSetsUpdateInstancesFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesCaptureFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesConvertToManagedDisksFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesDeallocateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesPerformMaintenanceFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesPowerOffFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesReapplyFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesRedeployFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesReimageFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesRestartFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesRunCommandFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesStartFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualMachinesUpdateFuture.UnmarshalJSON([]byte) error | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -74,6 +63,7 @@ func (client AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, resourc | ||||
| 	result, err = client.CreateOrUpdateResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "CreateOrUpdate", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -113,7 +103,6 @@ func (client AvailabilitySetsClient) CreateOrUpdateSender(req *http.Request) (*h | ||||
| func (client AvailabilitySetsClient) CreateOrUpdateResponder(resp *http.Response) (result AvailabilitySet, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -152,6 +141,7 @@ func (client AvailabilitySetsClient) Delete(ctx context.Context, resourceGroupNa | ||||
| 	result, err = client.DeleteResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Delete", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -189,7 +179,6 @@ func (client AvailabilitySetsClient) DeleteSender(req *http.Request) (*http.Resp | ||||
| func (client AvailabilitySetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -227,6 +216,7 @@ func (client AvailabilitySetsClient) Get(ctx context.Context, resourceGroupName | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -264,7 +254,6 @@ func (client AvailabilitySetsClient) GetSender(req *http.Request) (*http.Respons | ||||
| func (client AvailabilitySetsClient) GetResponder(resp *http.Response) (result AvailabilitySet, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -303,6 +292,11 @@ func (client AvailabilitySetsClient) List(ctx context.Context, resourceGroupName | ||||
| 	result.aslr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.aslr.hasNextLink() && result.aslr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -339,7 +333,6 @@ func (client AvailabilitySetsClient) ListSender(req *http.Request) (*http.Respon | ||||
| func (client AvailabilitySetsClient) ListResponder(resp *http.Response) (result AvailabilitySetListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -416,6 +409,7 @@ func (client AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, res | ||||
| 	result, err = client.ListAvailableSizesResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListAvailableSizes", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -453,7 +447,6 @@ func (client AvailabilitySetsClient) ListAvailableSizesSender(req *http.Request) | ||||
| func (client AvailabilitySetsClient) ListAvailableSizesResponder(resp *http.Response) (result VirtualMachineSizeListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -463,7 +456,7 @@ func (client AvailabilitySetsClient) ListAvailableSizesResponder(resp *http.Resp | ||||
|  | ||||
| // ListBySubscription lists all availability sets in a subscription. | ||||
| // Parameters: | ||||
| // expand - the expand expression to apply to the operation. | ||||
| // expand - the expand expression to apply to the operation. Allowed values are 'instanceView'. | ||||
| func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, expand string) (result AvailabilitySetListResultPage, err error) { | ||||
| 	if tracing.IsEnabled() { | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/AvailabilitySetsClient.ListBySubscription") | ||||
| @@ -492,6 +485,11 @@ func (client AvailabilitySetsClient) ListBySubscription(ctx context.Context, exp | ||||
| 	result.aslr, err = client.ListBySubscriptionResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "ListBySubscription", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.aslr.hasNextLink() && result.aslr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -530,7 +528,6 @@ func (client AvailabilitySetsClient) ListBySubscriptionSender(req *http.Request) | ||||
| func (client AvailabilitySetsClient) ListBySubscriptionResponder(resp *http.Response) (result AvailabilitySetListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -607,6 +604,7 @@ func (client AvailabilitySetsClient) Update(ctx context.Context, resourceGroupNa | ||||
| 	result, err = client.UpdateResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.AvailabilitySetsClient", "Update", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -646,7 +644,6 @@ func (client AvailabilitySetsClient) UpdateSender(req *http.Request) (*http.Resp | ||||
| func (client AvailabilitySetsClient) UpdateResponder(resp *http.Response) (result AvailabilitySet, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -3,19 +3,8 @@ | ||||
| // Compute Client | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -54,8 +43,8 @@ func (client ContainerServicesClient) CreateOrUpdate(ctx context.Context, resour | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -99,7 +88,7 @@ func (client ContainerServicesClient) CreateOrUpdate(ctx context.Context, resour | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -137,7 +126,10 @@ func (client ContainerServicesClient) CreateOrUpdateSender(req *http.Request) (f | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -146,7 +138,6 @@ func (client ContainerServicesClient) CreateOrUpdateSender(req *http.Request) (f | ||||
| func (client ContainerServicesClient) CreateOrUpdateResponder(resp *http.Response) (result ContainerService, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -166,8 +157,8 @@ func (client ContainerServicesClient) Delete(ctx context.Context, resourceGroupN | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -180,7 +171,7 @@ func (client ContainerServicesClient) Delete(ctx context.Context, resourceGroupN | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -216,7 +207,10 @@ func (client ContainerServicesClient) DeleteSender(req *http.Request) (future Co | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -225,7 +219,6 @@ func (client ContainerServicesClient) DeleteSender(req *http.Request) (future Co | ||||
| func (client ContainerServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -265,6 +258,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -302,7 +296,6 @@ func (client ContainerServicesClient) GetSender(req *http.Request) (*http.Respon | ||||
| func (client ContainerServicesClient) GetResponder(resp *http.Response) (result ContainerService, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -340,6 +333,11 @@ func (client ContainerServicesClient) List(ctx context.Context) (result Containe | ||||
| 	result.cslr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.cslr.hasNextLink() && result.cslr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -375,7 +373,6 @@ func (client ContainerServicesClient) ListSender(req *http.Request) (*http.Respo | ||||
| func (client ContainerServicesClient) ListResponder(resp *http.Response) (result ContainerServiceListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -453,6 +450,11 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r | ||||
| 	result.cslr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.cslr.hasNextLink() && result.cslr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -489,7 +491,6 @@ func (client ContainerServicesClient) ListByResourceGroupSender(req *http.Reques | ||||
| func (client ContainerServicesClient) ListByResourceGroupResponder(resp *http.Response) (result ContainerServiceListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -87,6 +76,7 @@ func (client DedicatedHostGroupsClient) CreateOrUpdate(ctx context.Context, reso | ||||
| 	result, err = client.CreateOrUpdateResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -126,7 +116,6 @@ func (client DedicatedHostGroupsClient) CreateOrUpdateSender(req *http.Request) | ||||
| func (client DedicatedHostGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result DedicatedHostGroup, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -165,6 +154,7 @@ func (client DedicatedHostGroupsClient) Delete(ctx context.Context, resourceGrou | ||||
| 	result, err = client.DeleteResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Delete", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -202,7 +192,6 @@ func (client DedicatedHostGroupsClient) DeleteSender(req *http.Request) (*http.R | ||||
| func (client DedicatedHostGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -240,6 +229,7 @@ func (client DedicatedHostGroupsClient) Get(ctx context.Context, resourceGroupNa | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -277,7 +267,6 @@ func (client DedicatedHostGroupsClient) GetSender(req *http.Request) (*http.Resp | ||||
| func (client DedicatedHostGroupsClient) GetResponder(resp *http.Response) (result DedicatedHostGroup, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -317,6 +306,11 @@ func (client DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, | ||||
| 	result.dhglr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -353,7 +347,6 @@ func (client DedicatedHostGroupsClient) ListByResourceGroupSender(req *http.Requ | ||||
| func (client DedicatedHostGroupsClient) ListByResourceGroupResponder(resp *http.Response) (result DedicatedHostGroupListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -428,6 +421,11 @@ func (client DedicatedHostGroupsClient) ListBySubscription(ctx context.Context) | ||||
| 	result.dhglr, err = client.ListBySubscriptionResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "ListBySubscription", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.dhglr.hasNextLink() && result.dhglr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -463,7 +461,6 @@ func (client DedicatedHostGroupsClient) ListBySubscriptionSender(req *http.Reque | ||||
| func (client DedicatedHostGroupsClient) ListBySubscriptionResponder(resp *http.Response) (result DedicatedHostGroupListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -540,6 +537,7 @@ func (client DedicatedHostGroupsClient) Update(ctx context.Context, resourceGrou | ||||
| 	result, err = client.UpdateResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostGroupsClient", "Update", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -579,7 +577,6 @@ func (client DedicatedHostGroupsClient) UpdateSender(req *http.Request) (*http.R | ||||
| func (client DedicatedHostGroupsClient) UpdateResponder(resp *http.Response) (result DedicatedHostGroup, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -53,8 +42,8 @@ func (client DedicatedHostsClient) CreateOrUpdate(ctx context.Context, resourceG | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DedicatedHostsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -79,7 +68,7 @@ func (client DedicatedHostsClient) CreateOrUpdate(ctx context.Context, resourceG | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -118,7 +107,10 @@ func (client DedicatedHostsClient) CreateOrUpdateSender(req *http.Request) (futu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -127,7 +119,6 @@ func (client DedicatedHostsClient) CreateOrUpdateSender(req *http.Request) (futu | ||||
| func (client DedicatedHostsClient) CreateOrUpdateResponder(resp *http.Response) (result DedicatedHost, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -145,8 +136,8 @@ func (client DedicatedHostsClient) Delete(ctx context.Context, resourceGroupName | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DedicatedHostsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -159,7 +150,7 @@ func (client DedicatedHostsClient) Delete(ctx context.Context, resourceGroupName | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -196,7 +187,10 @@ func (client DedicatedHostsClient) DeleteSender(req *http.Request) (future Dedic | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -205,7 +199,6 @@ func (client DedicatedHostsClient) DeleteSender(req *http.Request) (future Dedic | ||||
| func (client DedicatedHostsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -245,6 +238,7 @@ func (client DedicatedHostsClient) Get(ctx context.Context, resourceGroupName st | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -286,7 +280,6 @@ func (client DedicatedHostsClient) GetSender(req *http.Request) (*http.Response, | ||||
| func (client DedicatedHostsClient) GetResponder(resp *http.Response) (result DedicatedHost, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -327,6 +320,11 @@ func (client DedicatedHostsClient) ListByHostGroup(ctx context.Context, resource | ||||
| 	result.dhlr, err = client.ListByHostGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "ListByHostGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.dhlr.hasNextLink() && result.dhlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -364,7 +362,6 @@ func (client DedicatedHostsClient) ListByHostGroupSender(req *http.Request) (*ht | ||||
| func (client DedicatedHostsClient) ListByHostGroupResponder(resp *http.Response) (result DedicatedHostListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -420,8 +417,8 @@ func (client DedicatedHostsClient) Update(ctx context.Context, resourceGroupName | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DedicatedHostsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -434,7 +431,7 @@ func (client DedicatedHostsClient) Update(ctx context.Context, resourceGroupName | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DedicatedHostsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -473,7 +470,10 @@ func (client DedicatedHostsClient) UpdateSender(req *http.Request) (future Dedic | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -482,7 +482,6 @@ func (client DedicatedHostsClient) UpdateSender(req *http.Request) (future Dedic | ||||
| func (client DedicatedHostsClient) UpdateResponder(resp *http.Response) (result DedicatedHost, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -56,8 +45,8 @@ func (client DiskEncryptionSetsClient) CreateOrUpdate(ctx context.Context, resou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -81,7 +70,7 @@ func (client DiskEncryptionSetsClient) CreateOrUpdate(ctx context.Context, resou | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -119,7 +108,10 @@ func (client DiskEncryptionSetsClient) CreateOrUpdateSender(req *http.Request) ( | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -128,7 +120,6 @@ func (client DiskEncryptionSetsClient) CreateOrUpdateSender(req *http.Request) ( | ||||
| func (client DiskEncryptionSetsClient) CreateOrUpdateResponder(resp *http.Response) (result DiskEncryptionSet, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -147,8 +138,8 @@ func (client DiskEncryptionSetsClient) Delete(ctx context.Context, resourceGroup | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -161,7 +152,7 @@ func (client DiskEncryptionSetsClient) Delete(ctx context.Context, resourceGroup | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -197,7 +188,10 @@ func (client DiskEncryptionSetsClient) DeleteSender(req *http.Request) (future D | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -206,7 +200,6 @@ func (client DiskEncryptionSetsClient) DeleteSender(req *http.Request) (future D | ||||
| func (client DiskEncryptionSetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -246,6 +239,7 @@ func (client DiskEncryptionSetsClient) Get(ctx context.Context, resourceGroupNam | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -283,7 +277,6 @@ func (client DiskEncryptionSetsClient) GetSender(req *http.Request) (*http.Respo | ||||
| func (client DiskEncryptionSetsClient) GetResponder(resp *http.Response) (result DiskEncryptionSet, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -320,6 +313,11 @@ func (client DiskEncryptionSetsClient) List(ctx context.Context) (result DiskEnc | ||||
| 	result.desl, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.desl.hasNextLink() && result.desl.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -355,7 +353,6 @@ func (client DiskEncryptionSetsClient) ListSender(req *http.Request) (*http.Resp | ||||
| func (client DiskEncryptionSetsClient) ListResponder(resp *http.Response) (result DiskEncryptionSetList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -431,6 +428,11 @@ func (client DiskEncryptionSetsClient) ListByResourceGroup(ctx context.Context, | ||||
| 	result.desl, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.desl.hasNextLink() && result.desl.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -467,7 +469,6 @@ func (client DiskEncryptionSetsClient) ListByResourceGroupSender(req *http.Reque | ||||
| func (client DiskEncryptionSetsClient) ListByResourceGroupResponder(resp *http.Response) (result DiskEncryptionSetList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -525,8 +526,8 @@ func (client DiskEncryptionSetsClient) Update(ctx context.Context, resourceGroup | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -539,7 +540,7 @@ func (client DiskEncryptionSetsClient) Update(ctx context.Context, resourceGroup | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -577,7 +578,10 @@ func (client DiskEncryptionSetsClient) UpdateSender(req *http.Request) (future D | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -586,7 +590,6 @@ func (client DiskEncryptionSetsClient) UpdateSender(req *http.Request) (future D | ||||
| func (client DiskEncryptionSetsClient) UpdateResponder(resp *http.Response) (result DiskEncryptionSet, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -54,8 +43,8 @@ func (client DisksClient) CreateOrUpdate(ctx context.Context, resourceGroupName | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DisksClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -83,7 +72,7 @@ func (client DisksClient) CreateOrUpdate(ctx context.Context, resourceGroupName | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -123,7 +112,10 @@ func (client DisksClient) CreateOrUpdateSender(req *http.Request) (future DisksC | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -132,7 +124,6 @@ func (client DisksClient) CreateOrUpdateSender(req *http.Request) (future DisksC | ||||
| func (client DisksClient) CreateOrUpdateResponder(resp *http.Response) (result Disk, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -151,8 +142,8 @@ func (client DisksClient) Delete(ctx context.Context, resourceGroupName string, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DisksClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -165,7 +156,7 @@ func (client DisksClient) Delete(ctx context.Context, resourceGroupName string, | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -201,7 +192,10 @@ func (client DisksClient) DeleteSender(req *http.Request) (future DisksDeleteFut | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -210,7 +204,6 @@ func (client DisksClient) DeleteSender(req *http.Request) (future DisksDeleteFut | ||||
| func (client DisksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -250,6 +243,7 @@ func (client DisksClient) Get(ctx context.Context, resourceGroupName string, dis | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -287,7 +281,6 @@ func (client DisksClient) GetSender(req *http.Request) (*http.Response, error) { | ||||
| func (client DisksClient) GetResponder(resp *http.Response) (result Disk, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -307,8 +300,8 @@ func (client DisksClient) GrantAccess(ctx context.Context, resourceGroupName str | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DisksClient.GrantAccess") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -327,7 +320,7 @@ func (client DisksClient) GrantAccess(ctx context.Context, resourceGroupName str | ||||
|  | ||||
| 	result, err = client.GrantAccessSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "GrantAccess", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "GrantAccess", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -365,7 +358,10 @@ func (client DisksClient) GrantAccessSender(req *http.Request) (future DisksGran | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -374,7 +370,6 @@ func (client DisksClient) GrantAccessSender(req *http.Request) (future DisksGran | ||||
| func (client DisksClient) GrantAccessResponder(resp *http.Response) (result AccessURI, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -411,6 +406,11 @@ func (client DisksClient) List(ctx context.Context) (result DiskListPage, err er | ||||
| 	result.dl, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.dl.hasNextLink() && result.dl.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -446,7 +446,6 @@ func (client DisksClient) ListSender(req *http.Request) (*http.Response, error) | ||||
| func (client DisksClient) ListResponder(resp *http.Response) (result DiskList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -522,6 +521,11 @@ func (client DisksClient) ListByResourceGroup(ctx context.Context, resourceGroup | ||||
| 	result.dl, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.dl.hasNextLink() && result.dl.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -558,7 +562,6 @@ func (client DisksClient) ListByResourceGroupSender(req *http.Request) (*http.Re | ||||
| func (client DisksClient) ListByResourceGroupResponder(resp *http.Response) (result DiskList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -614,8 +617,8 @@ func (client DisksClient) RevokeAccess(ctx context.Context, resourceGroupName st | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DisksClient.RevokeAccess") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -628,7 +631,7 @@ func (client DisksClient) RevokeAccess(ctx context.Context, resourceGroupName st | ||||
|  | ||||
| 	result, err = client.RevokeAccessSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "RevokeAccess", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "RevokeAccess", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -664,7 +667,10 @@ func (client DisksClient) RevokeAccessSender(req *http.Request) (future DisksRev | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -673,7 +679,6 @@ func (client DisksClient) RevokeAccessSender(req *http.Request) (future DisksRev | ||||
| func (client DisksClient) RevokeAccessResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -692,8 +697,8 @@ func (client DisksClient) Update(ctx context.Context, resourceGroupName string, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DisksClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -706,7 +711,7 @@ func (client DisksClient) Update(ctx context.Context, resourceGroupName string, | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.DisksClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -744,7 +749,10 @@ func (client DisksClient) UpdateSender(req *http.Request) (future DisksUpdateFut | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -753,7 +761,6 @@ func (client DisksClient) UpdateSender(req *http.Request) (future DisksUpdateFut | ||||
| func (client DisksClient) UpdateResponder(resp *http.Response) (result Disk, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
							
								
								
									
										1393
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-12-01/compute/enums.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1393
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-12-01/compute/enums.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -52,8 +41,8 @@ func (client GalleriesClient) CreateOrUpdate(ctx context.Context, resourceGroupN | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleriesClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -66,7 +55,7 @@ func (client GalleriesClient) CreateOrUpdate(ctx context.Context, resourceGroupN | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -104,7 +93,10 @@ func (client GalleriesClient) CreateOrUpdateSender(req *http.Request) (future Ga | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -113,7 +105,6 @@ func (client GalleriesClient) CreateOrUpdateSender(req *http.Request) (future Ga | ||||
| func (client GalleriesClient) CreateOrUpdateResponder(resp *http.Response) (result Gallery, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -130,8 +121,8 @@ func (client GalleriesClient) Delete(ctx context.Context, resourceGroupName stri | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleriesClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -144,7 +135,7 @@ func (client GalleriesClient) Delete(ctx context.Context, resourceGroupName stri | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -180,7 +171,10 @@ func (client GalleriesClient) DeleteSender(req *http.Request) (future GalleriesD | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -189,7 +183,6 @@ func (client GalleriesClient) DeleteSender(req *http.Request) (future GalleriesD | ||||
| func (client GalleriesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -227,6 +220,7 @@ func (client GalleriesClient) Get(ctx context.Context, resourceGroupName string, | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -264,7 +258,6 @@ func (client GalleriesClient) GetSender(req *http.Request) (*http.Response, erro | ||||
| func (client GalleriesClient) GetResponder(resp *http.Response) (result Gallery, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -301,6 +294,11 @@ func (client GalleriesClient) List(ctx context.Context) (result GalleryListPage, | ||||
| 	result.gl, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.gl.hasNextLink() && result.gl.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -336,7 +334,6 @@ func (client GalleriesClient) ListSender(req *http.Request) (*http.Response, err | ||||
| func (client GalleriesClient) ListResponder(resp *http.Response) (result GalleryList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -412,6 +409,11 @@ func (client GalleriesClient) ListByResourceGroup(ctx context.Context, resourceG | ||||
| 	result.gl, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.gl.hasNextLink() && result.gl.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -448,7 +450,6 @@ func (client GalleriesClient) ListByResourceGroupSender(req *http.Request) (*htt | ||||
| func (client GalleriesClient) ListByResourceGroupResponder(resp *http.Response) (result GalleryList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -504,8 +505,8 @@ func (client GalleriesClient) Update(ctx context.Context, resourceGroupName stri | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleriesClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -518,7 +519,7 @@ func (client GalleriesClient) Update(ctx context.Context, resourceGroupName stri | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleriesClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -556,7 +557,10 @@ func (client GalleriesClient) UpdateSender(req *http.Request) (future GalleriesU | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -565,7 +569,6 @@ func (client GalleriesClient) UpdateSender(req *http.Request) (future GalleriesU | ||||
| func (client GalleriesClient) UpdateResponder(resp *http.Response) (result Gallery, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -56,8 +45,8 @@ func (client GalleryApplicationsClient) CreateOrUpdate(ctx context.Context, reso | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryApplicationsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -70,7 +59,7 @@ func (client GalleryApplicationsClient) CreateOrUpdate(ctx context.Context, reso | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -109,7 +98,10 @@ func (client GalleryApplicationsClient) CreateOrUpdateSender(req *http.Request) | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -118,7 +110,6 @@ func (client GalleryApplicationsClient) CreateOrUpdateSender(req *http.Request) | ||||
| func (client GalleryApplicationsClient) CreateOrUpdateResponder(resp *http.Response) (result GalleryApplication, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -137,8 +128,8 @@ func (client GalleryApplicationsClient) Delete(ctx context.Context, resourceGrou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryApplicationsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -151,7 +142,7 @@ func (client GalleryApplicationsClient) Delete(ctx context.Context, resourceGrou | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -188,7 +179,10 @@ func (client GalleryApplicationsClient) DeleteSender(req *http.Request) (future | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -197,7 +191,6 @@ func (client GalleryApplicationsClient) DeleteSender(req *http.Request) (future | ||||
| func (client GalleryApplicationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -237,6 +230,7 @@ func (client GalleryApplicationsClient) Get(ctx context.Context, resourceGroupNa | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -275,7 +269,6 @@ func (client GalleryApplicationsClient) GetSender(req *http.Request) (*http.Resp | ||||
| func (client GalleryApplicationsClient) GetResponder(resp *http.Response) (result GalleryApplication, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -316,6 +309,11 @@ func (client GalleryApplicationsClient) ListByGallery(ctx context.Context, resou | ||||
| 	result.gal, err = client.ListByGalleryResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "ListByGallery", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.gal.hasNextLink() && result.gal.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -353,7 +351,6 @@ func (client GalleryApplicationsClient) ListByGallerySender(req *http.Request) ( | ||||
| func (client GalleryApplicationsClient) ListByGalleryResponder(resp *http.Response) (result GalleryApplicationList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -412,8 +409,8 @@ func (client GalleryApplicationsClient) Update(ctx context.Context, resourceGrou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryApplicationsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -426,7 +423,7 @@ func (client GalleryApplicationsClient) Update(ctx context.Context, resourceGrou | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -465,7 +462,10 @@ func (client GalleryApplicationsClient) UpdateSender(req *http.Request) (future | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -474,7 +474,6 @@ func (client GalleryApplicationsClient) UpdateSender(req *http.Request) (future | ||||
| func (client GalleryApplicationsClient) UpdateResponder(resp *http.Response) (result GalleryApplication, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -59,8 +48,8 @@ func (client GalleryApplicationVersionsClient) CreateOrUpdate(ctx context.Contex | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryApplicationVersionsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -86,7 +75,7 @@ func (client GalleryApplicationVersionsClient) CreateOrUpdate(ctx context.Contex | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -126,7 +115,10 @@ func (client GalleryApplicationVersionsClient) CreateOrUpdateSender(req *http.Re | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -135,7 +127,6 @@ func (client GalleryApplicationVersionsClient) CreateOrUpdateSender(req *http.Re | ||||
| func (client GalleryApplicationVersionsClient) CreateOrUpdateResponder(resp *http.Response) (result GalleryApplicationVersion, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -155,8 +146,8 @@ func (client GalleryApplicationVersionsClient) Delete(ctx context.Context, resou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryApplicationVersionsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -169,7 +160,7 @@ func (client GalleryApplicationVersionsClient) Delete(ctx context.Context, resou | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -207,7 +198,10 @@ func (client GalleryApplicationVersionsClient) DeleteSender(req *http.Request) ( | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -216,7 +210,6 @@ func (client GalleryApplicationVersionsClient) DeleteSender(req *http.Request) ( | ||||
| func (client GalleryApplicationVersionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -258,6 +251,7 @@ func (client GalleryApplicationVersionsClient) Get(ctx context.Context, resource | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -300,7 +294,6 @@ func (client GalleryApplicationVersionsClient) GetSender(req *http.Request) (*ht | ||||
| func (client GalleryApplicationVersionsClient) GetResponder(resp *http.Response) (result GalleryApplicationVersion, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -342,6 +335,11 @@ func (client GalleryApplicationVersionsClient) ListByGalleryApplication(ctx cont | ||||
| 	result.gavl, err = client.ListByGalleryApplicationResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "ListByGalleryApplication", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.gavl.hasNextLink() && result.gavl.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -380,7 +378,6 @@ func (client GalleryApplicationVersionsClient) ListByGalleryApplicationSender(re | ||||
| func (client GalleryApplicationVersionsClient) ListByGalleryApplicationResponder(resp *http.Response) (result GalleryApplicationVersionList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -440,8 +437,8 @@ func (client GalleryApplicationVersionsClient) Update(ctx context.Context, resou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryApplicationVersionsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -454,7 +451,7 @@ func (client GalleryApplicationVersionsClient) Update(ctx context.Context, resou | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryApplicationVersionsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -494,7 +491,10 @@ func (client GalleryApplicationVersionsClient) UpdateSender(req *http.Request) ( | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -503,7 +503,6 @@ func (client GalleryApplicationVersionsClient) UpdateSender(req *http.Request) ( | ||||
| func (client GalleryApplicationVersionsClient) UpdateResponder(resp *http.Response) (result GalleryApplicationVersion, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -55,8 +44,8 @@ func (client GalleryImagesClient) CreateOrUpdate(ctx context.Context, resourceGr | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryImagesClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -81,7 +70,7 @@ func (client GalleryImagesClient) CreateOrUpdate(ctx context.Context, resourceGr | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -120,7 +109,10 @@ func (client GalleryImagesClient) CreateOrUpdateSender(req *http.Request) (futur | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -129,7 +121,6 @@ func (client GalleryImagesClient) CreateOrUpdateSender(req *http.Request) (futur | ||||
| func (client GalleryImagesClient) CreateOrUpdateResponder(resp *http.Response) (result GalleryImage, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -147,8 +138,8 @@ func (client GalleryImagesClient) Delete(ctx context.Context, resourceGroupName | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryImagesClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -161,7 +152,7 @@ func (client GalleryImagesClient) Delete(ctx context.Context, resourceGroupName | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -198,7 +189,10 @@ func (client GalleryImagesClient) DeleteSender(req *http.Request) (future Galler | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -207,7 +201,6 @@ func (client GalleryImagesClient) DeleteSender(req *http.Request) (future Galler | ||||
| func (client GalleryImagesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -246,6 +239,7 @@ func (client GalleryImagesClient) Get(ctx context.Context, resourceGroupName str | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -284,7 +278,6 @@ func (client GalleryImagesClient) GetSender(req *http.Request) (*http.Response, | ||||
| func (client GalleryImagesClient) GetResponder(resp *http.Response) (result GalleryImage, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -324,6 +317,11 @@ func (client GalleryImagesClient) ListByGallery(ctx context.Context, resourceGro | ||||
| 	result.gil, err = client.ListByGalleryResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "ListByGallery", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.gil.hasNextLink() && result.gil.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -361,7 +359,6 @@ func (client GalleryImagesClient) ListByGallerySender(req *http.Request) (*http. | ||||
| func (client GalleryImagesClient) ListByGalleryResponder(resp *http.Response) (result GalleryImageList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -419,8 +416,8 @@ func (client GalleryImagesClient) Update(ctx context.Context, resourceGroupName | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryImagesClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -433,7 +430,7 @@ func (client GalleryImagesClient) Update(ctx context.Context, resourceGroupName | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImagesClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -472,7 +469,10 @@ func (client GalleryImagesClient) UpdateSender(req *http.Request) (future Galler | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -481,7 +481,6 @@ func (client GalleryImagesClient) UpdateSender(req *http.Request) (future Galler | ||||
| func (client GalleryImagesClient) UpdateResponder(resp *http.Response) (result GalleryImage, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -57,8 +46,8 @@ func (client GalleryImageVersionsClient) CreateOrUpdate(ctx context.Context, res | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryImageVersionsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -78,7 +67,7 @@ func (client GalleryImageVersionsClient) CreateOrUpdate(ctx context.Context, res | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -118,7 +107,10 @@ func (client GalleryImageVersionsClient) CreateOrUpdateSender(req *http.Request) | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -127,7 +119,6 @@ func (client GalleryImageVersionsClient) CreateOrUpdateSender(req *http.Request) | ||||
| func (client GalleryImageVersionsClient) CreateOrUpdateResponder(resp *http.Response) (result GalleryImageVersion, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -146,8 +137,8 @@ func (client GalleryImageVersionsClient) Delete(ctx context.Context, resourceGro | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryImageVersionsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -160,7 +151,7 @@ func (client GalleryImageVersionsClient) Delete(ctx context.Context, resourceGro | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -198,7 +189,10 @@ func (client GalleryImageVersionsClient) DeleteSender(req *http.Request) (future | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -207,7 +201,6 @@ func (client GalleryImageVersionsClient) DeleteSender(req *http.Request) (future | ||||
| func (client GalleryImageVersionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -248,6 +241,7 @@ func (client GalleryImageVersionsClient) Get(ctx context.Context, resourceGroupN | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -290,7 +284,6 @@ func (client GalleryImageVersionsClient) GetSender(req *http.Request) (*http.Res | ||||
| func (client GalleryImageVersionsClient) GetResponder(resp *http.Response) (result GalleryImageVersion, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -332,6 +325,11 @@ func (client GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, | ||||
| 	result.givl, err = client.ListByGalleryImageResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "ListByGalleryImage", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.givl.hasNextLink() && result.givl.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -370,7 +368,6 @@ func (client GalleryImageVersionsClient) ListByGalleryImageSender(req *http.Requ | ||||
| func (client GalleryImageVersionsClient) ListByGalleryImageResponder(resp *http.Response) (result GalleryImageVersionList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -429,8 +426,8 @@ func (client GalleryImageVersionsClient) Update(ctx context.Context, resourceGro | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/GalleryImageVersionsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -443,7 +440,7 @@ func (client GalleryImageVersionsClient) Update(ctx context.Context, resourceGro | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -483,7 +480,10 @@ func (client GalleryImageVersionsClient) UpdateSender(req *http.Request) (future | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -492,7 +492,6 @@ func (client GalleryImageVersionsClient) UpdateSender(req *http.Request) (future | ||||
| func (client GalleryImageVersionsClient) UpdateResponder(resp *http.Response) (result GalleryImageVersion, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -51,8 +40,8 @@ func (client ImagesClient) CreateOrUpdate(ctx context.Context, resourceGroupName | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ImagesClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -65,7 +54,7 @@ func (client ImagesClient) CreateOrUpdate(ctx context.Context, resourceGroupName | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ImagesClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ImagesClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -103,7 +92,10 @@ func (client ImagesClient) CreateOrUpdateSender(req *http.Request) (future Image | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -112,7 +104,6 @@ func (client ImagesClient) CreateOrUpdateSender(req *http.Request) (future Image | ||||
| func (client ImagesClient) CreateOrUpdateResponder(resp *http.Response) (result Image, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -129,8 +120,8 @@ func (client ImagesClient) Delete(ctx context.Context, resourceGroupName string, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ImagesClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -143,7 +134,7 @@ func (client ImagesClient) Delete(ctx context.Context, resourceGroupName string, | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -179,7 +170,10 @@ func (client ImagesClient) DeleteSender(req *http.Request) (future ImagesDeleteF | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -188,7 +182,6 @@ func (client ImagesClient) DeleteSender(req *http.Request) (future ImagesDeleteF | ||||
| func (client ImagesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -227,6 +220,7 @@ func (client ImagesClient) Get(ctx context.Context, resourceGroupName string, im | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -267,7 +261,6 @@ func (client ImagesClient) GetSender(req *http.Request) (*http.Response, error) | ||||
| func (client ImagesClient) GetResponder(resp *http.Response) (result Image, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -305,6 +298,11 @@ func (client ImagesClient) List(ctx context.Context) (result ImageListResultPage | ||||
| 	result.ilr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ImagesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.ilr.hasNextLink() && result.ilr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -340,7 +338,6 @@ func (client ImagesClient) ListSender(req *http.Request) (*http.Response, error) | ||||
| func (client ImagesClient) ListResponder(resp *http.Response) (result ImageListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -416,6 +413,11 @@ func (client ImagesClient) ListByResourceGroup(ctx context.Context, resourceGrou | ||||
| 	result.ilr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ImagesClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.ilr.hasNextLink() && result.ilr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -452,7 +454,6 @@ func (client ImagesClient) ListByResourceGroupSender(req *http.Request) (*http.R | ||||
| func (client ImagesClient) ListByResourceGroupResponder(resp *http.Response) (result ImageListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -507,8 +508,8 @@ func (client ImagesClient) Update(ctx context.Context, resourceGroupName string, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ImagesClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -521,7 +522,7 @@ func (client ImagesClient) Update(ctx context.Context, resourceGroupName string, | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ImagesClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -559,7 +560,10 @@ func (client ImagesClient) UpdateSender(req *http.Request) (future ImagesUpdateF | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -568,7 +572,6 @@ func (client ImagesClient) UpdateSender(req *http.Request) (future ImagesUpdateF | ||||
| func (client ImagesClient) UpdateResponder(resp *http.Response) (result Image, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -52,8 +41,8 @@ func (client LogAnalyticsClient) ExportRequestRateByInterval(ctx context.Context | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/LogAnalyticsClient.ExportRequestRateByInterval") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -72,7 +61,7 @@ func (client LogAnalyticsClient) ExportRequestRateByInterval(ctx context.Context | ||||
|  | ||||
| 	result, err = client.ExportRequestRateByIntervalSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.LogAnalyticsClient", "ExportRequestRateByInterval", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.LogAnalyticsClient", "ExportRequestRateByInterval", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -109,7 +98,10 @@ func (client LogAnalyticsClient) ExportRequestRateByIntervalSender(req *http.Req | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -118,7 +110,6 @@ func (client LogAnalyticsClient) ExportRequestRateByIntervalSender(req *http.Req | ||||
| func (client LogAnalyticsClient) ExportRequestRateByIntervalResponder(resp *http.Response) (result LogAnalyticsOperationResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -136,8 +127,8 @@ func (client LogAnalyticsClient) ExportThrottledRequests(ctx context.Context, pa | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/LogAnalyticsClient.ExportThrottledRequests") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -156,7 +147,7 @@ func (client LogAnalyticsClient) ExportThrottledRequests(ctx context.Context, pa | ||||
|  | ||||
| 	result, err = client.ExportThrottledRequestsSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.LogAnalyticsClient", "ExportThrottledRequests", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.LogAnalyticsClient", "ExportThrottledRequests", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -193,7 +184,10 @@ func (client LogAnalyticsClient) ExportThrottledRequestsSender(req *http.Request | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -202,7 +196,6 @@ func (client LogAnalyticsClient) ExportThrottledRequestsSender(req *http.Request | ||||
| func (client LogAnalyticsClient) ExportThrottledRequestsResponder(resp *http.Response) (result LogAnalyticsOperationResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
							
								
								
									
										4712
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-12-01/compute/models.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4712
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-12-01/compute/models.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -69,6 +58,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe | ||||
| 	result, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.OperationsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -100,7 +90,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er | ||||
| func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -74,6 +63,7 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, | ||||
| 	result, err = client.CreateOrUpdateResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -113,7 +103,6 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdateSender(req *http.Requ | ||||
| func (client ProximityPlacementGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ProximityPlacementGroup, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -152,6 +141,7 @@ func (client ProximityPlacementGroupsClient) Delete(ctx context.Context, resourc | ||||
| 	result, err = client.DeleteResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -189,7 +179,6 @@ func (client ProximityPlacementGroupsClient) DeleteSender(req *http.Request) (*h | ||||
| func (client ProximityPlacementGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -229,6 +218,7 @@ func (client ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGr | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -269,7 +259,6 @@ func (client ProximityPlacementGroupsClient) GetSender(req *http.Request) (*http | ||||
| func (client ProximityPlacementGroupsClient) GetResponder(resp *http.Response) (result ProximityPlacementGroup, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -308,6 +297,11 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Con | ||||
| 	result.ppglr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -344,7 +338,6 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroupSender(req *http | ||||
| func (client ProximityPlacementGroupsClient) ListByResourceGroupResponder(resp *http.Response) (result ProximityPlacementGroupListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -418,6 +411,11 @@ func (client ProximityPlacementGroupsClient) ListBySubscription(ctx context.Cont | ||||
| 	result.ppglr, err = client.ListBySubscriptionResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.ppglr.hasNextLink() && result.ppglr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -453,7 +451,6 @@ func (client ProximityPlacementGroupsClient) ListBySubscriptionSender(req *http. | ||||
| func (client ProximityPlacementGroupsClient) ListBySubscriptionResponder(resp *http.Response) (result ProximityPlacementGroupListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -530,6 +527,7 @@ func (client ProximityPlacementGroupsClient) Update(ctx context.Context, resourc | ||||
| 	result, err = client.UpdateResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -569,7 +567,6 @@ func (client ProximityPlacementGroupsClient) UpdateSender(req *http.Request) (*h | ||||
| func (client ProximityPlacementGroupsClient) UpdateResponder(resp *http.Response) (result ProximityPlacementGroup, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -72,6 +61,11 @@ func (client ResourceSkusClient) List(ctx context.Context, filter string) (resul | ||||
| 	result.rsr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.rsr.hasNextLink() && result.rsr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -110,7 +104,6 @@ func (client ResourceSkusClient) ListSender(req *http.Request) (*http.Response, | ||||
| func (client ResourceSkusClient) ListResponder(resp *http.Response) (result ResourceSkusResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -53,8 +42,8 @@ func (client SnapshotsClient) CreateOrUpdate(ctx context.Context, resourceGroupN | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -82,7 +71,7 @@ func (client SnapshotsClient) CreateOrUpdate(ctx context.Context, resourceGroupN | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -121,7 +110,10 @@ func (client SnapshotsClient) CreateOrUpdateSender(req *http.Request) (future Sn | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -130,7 +122,6 @@ func (client SnapshotsClient) CreateOrUpdateSender(req *http.Request) (future Sn | ||||
| func (client SnapshotsClient) CreateOrUpdateResponder(resp *http.Response) (result Snapshot, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -148,8 +139,8 @@ func (client SnapshotsClient) Delete(ctx context.Context, resourceGroupName stri | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -162,7 +153,7 @@ func (client SnapshotsClient) Delete(ctx context.Context, resourceGroupName stri | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -198,7 +189,10 @@ func (client SnapshotsClient) DeleteSender(req *http.Request) (future SnapshotsD | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -207,7 +201,6 @@ func (client SnapshotsClient) DeleteSender(req *http.Request) (future SnapshotsD | ||||
| func (client SnapshotsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -246,6 +239,7 @@ func (client SnapshotsClient) Get(ctx context.Context, resourceGroupName string, | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -283,7 +277,6 @@ func (client SnapshotsClient) GetSender(req *http.Request) (*http.Response, erro | ||||
| func (client SnapshotsClient) GetResponder(resp *http.Response) (result Snapshot, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -302,8 +295,8 @@ func (client SnapshotsClient) GrantAccess(ctx context.Context, resourceGroupName | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.GrantAccess") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -322,7 +315,7 @@ func (client SnapshotsClient) GrantAccess(ctx context.Context, resourceGroupName | ||||
|  | ||||
| 	result, err = client.GrantAccessSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "GrantAccess", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "GrantAccess", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -360,7 +353,10 @@ func (client SnapshotsClient) GrantAccessSender(req *http.Request) (future Snaps | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -369,7 +365,6 @@ func (client SnapshotsClient) GrantAccessSender(req *http.Request) (future Snaps | ||||
| func (client SnapshotsClient) GrantAccessResponder(resp *http.Response) (result AccessURI, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -406,6 +401,11 @@ func (client SnapshotsClient) List(ctx context.Context) (result SnapshotListPage | ||||
| 	result.sl, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.sl.hasNextLink() && result.sl.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -441,7 +441,6 @@ func (client SnapshotsClient) ListSender(req *http.Request) (*http.Response, err | ||||
| func (client SnapshotsClient) ListResponder(resp *http.Response) (result SnapshotList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -517,6 +516,11 @@ func (client SnapshotsClient) ListByResourceGroup(ctx context.Context, resourceG | ||||
| 	result.sl, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.sl.hasNextLink() && result.sl.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -553,7 +557,6 @@ func (client SnapshotsClient) ListByResourceGroupSender(req *http.Request) (*htt | ||||
| func (client SnapshotsClient) ListByResourceGroupResponder(resp *http.Response) (result SnapshotList, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -608,8 +611,8 @@ func (client SnapshotsClient) RevokeAccess(ctx context.Context, resourceGroupNam | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.RevokeAccess") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -622,7 +625,7 @@ func (client SnapshotsClient) RevokeAccess(ctx context.Context, resourceGroupNam | ||||
|  | ||||
| 	result, err = client.RevokeAccessSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "RevokeAccess", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "RevokeAccess", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -658,7 +661,10 @@ func (client SnapshotsClient) RevokeAccessSender(req *http.Request) (future Snap | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -667,7 +673,6 @@ func (client SnapshotsClient) RevokeAccessSender(req *http.Request) (future Snap | ||||
| func (client SnapshotsClient) RevokeAccessResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -685,8 +690,8 @@ func (client SnapshotsClient) Update(ctx context.Context, resourceGroupName stri | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/SnapshotsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -699,7 +704,7 @@ func (client SnapshotsClient) Update(ctx context.Context, resourceGroupName stri | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SnapshotsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -737,7 +742,10 @@ func (client SnapshotsClient) UpdateSender(req *http.Request) (future SnapshotsU | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -746,7 +754,6 @@ func (client SnapshotsClient) UpdateSender(req *http.Request) (future SnapshotsU | ||||
| func (client SnapshotsClient) UpdateResponder(resp *http.Response) (result Snapshot, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -73,6 +62,7 @@ func (client SSHPublicKeysClient) Create(ctx context.Context, resourceGroupName | ||||
| 	result, err = client.CreateResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Create", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -112,7 +102,6 @@ func (client SSHPublicKeysClient) CreateSender(req *http.Request) (*http.Respons | ||||
| func (client SSHPublicKeysClient) CreateResponder(resp *http.Response) (result SSHPublicKeyResource, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -151,6 +140,7 @@ func (client SSHPublicKeysClient) Delete(ctx context.Context, resourceGroupName | ||||
| 	result, err = client.DeleteResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Delete", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -188,7 +178,6 @@ func (client SSHPublicKeysClient) DeleteSender(req *http.Request) (*http.Respons | ||||
| func (client SSHPublicKeysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -228,6 +217,7 @@ func (client SSHPublicKeysClient) GenerateKeyPair(ctx context.Context, resourceG | ||||
| 	result, err = client.GenerateKeyPairResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "GenerateKeyPair", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -265,7 +255,6 @@ func (client SSHPublicKeysClient) GenerateKeyPairSender(req *http.Request) (*htt | ||||
| func (client SSHPublicKeysClient) GenerateKeyPairResponder(resp *http.Response) (result SSHPublicKeyGenerateKeyPairResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -304,6 +293,7 @@ func (client SSHPublicKeysClient) Get(ctx context.Context, resourceGroupName str | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -341,7 +331,6 @@ func (client SSHPublicKeysClient) GetSender(req *http.Request) (*http.Response, | ||||
| func (client SSHPublicKeysClient) GetResponder(resp *http.Response) (result SSHPublicKeyResource, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -381,6 +370,11 @@ func (client SSHPublicKeysClient) ListByResourceGroup(ctx context.Context, resou | ||||
| 	result.spkglr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.spkglr.hasNextLink() && result.spkglr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -417,7 +411,6 @@ func (client SSHPublicKeysClient) ListByResourceGroupSender(req *http.Request) ( | ||||
| func (client SSHPublicKeysClient) ListByResourceGroupResponder(resp *http.Response) (result SSHPublicKeysGroupListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -492,6 +485,11 @@ func (client SSHPublicKeysClient) ListBySubscription(ctx context.Context) (resul | ||||
| 	result.spkglr, err = client.ListBySubscriptionResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "ListBySubscription", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.spkglr.hasNextLink() && result.spkglr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -527,7 +525,6 @@ func (client SSHPublicKeysClient) ListBySubscriptionSender(req *http.Request) (* | ||||
| func (client SSHPublicKeysClient) ListBySubscriptionResponder(resp *http.Response) (result SSHPublicKeysGroupListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -604,6 +601,7 @@ func (client SSHPublicKeysClient) Update(ctx context.Context, resourceGroupName | ||||
| 	result, err = client.UpdateResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.SSHPublicKeysClient", "Update", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -643,7 +641,6 @@ func (client SSHPublicKeysClient) UpdateSender(req *http.Request) (*http.Respons | ||||
| func (client SSHPublicKeysClient) UpdateResponder(resp *http.Response) (result SSHPublicKeyResource, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -80,6 +69,11 @@ func (client UsageClient) List(ctx context.Context, location string) (result Lis | ||||
| 	result.lur, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.UsageClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.lur.hasNextLink() && result.lur.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -116,7 +110,6 @@ func (client UsageClient) ListSender(req *http.Request) (*http.Response, error) | ||||
| func (client UsageClient) ListResponder(resp *http.Response) (result ListUsagesResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -2,19 +2,8 @@ package compute | ||||
|  | ||||
| import "github.com/Azure/azure-sdk-for-go/version" | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -72,6 +61,7 @@ func (client VirtualMachineExtensionImagesClient) Get(ctx context.Context, locat | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -111,7 +101,6 @@ func (client VirtualMachineExtensionImagesClient) GetSender(req *http.Request) ( | ||||
| func (client VirtualMachineExtensionImagesClient) GetResponder(resp *http.Response) (result VirtualMachineExtensionImage, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -149,6 +138,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypes(ctx context.Context, | ||||
| 	result, err = client.ListTypesResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListTypes", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -186,7 +176,6 @@ func (client VirtualMachineExtensionImagesClient) ListTypesSender(req *http.Requ | ||||
| func (client VirtualMachineExtensionImagesClient) ListTypesResponder(resp *http.Response) (result ListVirtualMachineExtensionImage, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result.Value), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -225,6 +214,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersions(ctx context.Conte | ||||
| 	result, err = client.ListVersionsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionImagesClient", "ListVersions", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -272,7 +262,6 @@ func (client VirtualMachineExtensionImagesClient) ListVersionsSender(req *http.R | ||||
| func (client VirtualMachineExtensionImagesClient) ListVersionsResponder(resp *http.Response) (result ListVirtualMachineExtensionImage, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result.Value), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -53,8 +42,8 @@ func (client VirtualMachineExtensionsClient) CreateOrUpdate(ctx context.Context, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineExtensionsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -67,7 +56,7 @@ func (client VirtualMachineExtensionsClient) CreateOrUpdate(ctx context.Context, | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -106,7 +95,10 @@ func (client VirtualMachineExtensionsClient) CreateOrUpdateSender(req *http.Requ | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -115,7 +107,6 @@ func (client VirtualMachineExtensionsClient) CreateOrUpdateSender(req *http.Requ | ||||
| func (client VirtualMachineExtensionsClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualMachineExtension, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -133,8 +124,8 @@ func (client VirtualMachineExtensionsClient) Delete(ctx context.Context, resourc | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineExtensionsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -147,7 +138,7 @@ func (client VirtualMachineExtensionsClient) Delete(ctx context.Context, resourc | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -184,7 +175,10 @@ func (client VirtualMachineExtensionsClient) DeleteSender(req *http.Request) (fu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -193,7 +187,6 @@ func (client VirtualMachineExtensionsClient) DeleteSender(req *http.Request) (fu | ||||
| func (client VirtualMachineExtensionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -233,6 +226,7 @@ func (client VirtualMachineExtensionsClient) Get(ctx context.Context, resourceGr | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -274,7 +268,6 @@ func (client VirtualMachineExtensionsClient) GetSender(req *http.Request) (*http | ||||
| func (client VirtualMachineExtensionsClient) GetResponder(resp *http.Response) (result VirtualMachineExtension, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -314,6 +307,7 @@ func (client VirtualMachineExtensionsClient) List(ctx context.Context, resourceG | ||||
| 	result, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -354,7 +348,6 @@ func (client VirtualMachineExtensionsClient) ListSender(req *http.Request) (*htt | ||||
| func (client VirtualMachineExtensionsClient) ListResponder(resp *http.Response) (result VirtualMachineExtensionsListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -373,8 +366,8 @@ func (client VirtualMachineExtensionsClient) Update(ctx context.Context, resourc | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineExtensionsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -387,7 +380,7 @@ func (client VirtualMachineExtensionsClient) Update(ctx context.Context, resourc | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -426,7 +419,10 @@ func (client VirtualMachineExtensionsClient) UpdateSender(req *http.Request) (fu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -435,7 +431,6 @@ func (client VirtualMachineExtensionsClient) UpdateSender(req *http.Request) (fu | ||||
| func (client VirtualMachineExtensionsClient) UpdateResponder(resp *http.Response) (result VirtualMachineExtension, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -76,6 +65,7 @@ func (client VirtualMachineImagesClient) Get(ctx context.Context, location strin | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -116,7 +106,6 @@ func (client VirtualMachineImagesClient) GetSender(req *http.Request) (*http.Res | ||||
| func (client VirtualMachineImagesClient) GetResponder(resp *http.Response) (result VirtualMachineImage, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -158,6 +147,7 @@ func (client VirtualMachineImagesClient) List(ctx context.Context, location stri | ||||
| 	result, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -206,7 +196,6 @@ func (client VirtualMachineImagesClient) ListSender(req *http.Request) (*http.Re | ||||
| func (client VirtualMachineImagesClient) ListResponder(resp *http.Response) (result ListVirtualMachineImageResource, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result.Value), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -245,6 +234,7 @@ func (client VirtualMachineImagesClient) ListOffers(ctx context.Context, locatio | ||||
| 	result, err = client.ListOffersResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListOffers", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -282,7 +272,6 @@ func (client VirtualMachineImagesClient) ListOffersSender(req *http.Request) (*h | ||||
| func (client VirtualMachineImagesClient) ListOffersResponder(resp *http.Response) (result ListVirtualMachineImageResource, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result.Value), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -320,6 +309,7 @@ func (client VirtualMachineImagesClient) ListPublishers(ctx context.Context, loc | ||||
| 	result, err = client.ListPublishersResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListPublishers", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -356,7 +346,6 @@ func (client VirtualMachineImagesClient) ListPublishersSender(req *http.Request) | ||||
| func (client VirtualMachineImagesClient) ListPublishersResponder(resp *http.Response) (result ListVirtualMachineImageResource, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result.Value), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -396,6 +385,7 @@ func (client VirtualMachineImagesClient) ListSkus(ctx context.Context, location | ||||
| 	result, err = client.ListSkusResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineImagesClient", "ListSkus", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -434,7 +424,6 @@ func (client VirtualMachineImagesClient) ListSkusSender(req *http.Request) (*htt | ||||
| func (client VirtualMachineImagesClient) ListSkusResponder(resp *http.Response) (result ListVirtualMachineImageResource, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result.Value), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -80,6 +69,7 @@ func (client VirtualMachineRunCommandsClient) Get(ctx context.Context, location | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -117,7 +107,6 @@ func (client VirtualMachineRunCommandsClient) GetSender(req *http.Request) (*htt | ||||
| func (client VirtualMachineRunCommandsClient) GetResponder(resp *http.Response) (result RunCommandDocument, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -162,6 +151,11 @@ func (client VirtualMachineRunCommandsClient) List(ctx context.Context, location | ||||
| 	result.rclr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineRunCommandsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.rclr.hasNextLink() && result.rclr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -198,7 +192,6 @@ func (client VirtualMachineRunCommandsClient) ListSender(req *http.Request) (*ht | ||||
| func (client VirtualMachineRunCommandsClient) ListResponder(resp *http.Response) (result RunCommandListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -53,8 +42,8 @@ func (client VirtualMachinesClient) Capture(ctx context.Context, resourceGroupNa | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Capture") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -75,7 +64,7 @@ func (client VirtualMachinesClient) Capture(ctx context.Context, resourceGroupNa | ||||
|  | ||||
| 	result, err = client.CaptureSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Capture", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Capture", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -113,7 +102,10 @@ func (client VirtualMachinesClient) CaptureSender(req *http.Request) (future Vir | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -122,7 +114,6 @@ func (client VirtualMachinesClient) CaptureSender(req *http.Request) (future Vir | ||||
| func (client VirtualMachinesClient) CaptureResponder(resp *http.Response) (result VirtualMachineCaptureResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -131,7 +122,11 @@ func (client VirtualMachinesClient) CaptureResponder(resp *http.Response) (resul | ||||
| } | ||||
|  | ||||
| // ConvertToManagedDisks converts virtual machine disks from blob-based to managed disks. Virtual machine must be | ||||
| // stop-deallocated before invoking this operation. | ||||
| // stop-deallocated before invoking this operation. <br>For Windows, please refer to [Convert a virtual machine from | ||||
| // unmanaged disks to managed | ||||
| // disks.](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/convert-unmanaged-to-managed-disks).<br>For | ||||
| // Linux, please refer to [Convert a virtual machine from unmanaged disks to managed | ||||
| // disks.](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/convert-unmanaged-to-managed-disks). | ||||
| // Parameters: | ||||
| // resourceGroupName - the name of the resource group. | ||||
| // VMName - the name of the virtual machine. | ||||
| @@ -140,8 +135,8 @@ func (client VirtualMachinesClient) ConvertToManagedDisks(ctx context.Context, r | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.ConvertToManagedDisks") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -154,7 +149,7 @@ func (client VirtualMachinesClient) ConvertToManagedDisks(ctx context.Context, r | ||||
|  | ||||
| 	result, err = client.ConvertToManagedDisksSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ConvertToManagedDisks", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ConvertToManagedDisks", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -190,7 +185,10 @@ func (client VirtualMachinesClient) ConvertToManagedDisksSender(req *http.Reques | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -199,7 +197,6 @@ func (client VirtualMachinesClient) ConvertToManagedDisksSender(req *http.Reques | ||||
| func (client VirtualMachinesClient) ConvertToManagedDisksResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -217,8 +214,8 @@ func (client VirtualMachinesClient) CreateOrUpdate(ctx context.Context, resource | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -252,7 +249,7 @@ func (client VirtualMachinesClient) CreateOrUpdate(ctx context.Context, resource | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -291,7 +288,10 @@ func (client VirtualMachinesClient) CreateOrUpdateSender(req *http.Request) (fut | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -300,7 +300,6 @@ func (client VirtualMachinesClient) CreateOrUpdateSender(req *http.Request) (fut | ||||
| func (client VirtualMachinesClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualMachine, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -318,8 +317,8 @@ func (client VirtualMachinesClient) Deallocate(ctx context.Context, resourceGrou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Deallocate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -332,7 +331,7 @@ func (client VirtualMachinesClient) Deallocate(ctx context.Context, resourceGrou | ||||
|  | ||||
| 	result, err = client.DeallocateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Deallocate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Deallocate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -368,7 +367,10 @@ func (client VirtualMachinesClient) DeallocateSender(req *http.Request) (future | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -377,7 +379,6 @@ func (client VirtualMachinesClient) DeallocateSender(req *http.Request) (future | ||||
| func (client VirtualMachinesClient) DeallocateResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -393,8 +394,8 @@ func (client VirtualMachinesClient) Delete(ctx context.Context, resourceGroupNam | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -407,7 +408,7 @@ func (client VirtualMachinesClient) Delete(ctx context.Context, resourceGroupNam | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -443,7 +444,10 @@ func (client VirtualMachinesClient) DeleteSender(req *http.Request) (future Virt | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -452,7 +456,6 @@ func (client VirtualMachinesClient) DeleteSender(req *http.Request) (future Virt | ||||
| func (client VirtualMachinesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -494,6 +497,7 @@ func (client VirtualMachinesClient) Generalize(ctx context.Context, resourceGrou | ||||
| 	result, err = client.GeneralizeResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Generalize", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -531,7 +535,6 @@ func (client VirtualMachinesClient) GeneralizeSender(req *http.Request) (*http.R | ||||
| func (client VirtualMachinesClient) GeneralizeResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -570,6 +573,7 @@ func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName s | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -610,7 +614,6 @@ func (client VirtualMachinesClient) GetSender(req *http.Request) (*http.Response | ||||
| func (client VirtualMachinesClient) GetResponder(resp *http.Response) (result VirtualMachine, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -649,6 +652,7 @@ func (client VirtualMachinesClient) InstanceView(ctx context.Context, resourceGr | ||||
| 	result, err = client.InstanceViewResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "InstanceView", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -686,7 +690,6 @@ func (client VirtualMachinesClient) InstanceViewSender(req *http.Request) (*http | ||||
| func (client VirtualMachinesClient) InstanceViewResponder(resp *http.Response) (result VirtualMachineInstanceView, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -726,6 +729,11 @@ func (client VirtualMachinesClient) List(ctx context.Context, resourceGroupName | ||||
| 	result.vmlr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -762,7 +770,6 @@ func (client VirtualMachinesClient) ListSender(req *http.Request) (*http.Respons | ||||
| func (client VirtualMachinesClient) ListResponder(resp *http.Response) (result VirtualMachineListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -839,6 +846,11 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context, statusOnly stri | ||||
| 	result.vmlr, err = client.ListAllResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -877,7 +889,6 @@ func (client VirtualMachinesClient) ListAllSender(req *http.Request) (*http.Resp | ||||
| func (client VirtualMachinesClient) ListAllResponder(resp *http.Response) (result VirtualMachineListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -953,6 +964,7 @@ func (client VirtualMachinesClient) ListAvailableSizes(ctx context.Context, reso | ||||
| 	result, err = client.ListAvailableSizesResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAvailableSizes", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -990,7 +1002,6 @@ func (client VirtualMachinesClient) ListAvailableSizesSender(req *http.Request) | ||||
| func (client VirtualMachinesClient) ListAvailableSizesResponder(resp *http.Response) (result VirtualMachineSizeListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1035,6 +1046,11 @@ func (client VirtualMachinesClient) ListByLocation(ctx context.Context, location | ||||
| 	result.vmlr, err = client.ListByLocationResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListByLocation", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.vmlr.hasNextLink() && result.vmlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -1071,7 +1087,6 @@ func (client VirtualMachinesClient) ListByLocationSender(req *http.Request) (*ht | ||||
| func (client VirtualMachinesClient) ListByLocationResponder(resp *http.Response) (result VirtualMachineListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1116,7 +1131,8 @@ func (client VirtualMachinesClient) ListByLocationComplete(ctx context.Context, | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // PerformMaintenance the operation to perform maintenance on a virtual machine. | ||||
| // PerformMaintenance shuts down the virtual machine, moves it to an already updated node, and powers it back on during | ||||
| // the self-service phase of planned maintenance. | ||||
| // Parameters: | ||||
| // resourceGroupName - the name of the resource group. | ||||
| // VMName - the name of the virtual machine. | ||||
| @@ -1125,8 +1141,8 @@ func (client VirtualMachinesClient) PerformMaintenance(ctx context.Context, reso | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.PerformMaintenance") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1139,7 +1155,7 @@ func (client VirtualMachinesClient) PerformMaintenance(ctx context.Context, reso | ||||
|  | ||||
| 	result, err = client.PerformMaintenanceSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "PerformMaintenance", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "PerformMaintenance", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1175,7 +1191,10 @@ func (client VirtualMachinesClient) PerformMaintenanceSender(req *http.Request) | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1184,7 +1203,6 @@ func (client VirtualMachinesClient) PerformMaintenanceSender(req *http.Request) | ||||
| func (client VirtualMachinesClient) PerformMaintenanceResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1204,8 +1222,8 @@ func (client VirtualMachinesClient) PowerOff(ctx context.Context, resourceGroupN | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.PowerOff") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1218,7 +1236,7 @@ func (client VirtualMachinesClient) PowerOff(ctx context.Context, resourceGroupN | ||||
|  | ||||
| 	result, err = client.PowerOffSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "PowerOff", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "PowerOff", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1259,7 +1277,10 @@ func (client VirtualMachinesClient) PowerOffSender(req *http.Request) (future Vi | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1268,7 +1289,6 @@ func (client VirtualMachinesClient) PowerOffSender(req *http.Request) (future Vi | ||||
| func (client VirtualMachinesClient) PowerOffResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1284,8 +1304,8 @@ func (client VirtualMachinesClient) Reapply(ctx context.Context, resourceGroupNa | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Reapply") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1298,7 +1318,7 @@ func (client VirtualMachinesClient) Reapply(ctx context.Context, resourceGroupNa | ||||
|  | ||||
| 	result, err = client.ReapplySender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Reapply", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Reapply", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1334,7 +1354,10 @@ func (client VirtualMachinesClient) ReapplySender(req *http.Request) (future Vir | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1343,7 +1366,6 @@ func (client VirtualMachinesClient) ReapplySender(req *http.Request) (future Vir | ||||
| func (client VirtualMachinesClient) ReapplyResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1359,8 +1381,8 @@ func (client VirtualMachinesClient) Redeploy(ctx context.Context, resourceGroupN | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Redeploy") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1373,7 +1395,7 @@ func (client VirtualMachinesClient) Redeploy(ctx context.Context, resourceGroupN | ||||
|  | ||||
| 	result, err = client.RedeploySender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Redeploy", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Redeploy", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1409,7 +1431,10 @@ func (client VirtualMachinesClient) RedeploySender(req *http.Request) (future Vi | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1418,7 +1443,6 @@ func (client VirtualMachinesClient) RedeploySender(req *http.Request) (future Vi | ||||
| func (client VirtualMachinesClient) RedeployResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1435,8 +1459,8 @@ func (client VirtualMachinesClient) Reimage(ctx context.Context, resourceGroupNa | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Reimage") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1449,7 +1473,7 @@ func (client VirtualMachinesClient) Reimage(ctx context.Context, resourceGroupNa | ||||
|  | ||||
| 	result, err = client.ReimageSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Reimage", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Reimage", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1490,7 +1514,10 @@ func (client VirtualMachinesClient) ReimageSender(req *http.Request) (future Vir | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1499,7 +1526,6 @@ func (client VirtualMachinesClient) ReimageSender(req *http.Request) (future Vir | ||||
| func (client VirtualMachinesClient) ReimageResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1515,8 +1541,8 @@ func (client VirtualMachinesClient) Restart(ctx context.Context, resourceGroupNa | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Restart") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1529,7 +1555,7 @@ func (client VirtualMachinesClient) Restart(ctx context.Context, resourceGroupNa | ||||
|  | ||||
| 	result, err = client.RestartSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Restart", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Restart", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1565,7 +1591,10 @@ func (client VirtualMachinesClient) RestartSender(req *http.Request) (future Vir | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1574,7 +1603,6 @@ func (client VirtualMachinesClient) RestartSender(req *http.Request) (future Vir | ||||
| func (client VirtualMachinesClient) RestartResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1591,8 +1619,8 @@ func (client VirtualMachinesClient) RunCommand(ctx context.Context, resourceGrou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.RunCommand") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1611,7 +1639,7 @@ func (client VirtualMachinesClient) RunCommand(ctx context.Context, resourceGrou | ||||
|  | ||||
| 	result, err = client.RunCommandSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "RunCommand", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "RunCommand", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1649,7 +1677,10 @@ func (client VirtualMachinesClient) RunCommandSender(req *http.Request) (future | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1658,7 +1689,6 @@ func (client VirtualMachinesClient) RunCommandSender(req *http.Request) (future | ||||
| func (client VirtualMachinesClient) RunCommandResponder(resp *http.Response) (result RunCommandResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1698,6 +1728,7 @@ func (client VirtualMachinesClient) SimulateEviction(ctx context.Context, resour | ||||
| 	result, err = client.SimulateEvictionResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "SimulateEviction", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -1735,7 +1766,6 @@ func (client VirtualMachinesClient) SimulateEvictionSender(req *http.Request) (* | ||||
| func (client VirtualMachinesClient) SimulateEvictionResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1751,8 +1781,8 @@ func (client VirtualMachinesClient) Start(ctx context.Context, resourceGroupName | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Start") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1765,7 +1795,7 @@ func (client VirtualMachinesClient) Start(ctx context.Context, resourceGroupName | ||||
|  | ||||
| 	result, err = client.StartSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Start", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Start", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1801,7 +1831,10 @@ func (client VirtualMachinesClient) StartSender(req *http.Request) (future Virtu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1810,7 +1843,6 @@ func (client VirtualMachinesClient) StartSender(req *http.Request) (future Virtu | ||||
| func (client VirtualMachinesClient) StartResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1827,8 +1859,8 @@ func (client VirtualMachinesClient) Update(ctx context.Context, resourceGroupNam | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1841,7 +1873,7 @@ func (client VirtualMachinesClient) Update(ctx context.Context, resourceGroupNam | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1879,7 +1911,10 @@ func (client VirtualMachinesClient) UpdateSender(req *http.Request) (future Virt | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1888,7 +1923,6 @@ func (client VirtualMachinesClient) UpdateSender(req *http.Request) (future Virt | ||||
| func (client VirtualMachinesClient) UpdateResponder(resp *http.Response) (result VirtualMachine, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -53,8 +42,8 @@ func (client VirtualMachineScaleSetExtensionsClient) CreateOrUpdate(ctx context. | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetExtensionsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -67,7 +56,7 @@ func (client VirtualMachineScaleSetExtensionsClient) CreateOrUpdate(ctx context. | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -107,7 +96,10 @@ func (client VirtualMachineScaleSetExtensionsClient) CreateOrUpdateSender(req *h | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -116,7 +108,6 @@ func (client VirtualMachineScaleSetExtensionsClient) CreateOrUpdateSender(req *h | ||||
| func (client VirtualMachineScaleSetExtensionsClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualMachineScaleSetExtension, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -134,8 +125,8 @@ func (client VirtualMachineScaleSetExtensionsClient) Delete(ctx context.Context, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetExtensionsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -148,7 +139,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Delete(ctx context.Context, | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -185,7 +176,10 @@ func (client VirtualMachineScaleSetExtensionsClient) DeleteSender(req *http.Requ | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -194,7 +188,6 @@ func (client VirtualMachineScaleSetExtensionsClient) DeleteSender(req *http.Requ | ||||
| func (client VirtualMachineScaleSetExtensionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -234,6 +227,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, re | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -275,7 +269,6 @@ func (client VirtualMachineScaleSetExtensionsClient) GetSender(req *http.Request | ||||
| func (client VirtualMachineScaleSetExtensionsClient) GetResponder(resp *http.Response) (result VirtualMachineScaleSetExtension, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -315,6 +308,11 @@ func (client VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, r | ||||
| 	result.vmsselr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.vmsselr.hasNextLink() && result.vmsselr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -352,7 +350,6 @@ func (client VirtualMachineScaleSetExtensionsClient) ListSender(req *http.Reques | ||||
| func (client VirtualMachineScaleSetExtensionsClient) ListResponder(resp *http.Response) (result VirtualMachineScaleSetExtensionListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -408,8 +405,8 @@ func (client VirtualMachineScaleSetExtensionsClient) Update(ctx context.Context, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetExtensionsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -422,7 +419,7 @@ func (client VirtualMachineScaleSetExtensionsClient) Update(ctx context.Context, | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -463,7 +460,10 @@ func (client VirtualMachineScaleSetExtensionsClient) UpdateSender(req *http.Requ | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -472,7 +472,6 @@ func (client VirtualMachineScaleSetExtensionsClient) UpdateSender(req *http.Requ | ||||
| func (client VirtualMachineScaleSetExtensionsClient) UpdateResponder(resp *http.Response) (result VirtualMachineScaleSetExtension, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -52,8 +41,8 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) Cancel(ctx context.Con | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetRollingUpgradesClient.Cancel") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -66,7 +55,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) Cancel(ctx context.Con | ||||
|  | ||||
| 	result, err = client.CancelSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "Cancel", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "Cancel", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -102,7 +91,10 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) CancelSender(req *http | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -111,7 +103,6 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) CancelSender(req *http | ||||
| func (client VirtualMachineScaleSetRollingUpgradesClient) CancelResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -149,6 +140,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context. | ||||
| 	result, err = client.GetLatestResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "GetLatest", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -186,7 +178,6 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatestSender(req *h | ||||
| func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatestResponder(resp *http.Response) (result RollingUpgradeStatusInfo, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -205,8 +196,8 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgrade( | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetRollingUpgradesClient.StartExtensionUpgrade") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -219,7 +210,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgrade( | ||||
|  | ||||
| 	result, err = client.StartExtensionUpgradeSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "StartExtensionUpgrade", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "StartExtensionUpgrade", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -255,7 +246,10 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgradeS | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -264,7 +258,6 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgradeS | ||||
| func (client VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -281,8 +274,8 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgrade(ctx con | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetRollingUpgradesClient.StartOSUpgrade") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -295,7 +288,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgrade(ctx con | ||||
|  | ||||
| 	result, err = client.StartOSUpgradeSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "StartOSUpgrade", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesClient", "StartOSUpgrade", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -331,7 +324,10 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgradeSender(r | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -340,7 +336,6 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgradeSender(r | ||||
| func (client VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -43,7 +32,7 @@ func NewVirtualMachineScaleSetsClientWithBaseURI(baseURI string, subscriptionID | ||||
| 	return VirtualMachineScaleSetsClient{NewWithBaseURI(baseURI, subscriptionID)} | ||||
| } | ||||
|  | ||||
| // ConvertToSinglePlacementGroup converts SinglePlacementGroup property to false for a existing virtual machine scale | ||||
| // ConvertToSinglePlacementGroup converts SinglePlacementGroup property to true for a existing virtual machine scale | ||||
| // set. | ||||
| // Parameters: | ||||
| // resourceGroupName - the name of the resource group. | ||||
| @@ -76,6 +65,7 @@ func (client VirtualMachineScaleSetsClient) ConvertToSinglePlacementGroup(ctx co | ||||
| 	result, err = client.ConvertToSinglePlacementGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ConvertToSinglePlacementGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -115,7 +105,6 @@ func (client VirtualMachineScaleSetsClient) ConvertToSinglePlacementGroupSender( | ||||
| func (client VirtualMachineScaleSetsClient) ConvertToSinglePlacementGroupResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -132,8 +121,8 @@ func (client VirtualMachineScaleSetsClient) CreateOrUpdate(ctx context.Context, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -169,7 +158,7 @@ func (client VirtualMachineScaleSetsClient) CreateOrUpdate(ctx context.Context, | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -207,7 +196,10 @@ func (client VirtualMachineScaleSetsClient) CreateOrUpdateSender(req *http.Reque | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -216,7 +208,6 @@ func (client VirtualMachineScaleSetsClient) CreateOrUpdateSender(req *http.Reque | ||||
| func (client VirtualMachineScaleSetsClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualMachineScaleSet, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -235,8 +226,8 @@ func (client VirtualMachineScaleSetsClient) Deallocate(ctx context.Context, reso | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.Deallocate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -249,7 +240,7 @@ func (client VirtualMachineScaleSetsClient) Deallocate(ctx context.Context, reso | ||||
|  | ||||
| 	result, err = client.DeallocateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Deallocate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Deallocate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -290,7 +281,10 @@ func (client VirtualMachineScaleSetsClient) DeallocateSender(req *http.Request) | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -299,7 +293,6 @@ func (client VirtualMachineScaleSetsClient) DeallocateSender(req *http.Request) | ||||
| func (client VirtualMachineScaleSetsClient) DeallocateResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -315,8 +308,8 @@ func (client VirtualMachineScaleSetsClient) Delete(ctx context.Context, resource | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -329,7 +322,7 @@ func (client VirtualMachineScaleSetsClient) Delete(ctx context.Context, resource | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -365,7 +358,10 @@ func (client VirtualMachineScaleSetsClient) DeleteSender(req *http.Request) (fut | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -374,7 +370,6 @@ func (client VirtualMachineScaleSetsClient) DeleteSender(req *http.Request) (fut | ||||
| func (client VirtualMachineScaleSetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -391,8 +386,8 @@ func (client VirtualMachineScaleSetsClient) DeleteInstances(ctx context.Context, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.DeleteInstances") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -411,7 +406,7 @@ func (client VirtualMachineScaleSetsClient) DeleteInstances(ctx context.Context, | ||||
|  | ||||
| 	result, err = client.DeleteInstancesSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "DeleteInstances", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "DeleteInstances", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -449,7 +444,10 @@ func (client VirtualMachineScaleSetsClient) DeleteInstancesSender(req *http.Requ | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -458,7 +456,6 @@ func (client VirtualMachineScaleSetsClient) DeleteInstancesSender(req *http.Requ | ||||
| func (client VirtualMachineScaleSetsClient) DeleteInstancesResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -498,6 +495,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp | ||||
| 	result, err = client.ForceRecoveryServiceFabricPlatformUpdateDomainWalkResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -536,7 +534,6 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp | ||||
| func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUpdateDomainWalkResponder(resp *http.Response) (result RecoveryWalkResponse, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -575,6 +572,7 @@ func (client VirtualMachineScaleSetsClient) Get(ctx context.Context, resourceGro | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -612,7 +610,6 @@ func (client VirtualMachineScaleSetsClient) GetSender(req *http.Request) (*http. | ||||
| func (client VirtualMachineScaleSetsClient) GetResponder(resp *http.Response) (result VirtualMachineScaleSet, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -651,6 +648,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, | ||||
| 	result, err = client.GetInstanceViewResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetInstanceView", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -688,7 +686,6 @@ func (client VirtualMachineScaleSetsClient) GetInstanceViewSender(req *http.Requ | ||||
| func (client VirtualMachineScaleSetsClient) GetInstanceViewResponder(resp *http.Response) (result VirtualMachineScaleSetInstanceView, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -728,6 +725,11 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Cont | ||||
| 	result.vmsslouh, err = client.GetOSUpgradeHistoryResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "GetOSUpgradeHistory", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.vmsslouh.hasNextLink() && result.vmsslouh.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -765,7 +767,6 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistorySender(req *http. | ||||
| func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistoryResponder(resp *http.Response) (result VirtualMachineScaleSetListOSUpgradeHistory, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -841,6 +842,11 @@ func (client VirtualMachineScaleSetsClient) List(ctx context.Context, resourceGr | ||||
| 	result.vmsslr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.vmsslr.hasNextLink() && result.vmsslr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -877,7 +883,6 @@ func (client VirtualMachineScaleSetsClient) ListSender(req *http.Request) (*http | ||||
| func (client VirtualMachineScaleSetsClient) ListResponder(resp *http.Response) (result VirtualMachineScaleSetListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -953,6 +958,11 @@ func (client VirtualMachineScaleSetsClient) ListAll(ctx context.Context) (result | ||||
| 	result.vmsslwlr, err = client.ListAllResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListAll", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.vmsslwlr.hasNextLink() && result.vmsslwlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -988,7 +998,6 @@ func (client VirtualMachineScaleSetsClient) ListAllSender(req *http.Request) (*h | ||||
| func (client VirtualMachineScaleSetsClient) ListAllResponder(resp *http.Response) (result VirtualMachineScaleSetListWithLinkResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1066,6 +1075,11 @@ func (client VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, resour | ||||
| 	result.vmsslsr, err = client.ListSkusResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ListSkus", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.vmsslsr.hasNextLink() && result.vmsslsr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -1103,7 +1117,6 @@ func (client VirtualMachineScaleSetsClient) ListSkusSender(req *http.Request) (* | ||||
| func (client VirtualMachineScaleSetsClient) ListSkusResponder(resp *http.Response) (result VirtualMachineScaleSetListSkusResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1160,8 +1173,8 @@ func (client VirtualMachineScaleSetsClient) PerformMaintenance(ctx context.Conte | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.PerformMaintenance") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1174,7 +1187,7 @@ func (client VirtualMachineScaleSetsClient) PerformMaintenance(ctx context.Conte | ||||
|  | ||||
| 	result, err = client.PerformMaintenanceSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "PerformMaintenance", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "PerformMaintenance", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1215,7 +1228,10 @@ func (client VirtualMachineScaleSetsClient) PerformMaintenanceSender(req *http.R | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1224,7 +1240,6 @@ func (client VirtualMachineScaleSetsClient) PerformMaintenanceSender(req *http.R | ||||
| func (client VirtualMachineScaleSetsClient) PerformMaintenanceResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1245,8 +1260,8 @@ func (client VirtualMachineScaleSetsClient) PowerOff(ctx context.Context, resour | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.PowerOff") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1259,7 +1274,7 @@ func (client VirtualMachineScaleSetsClient) PowerOff(ctx context.Context, resour | ||||
|  | ||||
| 	result, err = client.PowerOffSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "PowerOff", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "PowerOff", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1305,7 +1320,10 @@ func (client VirtualMachineScaleSetsClient) PowerOffSender(req *http.Request) (f | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1314,7 +1332,6 @@ func (client VirtualMachineScaleSetsClient) PowerOffSender(req *http.Request) (f | ||||
| func (client VirtualMachineScaleSetsClient) PowerOffResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1332,8 +1349,8 @@ func (client VirtualMachineScaleSetsClient) Redeploy(ctx context.Context, resour | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.Redeploy") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1346,7 +1363,7 @@ func (client VirtualMachineScaleSetsClient) Redeploy(ctx context.Context, resour | ||||
|  | ||||
| 	result, err = client.RedeploySender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Redeploy", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Redeploy", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1387,7 +1404,10 @@ func (client VirtualMachineScaleSetsClient) RedeploySender(req *http.Request) (f | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1396,7 +1416,6 @@ func (client VirtualMachineScaleSetsClient) RedeploySender(req *http.Request) (f | ||||
| func (client VirtualMachineScaleSetsClient) RedeployResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1414,8 +1433,8 @@ func (client VirtualMachineScaleSetsClient) Reimage(ctx context.Context, resourc | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.Reimage") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1428,7 +1447,7 @@ func (client VirtualMachineScaleSetsClient) Reimage(ctx context.Context, resourc | ||||
|  | ||||
| 	result, err = client.ReimageSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Reimage", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Reimage", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1469,7 +1488,10 @@ func (client VirtualMachineScaleSetsClient) ReimageSender(req *http.Request) (fu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1478,7 +1500,6 @@ func (client VirtualMachineScaleSetsClient) ReimageSender(req *http.Request) (fu | ||||
| func (client VirtualMachineScaleSetsClient) ReimageResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1496,8 +1517,8 @@ func (client VirtualMachineScaleSetsClient) ReimageAll(ctx context.Context, reso | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.ReimageAll") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1510,7 +1531,7 @@ func (client VirtualMachineScaleSetsClient) ReimageAll(ctx context.Context, reso | ||||
|  | ||||
| 	result, err = client.ReimageAllSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ReimageAll", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "ReimageAll", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1551,7 +1572,10 @@ func (client VirtualMachineScaleSetsClient) ReimageAllSender(req *http.Request) | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1560,7 +1584,6 @@ func (client VirtualMachineScaleSetsClient) ReimageAllSender(req *http.Request) | ||||
| func (client VirtualMachineScaleSetsClient) ReimageAllResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1577,8 +1600,8 @@ func (client VirtualMachineScaleSetsClient) Restart(ctx context.Context, resourc | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.Restart") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1591,7 +1614,7 @@ func (client VirtualMachineScaleSetsClient) Restart(ctx context.Context, resourc | ||||
|  | ||||
| 	result, err = client.RestartSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Restart", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Restart", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1632,7 +1655,10 @@ func (client VirtualMachineScaleSetsClient) RestartSender(req *http.Request) (fu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1641,7 +1667,6 @@ func (client VirtualMachineScaleSetsClient) RestartSender(req *http.Request) (fu | ||||
| func (client VirtualMachineScaleSetsClient) RestartResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1658,8 +1683,8 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.SetOrchestrationServiceState") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1672,7 +1697,7 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceState(ctx con | ||||
|  | ||||
| 	result, err = client.SetOrchestrationServiceStateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "SetOrchestrationServiceState", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1710,7 +1735,10 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceStateSender(r | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1719,7 +1747,6 @@ func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceStateSender(r | ||||
| func (client VirtualMachineScaleSetsClient) SetOrchestrationServiceStateResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1736,8 +1763,8 @@ func (client VirtualMachineScaleSetsClient) Start(ctx context.Context, resourceG | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.Start") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1750,7 +1777,7 @@ func (client VirtualMachineScaleSetsClient) Start(ctx context.Context, resourceG | ||||
|  | ||||
| 	result, err = client.StartSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Start", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Start", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1791,7 +1818,10 @@ func (client VirtualMachineScaleSetsClient) StartSender(req *http.Request) (futu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1800,7 +1830,6 @@ func (client VirtualMachineScaleSetsClient) StartSender(req *http.Request) (futu | ||||
| func (client VirtualMachineScaleSetsClient) StartResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1817,8 +1846,8 @@ func (client VirtualMachineScaleSetsClient) Update(ctx context.Context, resource | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1831,7 +1860,7 @@ func (client VirtualMachineScaleSetsClient) Update(ctx context.Context, resource | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1869,7 +1898,10 @@ func (client VirtualMachineScaleSetsClient) UpdateSender(req *http.Request) (fut | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1878,7 +1910,6 @@ func (client VirtualMachineScaleSetsClient) UpdateSender(req *http.Request) (fut | ||||
| func (client VirtualMachineScaleSetsClient) UpdateResponder(resp *http.Response) (result VirtualMachineScaleSet, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1896,8 +1927,8 @@ func (client VirtualMachineScaleSetsClient) UpdateInstances(ctx context.Context, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetsClient.UpdateInstances") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1916,7 +1947,7 @@ func (client VirtualMachineScaleSetsClient) UpdateInstances(ctx context.Context, | ||||
|  | ||||
| 	result, err = client.UpdateInstancesSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "UpdateInstances", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsClient", "UpdateInstances", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1954,7 +1985,10 @@ func (client VirtualMachineScaleSetsClient) UpdateInstancesSender(req *http.Requ | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1963,7 +1997,6 @@ func (client VirtualMachineScaleSetsClient) UpdateInstancesSender(req *http.Requ | ||||
| func (client VirtualMachineScaleSetsClient) UpdateInstancesResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -55,8 +44,8 @@ func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdate(ctx contex | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMExtensionsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -69,7 +58,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdate(ctx contex | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -109,7 +98,10 @@ func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdateSender(req | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -118,7 +110,6 @@ func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdateSender(req | ||||
| func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualMachineExtension, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -137,8 +128,8 @@ func (client VirtualMachineScaleSetVMExtensionsClient) Delete(ctx context.Contex | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMExtensionsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -151,7 +142,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) Delete(ctx context.Contex | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -189,7 +180,10 @@ func (client VirtualMachineScaleSetVMExtensionsClient) DeleteSender(req *http.Re | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -198,7 +192,6 @@ func (client VirtualMachineScaleSetVMExtensionsClient) DeleteSender(req *http.Re | ||||
| func (client VirtualMachineScaleSetVMExtensionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -239,6 +232,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -281,7 +275,6 @@ func (client VirtualMachineScaleSetVMExtensionsClient) GetSender(req *http.Reque | ||||
| func (client VirtualMachineScaleSetVMExtensionsClient) GetResponder(resp *http.Response) (result VirtualMachineExtension, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -322,6 +315,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, | ||||
| 	result, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -363,7 +357,6 @@ func (client VirtualMachineScaleSetVMExtensionsClient) ListSender(req *http.Requ | ||||
| func (client VirtualMachineScaleSetVMExtensionsClient) ListResponder(resp *http.Response) (result VirtualMachineExtensionsListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -383,8 +376,8 @@ func (client VirtualMachineScaleSetVMExtensionsClient) Update(ctx context.Contex | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMExtensionsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -397,7 +390,7 @@ func (client VirtualMachineScaleSetVMExtensionsClient) Update(ctx context.Contex | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -437,7 +430,10 @@ func (client VirtualMachineScaleSetVMExtensionsClient) UpdateSender(req *http.Re | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -446,7 +442,6 @@ func (client VirtualMachineScaleSetVMExtensionsClient) UpdateSender(req *http.Re | ||||
| func (client VirtualMachineScaleSetVMExtensionsClient) UpdateResponder(resp *http.Response) (result VirtualMachineExtension, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -55,8 +44,8 @@ func (client VirtualMachineScaleSetVMsClient) Deallocate(ctx context.Context, re | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.Deallocate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -69,7 +58,7 @@ func (client VirtualMachineScaleSetVMsClient) Deallocate(ctx context.Context, re | ||||
|  | ||||
| 	result, err = client.DeallocateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Deallocate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Deallocate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -106,7 +95,10 @@ func (client VirtualMachineScaleSetVMsClient) DeallocateSender(req *http.Request | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -115,7 +107,6 @@ func (client VirtualMachineScaleSetVMsClient) DeallocateSender(req *http.Request | ||||
| func (client VirtualMachineScaleSetVMsClient) DeallocateResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -132,8 +123,8 @@ func (client VirtualMachineScaleSetVMsClient) Delete(ctx context.Context, resour | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -146,7 +137,7 @@ func (client VirtualMachineScaleSetVMsClient) Delete(ctx context.Context, resour | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -183,7 +174,10 @@ func (client VirtualMachineScaleSetVMsClient) DeleteSender(req *http.Request) (f | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -192,7 +186,6 @@ func (client VirtualMachineScaleSetVMsClient) DeleteSender(req *http.Request) (f | ||||
| func (client VirtualMachineScaleSetVMsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -232,6 +225,7 @@ func (client VirtualMachineScaleSetVMsClient) Get(ctx context.Context, resourceG | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -273,7 +267,6 @@ func (client VirtualMachineScaleSetVMsClient) GetSender(req *http.Request) (*htt | ||||
| func (client VirtualMachineScaleSetVMsClient) GetResponder(resp *http.Response) (result VirtualMachineScaleSetVM, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -313,6 +306,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Contex | ||||
| 	result, err = client.GetInstanceViewResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "GetInstanceView", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -351,7 +345,6 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceViewSender(req *http.Re | ||||
| func (client VirtualMachineScaleSetVMsClient) GetInstanceViewResponder(resp *http.Response) (result VirtualMachineScaleSetVMInstanceView, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -363,9 +356,10 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceViewResponder(resp *htt | ||||
| // Parameters: | ||||
| // resourceGroupName - the name of the resource group. | ||||
| // virtualMachineScaleSetName - the name of the VM scale set. | ||||
| // filter - the filter to apply to the operation. | ||||
| // selectParameter - the list parameters. | ||||
| // expand - the expand expression to apply to the operation. | ||||
| // filter - the filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, | ||||
| // 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'. | ||||
| // selectParameter - the list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. | ||||
| // expand - the expand expression to apply to the operation. Allowed values are 'instanceView'. | ||||
| func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resourceGroupName string, virtualMachineScaleSetName string, filter string, selectParameter string, expand string) (result VirtualMachineScaleSetVMListResultPage, err error) { | ||||
| 	if tracing.IsEnabled() { | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.List") | ||||
| @@ -394,6 +388,11 @@ func (client VirtualMachineScaleSetVMsClient) List(ctx context.Context, resource | ||||
| 	result.vmssvlr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.vmssvlr.hasNextLink() && result.vmssvlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -440,7 +439,6 @@ func (client VirtualMachineScaleSetVMsClient) ListSender(req *http.Request) (*ht | ||||
| func (client VirtualMachineScaleSetVMsClient) ListResponder(resp *http.Response) (result VirtualMachineScaleSetVMListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -485,7 +483,8 @@ func (client VirtualMachineScaleSetVMsClient) ListComplete(ctx context.Context, | ||||
| 	return | ||||
| } | ||||
|  | ||||
| // PerformMaintenance performs maintenance on a virtual machine in a VM scale set. | ||||
| // PerformMaintenance shuts down the virtual machine in a VMScaleSet, moves it to an already updated node, and powers | ||||
| // it back on during the self-service phase of planned maintenance. | ||||
| // Parameters: | ||||
| // resourceGroupName - the name of the resource group. | ||||
| // VMScaleSetName - the name of the VM scale set. | ||||
| @@ -495,8 +494,8 @@ func (client VirtualMachineScaleSetVMsClient) PerformMaintenance(ctx context.Con | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.PerformMaintenance") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -509,7 +508,7 @@ func (client VirtualMachineScaleSetVMsClient) PerformMaintenance(ctx context.Con | ||||
|  | ||||
| 	result, err = client.PerformMaintenanceSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "PerformMaintenance", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "PerformMaintenance", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -546,7 +545,10 @@ func (client VirtualMachineScaleSetVMsClient) PerformMaintenanceSender(req *http | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -555,7 +557,6 @@ func (client VirtualMachineScaleSetVMsClient) PerformMaintenanceSender(req *http | ||||
| func (client VirtualMachineScaleSetVMsClient) PerformMaintenanceResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -576,8 +577,8 @@ func (client VirtualMachineScaleSetVMsClient) PowerOff(ctx context.Context, reso | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.PowerOff") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -590,7 +591,7 @@ func (client VirtualMachineScaleSetVMsClient) PowerOff(ctx context.Context, reso | ||||
|  | ||||
| 	result, err = client.PowerOffSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "PowerOff", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "PowerOff", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -632,7 +633,10 @@ func (client VirtualMachineScaleSetVMsClient) PowerOffSender(req *http.Request) | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -641,7 +645,6 @@ func (client VirtualMachineScaleSetVMsClient) PowerOffSender(req *http.Request) | ||||
| func (client VirtualMachineScaleSetVMsClient) PowerOffResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -659,8 +662,8 @@ func (client VirtualMachineScaleSetVMsClient) Redeploy(ctx context.Context, reso | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.Redeploy") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -673,7 +676,7 @@ func (client VirtualMachineScaleSetVMsClient) Redeploy(ctx context.Context, reso | ||||
|  | ||||
| 	result, err = client.RedeploySender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Redeploy", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Redeploy", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -710,7 +713,10 @@ func (client VirtualMachineScaleSetVMsClient) RedeploySender(req *http.Request) | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -719,7 +725,6 @@ func (client VirtualMachineScaleSetVMsClient) RedeploySender(req *http.Request) | ||||
| func (client VirtualMachineScaleSetVMsClient) RedeployResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -737,8 +742,8 @@ func (client VirtualMachineScaleSetVMsClient) Reimage(ctx context.Context, resou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.Reimage") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -751,7 +756,7 @@ func (client VirtualMachineScaleSetVMsClient) Reimage(ctx context.Context, resou | ||||
|  | ||||
| 	result, err = client.ReimageSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Reimage", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Reimage", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -793,7 +798,10 @@ func (client VirtualMachineScaleSetVMsClient) ReimageSender(req *http.Request) ( | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -802,7 +810,6 @@ func (client VirtualMachineScaleSetVMsClient) ReimageSender(req *http.Request) ( | ||||
| func (client VirtualMachineScaleSetVMsClient) ReimageResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -820,8 +827,8 @@ func (client VirtualMachineScaleSetVMsClient) ReimageAll(ctx context.Context, re | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.ReimageAll") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -834,7 +841,7 @@ func (client VirtualMachineScaleSetVMsClient) ReimageAll(ctx context.Context, re | ||||
|  | ||||
| 	result, err = client.ReimageAllSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "ReimageAll", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "ReimageAll", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -871,7 +878,10 @@ func (client VirtualMachineScaleSetVMsClient) ReimageAllSender(req *http.Request | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -880,7 +890,6 @@ func (client VirtualMachineScaleSetVMsClient) ReimageAllSender(req *http.Request | ||||
| func (client VirtualMachineScaleSetVMsClient) ReimageAllResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -897,8 +906,8 @@ func (client VirtualMachineScaleSetVMsClient) Restart(ctx context.Context, resou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.Restart") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -911,7 +920,7 @@ func (client VirtualMachineScaleSetVMsClient) Restart(ctx context.Context, resou | ||||
|  | ||||
| 	result, err = client.RestartSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Restart", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Restart", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -948,7 +957,10 @@ func (client VirtualMachineScaleSetVMsClient) RestartSender(req *http.Request) ( | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -957,7 +969,6 @@ func (client VirtualMachineScaleSetVMsClient) RestartSender(req *http.Request) ( | ||||
| func (client VirtualMachineScaleSetVMsClient) RestartResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -975,8 +986,8 @@ func (client VirtualMachineScaleSetVMsClient) RunCommand(ctx context.Context, re | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.RunCommand") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -995,7 +1006,7 @@ func (client VirtualMachineScaleSetVMsClient) RunCommand(ctx context.Context, re | ||||
|  | ||||
| 	result, err = client.RunCommandSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "RunCommand", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "RunCommand", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1034,7 +1045,10 @@ func (client VirtualMachineScaleSetVMsClient) RunCommandSender(req *http.Request | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1043,7 +1057,6 @@ func (client VirtualMachineScaleSetVMsClient) RunCommandSender(req *http.Request | ||||
| func (client VirtualMachineScaleSetVMsClient) RunCommandResponder(resp *http.Response) (result RunCommandResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1084,6 +1097,7 @@ func (client VirtualMachineScaleSetVMsClient) SimulateEviction(ctx context.Conte | ||||
| 	result, err = client.SimulateEvictionResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "SimulateEviction", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -1122,7 +1136,6 @@ func (client VirtualMachineScaleSetVMsClient) SimulateEvictionSender(req *http.R | ||||
| func (client VirtualMachineScaleSetVMsClient) SimulateEvictionResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1139,8 +1152,8 @@ func (client VirtualMachineScaleSetVMsClient) Start(ctx context.Context, resourc | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.Start") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1153,7 +1166,7 @@ func (client VirtualMachineScaleSetVMsClient) Start(ctx context.Context, resourc | ||||
|  | ||||
| 	result, err = client.StartSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Start", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Start", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1190,7 +1203,10 @@ func (client VirtualMachineScaleSetVMsClient) StartSender(req *http.Request) (fu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1199,7 +1215,6 @@ func (client VirtualMachineScaleSetVMsClient) StartSender(req *http.Request) (fu | ||||
| func (client VirtualMachineScaleSetVMsClient) StartResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1217,8 +1232,8 @@ func (client VirtualMachineScaleSetVMsClient) Update(ctx context.Context, resour | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1252,7 +1267,7 @@ func (client VirtualMachineScaleSetVMsClient) Update(ctx context.Context, resour | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1295,7 +1310,10 @@ func (client VirtualMachineScaleSetVMsClient) UpdateSender(req *http.Request) (f | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1304,7 +1322,6 @@ func (client VirtualMachineScaleSetVMsClient) UpdateSender(req *http.Request) (f | ||||
| func (client VirtualMachineScaleSetVMsClient) UpdateResponder(resp *http.Response) (result VirtualMachineScaleSetVM, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package compute | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -80,6 +69,7 @@ func (client VirtualMachineSizesClient) List(ctx context.Context, location strin | ||||
| 	result, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "compute.VirtualMachineSizesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -116,7 +106,6 @@ func (client VirtualMachineSizesClient) ListSender(req *http.Request) (*http.Res | ||||
| func (client VirtualMachineSizesClient) ListResponder(resp *http.Response) (result VirtualMachineSizeListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
							
								
								
									
										23
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2019-05-01/containerregistry/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2019-05-01/containerregistry/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82//specification/containerregistry/resource-manager/readme.md tag: `package-2019-05` | ||||
|  | ||||
| Code generator @microsoft.azure/autorest.go@2.1.178 | ||||
|  | ||||
|  | ||||
| ### New Funcs | ||||
|  | ||||
| 1. *RegistriesCreateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RegistriesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RegistriesImportImageFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RegistriesScheduleRunFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RegistriesUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ReplicationsCreateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ReplicationsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ReplicationsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RunsCancelFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RunsUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *TasksCreateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *TasksDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *TasksUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WebhooksCreateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WebhooksDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WebhooksUpdateFuture.UnmarshalJSON([]byte) error | ||||
| @@ -3,19 +3,8 @@ | ||||
| // | ||||
| package containerregistry | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
|   | ||||
							
								
								
									
										513
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2019-05-01/containerregistry/enums.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										513
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2019-05-01/containerregistry/enums.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,513 @@ | ||||
| package containerregistry | ||||
|  | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
|  | ||||
| // Action enumerates the values for action. | ||||
| type Action string | ||||
|  | ||||
| const ( | ||||
| 	// Allow ... | ||||
| 	Allow Action = "Allow" | ||||
| ) | ||||
|  | ||||
| // PossibleActionValues returns an array of possible values for the Action const type. | ||||
| func PossibleActionValues() []Action { | ||||
| 	return []Action{Allow} | ||||
| } | ||||
|  | ||||
| // Architecture enumerates the values for architecture. | ||||
| type Architecture string | ||||
|  | ||||
| const ( | ||||
| 	// Amd64 ... | ||||
| 	Amd64 Architecture = "amd64" | ||||
| 	// Arm ... | ||||
| 	Arm Architecture = "arm" | ||||
| 	// X86 ... | ||||
| 	X86 Architecture = "x86" | ||||
| ) | ||||
|  | ||||
| // PossibleArchitectureValues returns an array of possible values for the Architecture const type. | ||||
| func PossibleArchitectureValues() []Architecture { | ||||
| 	return []Architecture{Amd64, Arm, X86} | ||||
| } | ||||
|  | ||||
| // BaseImageDependencyType enumerates the values for base image dependency type. | ||||
| type BaseImageDependencyType string | ||||
|  | ||||
| const ( | ||||
| 	// BuildTime ... | ||||
| 	BuildTime BaseImageDependencyType = "BuildTime" | ||||
| 	// RunTime ... | ||||
| 	RunTime BaseImageDependencyType = "RunTime" | ||||
| ) | ||||
|  | ||||
| // PossibleBaseImageDependencyTypeValues returns an array of possible values for the BaseImageDependencyType const type. | ||||
| func PossibleBaseImageDependencyTypeValues() []BaseImageDependencyType { | ||||
| 	return []BaseImageDependencyType{BuildTime, RunTime} | ||||
| } | ||||
|  | ||||
| // BaseImageTriggerType enumerates the values for base image trigger type. | ||||
| type BaseImageTriggerType string | ||||
|  | ||||
| const ( | ||||
| 	// All ... | ||||
| 	All BaseImageTriggerType = "All" | ||||
| 	// Runtime ... | ||||
| 	Runtime BaseImageTriggerType = "Runtime" | ||||
| ) | ||||
|  | ||||
| // PossibleBaseImageTriggerTypeValues returns an array of possible values for the BaseImageTriggerType const type. | ||||
| func PossibleBaseImageTriggerTypeValues() []BaseImageTriggerType { | ||||
| 	return []BaseImageTriggerType{All, Runtime} | ||||
| } | ||||
|  | ||||
| // DefaultAction enumerates the values for default action. | ||||
| type DefaultAction string | ||||
|  | ||||
| const ( | ||||
| 	// DefaultActionAllow ... | ||||
| 	DefaultActionAllow DefaultAction = "Allow" | ||||
| 	// DefaultActionDeny ... | ||||
| 	DefaultActionDeny DefaultAction = "Deny" | ||||
| ) | ||||
|  | ||||
| // PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type. | ||||
| func PossibleDefaultActionValues() []DefaultAction { | ||||
| 	return []DefaultAction{DefaultActionAllow, DefaultActionDeny} | ||||
| } | ||||
|  | ||||
| // ImportMode enumerates the values for import mode. | ||||
| type ImportMode string | ||||
|  | ||||
| const ( | ||||
| 	// Force ... | ||||
| 	Force ImportMode = "Force" | ||||
| 	// NoForce ... | ||||
| 	NoForce ImportMode = "NoForce" | ||||
| ) | ||||
|  | ||||
| // PossibleImportModeValues returns an array of possible values for the ImportMode const type. | ||||
| func PossibleImportModeValues() []ImportMode { | ||||
| 	return []ImportMode{Force, NoForce} | ||||
| } | ||||
|  | ||||
| // OS enumerates the values for os. | ||||
| type OS string | ||||
|  | ||||
| const ( | ||||
| 	// Linux ... | ||||
| 	Linux OS = "Linux" | ||||
| 	// Windows ... | ||||
| 	Windows OS = "Windows" | ||||
| ) | ||||
|  | ||||
| // PossibleOSValues returns an array of possible values for the OS const type. | ||||
| func PossibleOSValues() []OS { | ||||
| 	return []OS{Linux, Windows} | ||||
| } | ||||
|  | ||||
| // PasswordName enumerates the values for password name. | ||||
| type PasswordName string | ||||
|  | ||||
| const ( | ||||
| 	// Password ... | ||||
| 	Password PasswordName = "password" | ||||
| 	// Password2 ... | ||||
| 	Password2 PasswordName = "password2" | ||||
| ) | ||||
|  | ||||
| // PossiblePasswordNameValues returns an array of possible values for the PasswordName const type. | ||||
| func PossiblePasswordNameValues() []PasswordName { | ||||
| 	return []PasswordName{Password, Password2} | ||||
| } | ||||
|  | ||||
| // PolicyStatus enumerates the values for policy status. | ||||
| type PolicyStatus string | ||||
|  | ||||
| const ( | ||||
| 	// Disabled ... | ||||
| 	Disabled PolicyStatus = "disabled" | ||||
| 	// Enabled ... | ||||
| 	Enabled PolicyStatus = "enabled" | ||||
| ) | ||||
|  | ||||
| // PossiblePolicyStatusValues returns an array of possible values for the PolicyStatus const type. | ||||
| func PossiblePolicyStatusValues() []PolicyStatus { | ||||
| 	return []PolicyStatus{Disabled, Enabled} | ||||
| } | ||||
|  | ||||
| // ProvisioningState enumerates the values for provisioning state. | ||||
| type ProvisioningState string | ||||
|  | ||||
| const ( | ||||
| 	// Canceled ... | ||||
| 	Canceled ProvisioningState = "Canceled" | ||||
| 	// Creating ... | ||||
| 	Creating ProvisioningState = "Creating" | ||||
| 	// Deleting ... | ||||
| 	Deleting ProvisioningState = "Deleting" | ||||
| 	// Failed ... | ||||
| 	Failed ProvisioningState = "Failed" | ||||
| 	// Succeeded ... | ||||
| 	Succeeded ProvisioningState = "Succeeded" | ||||
| 	// Updating ... | ||||
| 	Updating ProvisioningState = "Updating" | ||||
| ) | ||||
|  | ||||
| // PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. | ||||
| func PossibleProvisioningStateValues() []ProvisioningState { | ||||
| 	return []ProvisioningState{Canceled, Creating, Deleting, Failed, Succeeded, Updating} | ||||
| } | ||||
|  | ||||
| // RegistryUsageUnit enumerates the values for registry usage unit. | ||||
| type RegistryUsageUnit string | ||||
|  | ||||
| const ( | ||||
| 	// Bytes ... | ||||
| 	Bytes RegistryUsageUnit = "Bytes" | ||||
| 	// Count ... | ||||
| 	Count RegistryUsageUnit = "Count" | ||||
| ) | ||||
|  | ||||
| // PossibleRegistryUsageUnitValues returns an array of possible values for the RegistryUsageUnit const type. | ||||
| func PossibleRegistryUsageUnitValues() []RegistryUsageUnit { | ||||
| 	return []RegistryUsageUnit{Bytes, Count} | ||||
| } | ||||
|  | ||||
| // ResourceIdentityType enumerates the values for resource identity type. | ||||
| type ResourceIdentityType string | ||||
|  | ||||
| const ( | ||||
| 	// None ... | ||||
| 	None ResourceIdentityType = "None" | ||||
| 	// SystemAssigned ... | ||||
| 	SystemAssigned ResourceIdentityType = "SystemAssigned" | ||||
| 	// SystemAssignedUserAssigned ... | ||||
| 	SystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned" | ||||
| 	// UserAssigned ... | ||||
| 	UserAssigned ResourceIdentityType = "UserAssigned" | ||||
| ) | ||||
|  | ||||
| // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. | ||||
| func PossibleResourceIdentityTypeValues() []ResourceIdentityType { | ||||
| 	return []ResourceIdentityType{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned} | ||||
| } | ||||
|  | ||||
| // RunStatus enumerates the values for run status. | ||||
| type RunStatus string | ||||
|  | ||||
| const ( | ||||
| 	// RunStatusCanceled ... | ||||
| 	RunStatusCanceled RunStatus = "Canceled" | ||||
| 	// RunStatusError ... | ||||
| 	RunStatusError RunStatus = "Error" | ||||
| 	// RunStatusFailed ... | ||||
| 	RunStatusFailed RunStatus = "Failed" | ||||
| 	// RunStatusQueued ... | ||||
| 	RunStatusQueued RunStatus = "Queued" | ||||
| 	// RunStatusRunning ... | ||||
| 	RunStatusRunning RunStatus = "Running" | ||||
| 	// RunStatusStarted ... | ||||
| 	RunStatusStarted RunStatus = "Started" | ||||
| 	// RunStatusSucceeded ... | ||||
| 	RunStatusSucceeded RunStatus = "Succeeded" | ||||
| 	// RunStatusTimeout ... | ||||
| 	RunStatusTimeout RunStatus = "Timeout" | ||||
| ) | ||||
|  | ||||
| // PossibleRunStatusValues returns an array of possible values for the RunStatus const type. | ||||
| func PossibleRunStatusValues() []RunStatus { | ||||
| 	return []RunStatus{RunStatusCanceled, RunStatusError, RunStatusFailed, RunStatusQueued, RunStatusRunning, RunStatusStarted, RunStatusSucceeded, RunStatusTimeout} | ||||
| } | ||||
|  | ||||
| // RunType enumerates the values for run type. | ||||
| type RunType string | ||||
|  | ||||
| const ( | ||||
| 	// AutoBuild ... | ||||
| 	AutoBuild RunType = "AutoBuild" | ||||
| 	// AutoRun ... | ||||
| 	AutoRun RunType = "AutoRun" | ||||
| 	// QuickBuild ... | ||||
| 	QuickBuild RunType = "QuickBuild" | ||||
| 	// QuickRun ... | ||||
| 	QuickRun RunType = "QuickRun" | ||||
| ) | ||||
|  | ||||
| // PossibleRunTypeValues returns an array of possible values for the RunType const type. | ||||
| func PossibleRunTypeValues() []RunType { | ||||
| 	return []RunType{AutoBuild, AutoRun, QuickBuild, QuickRun} | ||||
| } | ||||
|  | ||||
| // SecretObjectType enumerates the values for secret object type. | ||||
| type SecretObjectType string | ||||
|  | ||||
| const ( | ||||
| 	// Opaque ... | ||||
| 	Opaque SecretObjectType = "Opaque" | ||||
| 	// Vaultsecret ... | ||||
| 	Vaultsecret SecretObjectType = "Vaultsecret" | ||||
| ) | ||||
|  | ||||
| // PossibleSecretObjectTypeValues returns an array of possible values for the SecretObjectType const type. | ||||
| func PossibleSecretObjectTypeValues() []SecretObjectType { | ||||
| 	return []SecretObjectType{Opaque, Vaultsecret} | ||||
| } | ||||
|  | ||||
| // SkuName enumerates the values for sku name. | ||||
| type SkuName string | ||||
|  | ||||
| const ( | ||||
| 	// Basic ... | ||||
| 	Basic SkuName = "Basic" | ||||
| 	// Classic ... | ||||
| 	Classic SkuName = "Classic" | ||||
| 	// Premium ... | ||||
| 	Premium SkuName = "Premium" | ||||
| 	// Standard ... | ||||
| 	Standard SkuName = "Standard" | ||||
| ) | ||||
|  | ||||
| // PossibleSkuNameValues returns an array of possible values for the SkuName const type. | ||||
| func PossibleSkuNameValues() []SkuName { | ||||
| 	return []SkuName{Basic, Classic, Premium, Standard} | ||||
| } | ||||
|  | ||||
| // SkuTier enumerates the values for sku tier. | ||||
| type SkuTier string | ||||
|  | ||||
| const ( | ||||
| 	// SkuTierBasic ... | ||||
| 	SkuTierBasic SkuTier = "Basic" | ||||
| 	// SkuTierClassic ... | ||||
| 	SkuTierClassic SkuTier = "Classic" | ||||
| 	// SkuTierPremium ... | ||||
| 	SkuTierPremium SkuTier = "Premium" | ||||
| 	// SkuTierStandard ... | ||||
| 	SkuTierStandard SkuTier = "Standard" | ||||
| ) | ||||
|  | ||||
| // PossibleSkuTierValues returns an array of possible values for the SkuTier const type. | ||||
| func PossibleSkuTierValues() []SkuTier { | ||||
| 	return []SkuTier{SkuTierBasic, SkuTierClassic, SkuTierPremium, SkuTierStandard} | ||||
| } | ||||
|  | ||||
| // SourceControlType enumerates the values for source control type. | ||||
| type SourceControlType string | ||||
|  | ||||
| const ( | ||||
| 	// Github ... | ||||
| 	Github SourceControlType = "Github" | ||||
| 	// VisualStudioTeamService ... | ||||
| 	VisualStudioTeamService SourceControlType = "VisualStudioTeamService" | ||||
| ) | ||||
|  | ||||
| // PossibleSourceControlTypeValues returns an array of possible values for the SourceControlType const type. | ||||
| func PossibleSourceControlTypeValues() []SourceControlType { | ||||
| 	return []SourceControlType{Github, VisualStudioTeamService} | ||||
| } | ||||
|  | ||||
| // SourceRegistryLoginMode enumerates the values for source registry login mode. | ||||
| type SourceRegistryLoginMode string | ||||
|  | ||||
| const ( | ||||
| 	// SourceRegistryLoginModeDefault ... | ||||
| 	SourceRegistryLoginModeDefault SourceRegistryLoginMode = "Default" | ||||
| 	// SourceRegistryLoginModeNone ... | ||||
| 	SourceRegistryLoginModeNone SourceRegistryLoginMode = "None" | ||||
| ) | ||||
|  | ||||
| // PossibleSourceRegistryLoginModeValues returns an array of possible values for the SourceRegistryLoginMode const type. | ||||
| func PossibleSourceRegistryLoginModeValues() []SourceRegistryLoginMode { | ||||
| 	return []SourceRegistryLoginMode{SourceRegistryLoginModeDefault, SourceRegistryLoginModeNone} | ||||
| } | ||||
|  | ||||
| // SourceTriggerEvent enumerates the values for source trigger event. | ||||
| type SourceTriggerEvent string | ||||
|  | ||||
| const ( | ||||
| 	// Commit ... | ||||
| 	Commit SourceTriggerEvent = "commit" | ||||
| 	// Pullrequest ... | ||||
| 	Pullrequest SourceTriggerEvent = "pullrequest" | ||||
| ) | ||||
|  | ||||
| // PossibleSourceTriggerEventValues returns an array of possible values for the SourceTriggerEvent const type. | ||||
| func PossibleSourceTriggerEventValues() []SourceTriggerEvent { | ||||
| 	return []SourceTriggerEvent{Commit, Pullrequest} | ||||
| } | ||||
|  | ||||
| // TaskStatus enumerates the values for task status. | ||||
| type TaskStatus string | ||||
|  | ||||
| const ( | ||||
| 	// TaskStatusDisabled ... | ||||
| 	TaskStatusDisabled TaskStatus = "Disabled" | ||||
| 	// TaskStatusEnabled ... | ||||
| 	TaskStatusEnabled TaskStatus = "Enabled" | ||||
| ) | ||||
|  | ||||
| // PossibleTaskStatusValues returns an array of possible values for the TaskStatus const type. | ||||
| func PossibleTaskStatusValues() []TaskStatus { | ||||
| 	return []TaskStatus{TaskStatusDisabled, TaskStatusEnabled} | ||||
| } | ||||
|  | ||||
| // TokenType enumerates the values for token type. | ||||
| type TokenType string | ||||
|  | ||||
| const ( | ||||
| 	// OAuth ... | ||||
| 	OAuth TokenType = "OAuth" | ||||
| 	// PAT ... | ||||
| 	PAT TokenType = "PAT" | ||||
| ) | ||||
|  | ||||
| // PossibleTokenTypeValues returns an array of possible values for the TokenType const type. | ||||
| func PossibleTokenTypeValues() []TokenType { | ||||
| 	return []TokenType{OAuth, PAT} | ||||
| } | ||||
|  | ||||
| // TriggerStatus enumerates the values for trigger status. | ||||
| type TriggerStatus string | ||||
|  | ||||
| const ( | ||||
| 	// TriggerStatusDisabled ... | ||||
| 	TriggerStatusDisabled TriggerStatus = "Disabled" | ||||
| 	// TriggerStatusEnabled ... | ||||
| 	TriggerStatusEnabled TriggerStatus = "Enabled" | ||||
| ) | ||||
|  | ||||
| // PossibleTriggerStatusValues returns an array of possible values for the TriggerStatus const type. | ||||
| func PossibleTriggerStatusValues() []TriggerStatus { | ||||
| 	return []TriggerStatus{TriggerStatusDisabled, TriggerStatusEnabled} | ||||
| } | ||||
|  | ||||
| // TrustPolicyType enumerates the values for trust policy type. | ||||
| type TrustPolicyType string | ||||
|  | ||||
| const ( | ||||
| 	// Notary ... | ||||
| 	Notary TrustPolicyType = "Notary" | ||||
| ) | ||||
|  | ||||
| // PossibleTrustPolicyTypeValues returns an array of possible values for the TrustPolicyType const type. | ||||
| func PossibleTrustPolicyTypeValues() []TrustPolicyType { | ||||
| 	return []TrustPolicyType{Notary} | ||||
| } | ||||
|  | ||||
| // Type enumerates the values for type. | ||||
| type Type string | ||||
|  | ||||
| const ( | ||||
| 	// TypeDockerBuildRequest ... | ||||
| 	TypeDockerBuildRequest Type = "DockerBuildRequest" | ||||
| 	// TypeEncodedTaskRunRequest ... | ||||
| 	TypeEncodedTaskRunRequest Type = "EncodedTaskRunRequest" | ||||
| 	// TypeFileTaskRunRequest ... | ||||
| 	TypeFileTaskRunRequest Type = "FileTaskRunRequest" | ||||
| 	// TypeRunRequest ... | ||||
| 	TypeRunRequest Type = "RunRequest" | ||||
| 	// TypeTaskRunRequest ... | ||||
| 	TypeTaskRunRequest Type = "TaskRunRequest" | ||||
| ) | ||||
|  | ||||
| // PossibleTypeValues returns an array of possible values for the Type const type. | ||||
| func PossibleTypeValues() []Type { | ||||
| 	return []Type{TypeDockerBuildRequest, TypeEncodedTaskRunRequest, TypeFileTaskRunRequest, TypeRunRequest, TypeTaskRunRequest} | ||||
| } | ||||
|  | ||||
| // TypeBasicTaskStepProperties enumerates the values for type basic task step properties. | ||||
| type TypeBasicTaskStepProperties string | ||||
|  | ||||
| const ( | ||||
| 	// TypeDocker ... | ||||
| 	TypeDocker TypeBasicTaskStepProperties = "Docker" | ||||
| 	// TypeEncodedTask ... | ||||
| 	TypeEncodedTask TypeBasicTaskStepProperties = "EncodedTask" | ||||
| 	// TypeFileTask ... | ||||
| 	TypeFileTask TypeBasicTaskStepProperties = "FileTask" | ||||
| 	// TypeTaskStepProperties ... | ||||
| 	TypeTaskStepProperties TypeBasicTaskStepProperties = "TaskStepProperties" | ||||
| ) | ||||
|  | ||||
| // PossibleTypeBasicTaskStepPropertiesValues returns an array of possible values for the TypeBasicTaskStepProperties const type. | ||||
| func PossibleTypeBasicTaskStepPropertiesValues() []TypeBasicTaskStepProperties { | ||||
| 	return []TypeBasicTaskStepProperties{TypeDocker, TypeEncodedTask, TypeFileTask, TypeTaskStepProperties} | ||||
| } | ||||
|  | ||||
| // TypeBasicTaskStepUpdateParameters enumerates the values for type basic task step update parameters. | ||||
| type TypeBasicTaskStepUpdateParameters string | ||||
|  | ||||
| const ( | ||||
| 	// TypeBasicTaskStepUpdateParametersTypeDocker ... | ||||
| 	TypeBasicTaskStepUpdateParametersTypeDocker TypeBasicTaskStepUpdateParameters = "Docker" | ||||
| 	// TypeBasicTaskStepUpdateParametersTypeEncodedTask ... | ||||
| 	TypeBasicTaskStepUpdateParametersTypeEncodedTask TypeBasicTaskStepUpdateParameters = "EncodedTask" | ||||
| 	// TypeBasicTaskStepUpdateParametersTypeFileTask ... | ||||
| 	TypeBasicTaskStepUpdateParametersTypeFileTask TypeBasicTaskStepUpdateParameters = "FileTask" | ||||
| 	// TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters ... | ||||
| 	TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters TypeBasicTaskStepUpdateParameters = "TaskStepUpdateParameters" | ||||
| ) | ||||
|  | ||||
| // PossibleTypeBasicTaskStepUpdateParametersValues returns an array of possible values for the TypeBasicTaskStepUpdateParameters const type. | ||||
| func PossibleTypeBasicTaskStepUpdateParametersValues() []TypeBasicTaskStepUpdateParameters { | ||||
| 	return []TypeBasicTaskStepUpdateParameters{TypeBasicTaskStepUpdateParametersTypeDocker, TypeBasicTaskStepUpdateParametersTypeEncodedTask, TypeBasicTaskStepUpdateParametersTypeFileTask, TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters} | ||||
| } | ||||
|  | ||||
| // Variant enumerates the values for variant. | ||||
| type Variant string | ||||
|  | ||||
| const ( | ||||
| 	// V6 ... | ||||
| 	V6 Variant = "v6" | ||||
| 	// V7 ... | ||||
| 	V7 Variant = "v7" | ||||
| 	// V8 ... | ||||
| 	V8 Variant = "v8" | ||||
| ) | ||||
|  | ||||
| // PossibleVariantValues returns an array of possible values for the Variant const type. | ||||
| func PossibleVariantValues() []Variant { | ||||
| 	return []Variant{V6, V7, V8} | ||||
| } | ||||
|  | ||||
| // WebhookAction enumerates the values for webhook action. | ||||
| type WebhookAction string | ||||
|  | ||||
| const ( | ||||
| 	// ChartDelete ... | ||||
| 	ChartDelete WebhookAction = "chart_delete" | ||||
| 	// ChartPush ... | ||||
| 	ChartPush WebhookAction = "chart_push" | ||||
| 	// Delete ... | ||||
| 	Delete WebhookAction = "delete" | ||||
| 	// Push ... | ||||
| 	Push WebhookAction = "push" | ||||
| 	// Quarantine ... | ||||
| 	Quarantine WebhookAction = "quarantine" | ||||
| ) | ||||
|  | ||||
| // PossibleWebhookActionValues returns an array of possible values for the WebhookAction const type. | ||||
| func PossibleWebhookActionValues() []WebhookAction { | ||||
| 	return []WebhookAction{ChartDelete, ChartPush, Delete, Push, Quarantine} | ||||
| } | ||||
|  | ||||
| // WebhookStatus enumerates the values for webhook status. | ||||
| type WebhookStatus string | ||||
|  | ||||
| const ( | ||||
| 	// WebhookStatusDisabled ... | ||||
| 	WebhookStatusDisabled WebhookStatus = "disabled" | ||||
| 	// WebhookStatusEnabled ... | ||||
| 	WebhookStatusEnabled WebhookStatus = "enabled" | ||||
| ) | ||||
|  | ||||
| // PossibleWebhookStatusValues returns an array of possible values for the WebhookStatus const type. | ||||
| func PossibleWebhookStatusValues() []WebhookStatus { | ||||
| 	return []WebhookStatus{WebhookStatusDisabled, WebhookStatusEnabled} | ||||
| } | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,18 +1,7 @@ | ||||
| package containerregistry | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -70,6 +59,11 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe | ||||
| 	result.olr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.OperationsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.olr.hasNextLink() && result.olr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -101,7 +95,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er | ||||
| func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package containerregistry | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -84,6 +73,7 @@ func (client RegistriesClient) CheckNameAvailability(ctx context.Context, regist | ||||
| 	result, err = client.CheckNameAvailabilityResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "CheckNameAvailability", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -121,7 +111,6 @@ func (client RegistriesClient) CheckNameAvailabilitySender(req *http.Request) (* | ||||
| func (client RegistriesClient) CheckNameAvailabilityResponder(resp *http.Response) (result RegistryNameStatus, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -139,8 +128,8 @@ func (client RegistriesClient) Create(ctx context.Context, resourceGroupName str | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/RegistriesClient.Create") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -169,7 +158,7 @@ func (client RegistriesClient) Create(ctx context.Context, resourceGroupName str | ||||
|  | ||||
| 	result, err = client.CreateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Create", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Create", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -207,7 +196,10 @@ func (client RegistriesClient) CreateSender(req *http.Request) (future Registrie | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -216,7 +208,6 @@ func (client RegistriesClient) CreateSender(req *http.Request) (future Registrie | ||||
| func (client RegistriesClient) CreateResponder(resp *http.Response) (result Registry, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -233,8 +224,8 @@ func (client RegistriesClient) Delete(ctx context.Context, resourceGroupName str | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/RegistriesClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -257,7 +248,7 @@ func (client RegistriesClient) Delete(ctx context.Context, resourceGroupName str | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -293,7 +284,10 @@ func (client RegistriesClient) DeleteSender(req *http.Request) (future Registrie | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -302,7 +296,6 @@ func (client RegistriesClient) DeleteSender(req *http.Request) (future Registrie | ||||
| func (client RegistriesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -350,6 +343,7 @@ func (client RegistriesClient) Get(ctx context.Context, resourceGroupName string | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -387,7 +381,6 @@ func (client RegistriesClient) GetSender(req *http.Request) (*http.Response, err | ||||
| func (client RegistriesClient) GetResponder(resp *http.Response) (result Registry, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -436,6 +429,7 @@ func (client RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, reso | ||||
| 	result, err = client.GetBuildSourceUploadURLResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "GetBuildSourceUploadURL", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -473,7 +467,6 @@ func (client RegistriesClient) GetBuildSourceUploadURLSender(req *http.Request) | ||||
| func (client RegistriesClient) GetBuildSourceUploadURLResponder(resp *http.Response) (result SourceUploadDefinition, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -491,8 +484,8 @@ func (client RegistriesClient) ImportImage(ctx context.Context, resourceGroupNam | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/RegistriesClient.ImportImage") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -521,7 +514,7 @@ func (client RegistriesClient) ImportImage(ctx context.Context, resourceGroupNam | ||||
|  | ||||
| 	result, err = client.ImportImageSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ImportImage", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ImportImage", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -559,7 +552,10 @@ func (client RegistriesClient) ImportImageSender(req *http.Request) (future Regi | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -568,7 +564,6 @@ func (client RegistriesClient) ImportImageSender(req *http.Request) (future Regi | ||||
| func (client RegistriesClient) ImportImageResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -604,6 +599,11 @@ func (client RegistriesClient) List(ctx context.Context) (result RegistryListRes | ||||
| 	result.rlr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.rlr.hasNextLink() && result.rlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -639,7 +639,6 @@ func (client RegistriesClient) ListSender(req *http.Request) (*http.Response, er | ||||
| func (client RegistriesClient) ListResponder(resp *http.Response) (result RegistryListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -721,6 +720,11 @@ func (client RegistriesClient) ListByResourceGroup(ctx context.Context, resource | ||||
| 	result.rlr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.rlr.hasNextLink() && result.rlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -757,7 +761,6 @@ func (client RegistriesClient) ListByResourceGroupSender(req *http.Request) (*ht | ||||
| func (client RegistriesClient) ListByResourceGroupResponder(resp *http.Response) (result RegistryListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -843,6 +846,7 @@ func (client RegistriesClient) ListCredentials(ctx context.Context, resourceGrou | ||||
| 	result, err = client.ListCredentialsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListCredentials", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -880,7 +884,6 @@ func (client RegistriesClient) ListCredentialsSender(req *http.Request) (*http.R | ||||
| func (client RegistriesClient) ListCredentialsResponder(resp *http.Response) (result RegistryListCredentialsResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -929,6 +932,7 @@ func (client RegistriesClient) ListUsages(ctx context.Context, resourceGroupName | ||||
| 	result, err = client.ListUsagesResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ListUsages", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -966,7 +970,6 @@ func (client RegistriesClient) ListUsagesSender(req *http.Request) (*http.Respon | ||||
| func (client RegistriesClient) ListUsagesResponder(resp *http.Response) (result RegistryUsageListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1017,6 +1020,7 @@ func (client RegistriesClient) RegenerateCredential(ctx context.Context, resourc | ||||
| 	result, err = client.RegenerateCredentialResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "RegenerateCredential", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -1056,7 +1060,6 @@ func (client RegistriesClient) RegenerateCredentialSender(req *http.Request) (*h | ||||
| func (client RegistriesClient) RegenerateCredentialResponder(resp *http.Response) (result RegistryListCredentialsResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1074,8 +1077,8 @@ func (client RegistriesClient) ScheduleRun(ctx context.Context, resourceGroupNam | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/RegistriesClient.ScheduleRun") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1098,7 +1101,7 @@ func (client RegistriesClient) ScheduleRun(ctx context.Context, resourceGroupNam | ||||
|  | ||||
| 	result, err = client.ScheduleRunSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ScheduleRun", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "ScheduleRun", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1136,7 +1139,10 @@ func (client RegistriesClient) ScheduleRunSender(req *http.Request) (future Regi | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1145,7 +1151,6 @@ func (client RegistriesClient) ScheduleRunSender(req *http.Request) (future Regi | ||||
| func (client RegistriesClient) ScheduleRunResponder(resp *http.Response) (result Run, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1163,8 +1168,8 @@ func (client RegistriesClient) Update(ctx context.Context, resourceGroupName str | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/RegistriesClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1187,7 +1192,7 @@ func (client RegistriesClient) Update(ctx context.Context, resourceGroupName str | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RegistriesClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1225,7 +1230,10 @@ func (client RegistriesClient) UpdateSender(req *http.Request) (future Registrie | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1234,7 +1242,6 @@ func (client RegistriesClient) UpdateSender(req *http.Request) (future Registrie | ||||
| func (client RegistriesClient) UpdateResponder(resp *http.Response) (result Registry, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package containerregistry | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -53,8 +42,8 @@ func (client ReplicationsClient) Create(ctx context.Context, resourceGroupName s | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ReplicationsClient.Create") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -81,7 +70,7 @@ func (client ReplicationsClient) Create(ctx context.Context, resourceGroupName s | ||||
|  | ||||
| 	result, err = client.CreateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Create", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Create", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -120,7 +109,10 @@ func (client ReplicationsClient) CreateSender(req *http.Request) (future Replica | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -129,7 +121,6 @@ func (client ReplicationsClient) CreateSender(req *http.Request) (future Replica | ||||
| func (client ReplicationsClient) CreateResponder(resp *http.Response) (result Replication, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -147,8 +138,8 @@ func (client ReplicationsClient) Delete(ctx context.Context, resourceGroupName s | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ReplicationsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -175,7 +166,7 @@ func (client ReplicationsClient) Delete(ctx context.Context, resourceGroupName s | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -212,7 +203,10 @@ func (client ReplicationsClient) DeleteSender(req *http.Request) (future Replica | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -221,7 +215,6 @@ func (client ReplicationsClient) DeleteSender(req *http.Request) (future Replica | ||||
| func (client ReplicationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -274,6 +267,7 @@ func (client ReplicationsClient) Get(ctx context.Context, resourceGroupName stri | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -312,7 +306,6 @@ func (client ReplicationsClient) GetSender(req *http.Request) (*http.Response, e | ||||
| func (client ReplicationsClient) GetResponder(resp *http.Response) (result Replication, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -362,6 +355,11 @@ func (client ReplicationsClient) List(ctx context.Context, resourceGroupName str | ||||
| 	result.rlr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.rlr.hasNextLink() && result.rlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -399,7 +397,6 @@ func (client ReplicationsClient) ListSender(req *http.Request) (*http.Response, | ||||
| func (client ReplicationsClient) ListResponder(resp *http.Response) (result ReplicationListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -455,8 +452,8 @@ func (client ReplicationsClient) Update(ctx context.Context, resourceGroupName s | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ReplicationsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -483,7 +480,7 @@ func (client ReplicationsClient) Update(ctx context.Context, resourceGroupName s | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -522,7 +519,10 @@ func (client ReplicationsClient) UpdateSender(req *http.Request) (future Replica | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -531,7 +531,6 @@ func (client ReplicationsClient) UpdateSender(req *http.Request) (future Replica | ||||
| func (client ReplicationsClient) UpdateResponder(resp *http.Response) (result Replication, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package containerregistry | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -52,8 +41,8 @@ func (client RunsClient) Cancel(ctx context.Context, resourceGroupName string, r | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/RunsClient.Cancel") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -76,7 +65,7 @@ func (client RunsClient) Cancel(ctx context.Context, resourceGroupName string, r | ||||
|  | ||||
| 	result, err = client.CancelSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "Cancel", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "Cancel", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -113,7 +102,10 @@ func (client RunsClient) CancelSender(req *http.Request) (future RunsCancelFutur | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -122,7 +114,6 @@ func (client RunsClient) CancelSender(req *http.Request) (future RunsCancelFutur | ||||
| func (client RunsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -171,6 +162,7 @@ func (client RunsClient) Get(ctx context.Context, resourceGroupName string, regi | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -209,7 +201,6 @@ func (client RunsClient) GetSender(req *http.Request) (*http.Response, error) { | ||||
| func (client RunsClient) GetResponder(resp *http.Response) (result Run, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -259,6 +250,7 @@ func (client RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName str | ||||
| 	result, err = client.GetLogSasURLResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "GetLogSasURL", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -297,7 +289,6 @@ func (client RunsClient) GetLogSasURLSender(req *http.Request) (*http.Response, | ||||
| func (client RunsClient) GetLogSasURLResponder(resp *http.Response) (result RunGetLogResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -350,6 +341,11 @@ func (client RunsClient) List(ctx context.Context, resourceGroupName string, reg | ||||
| 	result.rlr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.rlr.hasNextLink() && result.rlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -393,7 +389,6 @@ func (client RunsClient) ListSender(req *http.Request) (*http.Response, error) { | ||||
| func (client RunsClient) ListResponder(resp *http.Response) (result RunListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -449,8 +444,8 @@ func (client RunsClient) Update(ctx context.Context, resourceGroupName string, r | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/RunsClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -473,7 +468,7 @@ func (client RunsClient) Update(ctx context.Context, resourceGroupName string, r | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.RunsClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -512,7 +507,10 @@ func (client RunsClient) UpdateSender(req *http.Request) (future RunsUpdateFutur | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -521,7 +519,6 @@ func (client RunsClient) UpdateSender(req *http.Request) (future RunsUpdateFutur | ||||
| func (client RunsClient) UpdateResponder(resp *http.Response) (result Run, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package containerregistry | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -53,8 +42,8 @@ func (client TasksClient) Create(ctx context.Context, resourceGroupName string, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/TasksClient.Create") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -77,7 +66,6 @@ func (client TasksClient) Create(ctx context.Context, resourceGroupName string, | ||||
| 						Chain: []validation.Constraint{{Target: "taskCreateParameters.TaskProperties.Timeout", Name: validation.InclusiveMaximum, Rule: int64(28800), Chain: nil}, | ||||
| 							{Target: "taskCreateParameters.TaskProperties.Timeout", Name: validation.InclusiveMinimum, Rule: int64(300), Chain: nil}, | ||||
| 						}}, | ||||
| 					{Target: "taskCreateParameters.TaskProperties.Step", Name: validation.Null, Rule: true, Chain: nil}, | ||||
| 					{Target: "taskCreateParameters.TaskProperties.Trigger", Name: validation.Null, Rule: false, | ||||
| 						Chain: []validation.Constraint{{Target: "taskCreateParameters.TaskProperties.Trigger.BaseImageTrigger", Name: validation.Null, Rule: false, | ||||
| 							Chain: []validation.Constraint{{Target: "taskCreateParameters.TaskProperties.Trigger.BaseImageTrigger.Name", Name: validation.Null, Rule: true, Chain: nil}}}, | ||||
| @@ -94,7 +82,7 @@ func (client TasksClient) Create(ctx context.Context, resourceGroupName string, | ||||
|  | ||||
| 	result, err = client.CreateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Create", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Create", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -133,7 +121,10 @@ func (client TasksClient) CreateSender(req *http.Request) (future TasksCreateFut | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -142,7 +133,6 @@ func (client TasksClient) CreateSender(req *http.Request) (future TasksCreateFut | ||||
| func (client TasksClient) CreateResponder(resp *http.Response) (result Task, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -160,8 +150,8 @@ func (client TasksClient) Delete(ctx context.Context, resourceGroupName string, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/TasksClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -188,7 +178,7 @@ func (client TasksClient) Delete(ctx context.Context, resourceGroupName string, | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -225,7 +215,10 @@ func (client TasksClient) DeleteSender(req *http.Request) (future TasksDeleteFut | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -234,7 +227,6 @@ func (client TasksClient) DeleteSender(req *http.Request) (future TasksDeleteFut | ||||
| func (client TasksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -287,6 +279,7 @@ func (client TasksClient) Get(ctx context.Context, resourceGroupName string, reg | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -325,7 +318,6 @@ func (client TasksClient) GetSender(req *http.Request) (*http.Response, error) { | ||||
| func (client TasksClient) GetResponder(resp *http.Response) (result Task, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -379,6 +371,7 @@ func (client TasksClient) GetDetails(ctx context.Context, resourceGroupName stri | ||||
| 	result, err = client.GetDetailsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "GetDetails", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -417,7 +410,6 @@ func (client TasksClient) GetDetailsSender(req *http.Request) (*http.Response, e | ||||
| func (client TasksClient) GetDetailsResponder(resp *http.Response) (result Task, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -467,6 +459,11 @@ func (client TasksClient) List(ctx context.Context, resourceGroupName string, re | ||||
| 	result.tlr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.tlr.hasNextLink() && result.tlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -504,7 +501,6 @@ func (client TasksClient) ListSender(req *http.Request) (*http.Response, error) | ||||
| func (client TasksClient) ListResponder(resp *http.Response) (result TaskListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -560,8 +556,8 @@ func (client TasksClient) Update(ctx context.Context, resourceGroupName string, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/TasksClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -588,7 +584,7 @@ func (client TasksClient) Update(ctx context.Context, resourceGroupName string, | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.TasksClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -627,7 +623,10 @@ func (client TasksClient) UpdateSender(req *http.Request) (future TasksUpdateFut | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -636,7 +635,6 @@ func (client TasksClient) UpdateSender(req *http.Request) (future TasksUpdateFut | ||||
| func (client TasksClient) UpdateResponder(resp *http.Response) (result Task, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -2,19 +2,8 @@ package containerregistry | ||||
|  | ||||
| import "github.com/Azure/azure-sdk-for-go/version" | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package containerregistry | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -53,8 +42,8 @@ func (client WebhooksClient) Create(ctx context.Context, resourceGroupName strin | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/WebhooksClient.Create") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -87,7 +76,7 @@ func (client WebhooksClient) Create(ctx context.Context, resourceGroupName strin | ||||
|  | ||||
| 	result, err = client.CreateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Create", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Create", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -126,7 +115,10 @@ func (client WebhooksClient) CreateSender(req *http.Request) (future WebhooksCre | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -135,7 +127,6 @@ func (client WebhooksClient) CreateSender(req *http.Request) (future WebhooksCre | ||||
| func (client WebhooksClient) CreateResponder(resp *http.Response) (result Webhook, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -153,8 +144,8 @@ func (client WebhooksClient) Delete(ctx context.Context, resourceGroupName strin | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/WebhooksClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -181,7 +172,7 @@ func (client WebhooksClient) Delete(ctx context.Context, resourceGroupName strin | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -218,7 +209,10 @@ func (client WebhooksClient) DeleteSender(req *http.Request) (future WebhooksDel | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -227,7 +221,6 @@ func (client WebhooksClient) DeleteSender(req *http.Request) (future WebhooksDel | ||||
| func (client WebhooksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -280,6 +273,7 @@ func (client WebhooksClient) Get(ctx context.Context, resourceGroupName string, | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -318,7 +312,6 @@ func (client WebhooksClient) GetSender(req *http.Request) (*http.Response, error | ||||
| func (client WebhooksClient) GetResponder(resp *http.Response) (result Webhook, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -372,6 +365,7 @@ func (client WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGrou | ||||
| 	result, err = client.GetCallbackConfigResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "GetCallbackConfig", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -410,7 +404,6 @@ func (client WebhooksClient) GetCallbackConfigSender(req *http.Request) (*http.R | ||||
| func (client WebhooksClient) GetCallbackConfigResponder(resp *http.Response) (result CallbackConfig, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -460,6 +453,11 @@ func (client WebhooksClient) List(ctx context.Context, resourceGroupName string, | ||||
| 	result.wlr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.wlr.hasNextLink() && result.wlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -497,7 +495,6 @@ func (client WebhooksClient) ListSender(req *http.Request) (*http.Response, erro | ||||
| func (client WebhooksClient) ListResponder(resp *http.Response) (result WebhookListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -589,6 +586,11 @@ func (client WebhooksClient) ListEvents(ctx context.Context, resourceGroupName s | ||||
| 	result.elr, err = client.ListEventsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "ListEvents", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.elr.hasNextLink() && result.elr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -627,7 +629,6 @@ func (client WebhooksClient) ListEventsSender(req *http.Request) (*http.Response | ||||
| func (client WebhooksClient) ListEventsResponder(resp *http.Response) (result EventListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -718,6 +719,7 @@ func (client WebhooksClient) Ping(ctx context.Context, resourceGroupName string, | ||||
| 	result, err = client.PingResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Ping", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -756,7 +758,6 @@ func (client WebhooksClient) PingSender(req *http.Request) (*http.Response, erro | ||||
| func (client WebhooksClient) PingResponder(resp *http.Response) (result EventInfo, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -775,8 +776,8 @@ func (client WebhooksClient) Update(ctx context.Context, resourceGroupName strin | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/WebhooksClient.Update") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -803,7 +804,7 @@ func (client WebhooksClient) Update(ctx context.Context, resourceGroupName strin | ||||
|  | ||||
| 	result, err = client.UpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Update", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerregistry.WebhooksClient", "Update", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -842,7 +843,10 @@ func (client WebhooksClient) UpdateSender(req *http.Request) (future WebhooksUpd | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -851,7 +855,6 @@ func (client WebhooksClient) UpdateSender(req *http.Request) (future WebhooksUpd | ||||
| func (client WebhooksClient) UpdateResponder(resp *http.Response) (result Webhook, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
							
								
								
									
										20
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-04-01/containerservice/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-04-01/containerservice/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82//specification/containerservice/resource-manager/readme.md tag: `package-2020-04` | ||||
|  | ||||
| Code generator @microsoft.azure/autorest.go@2.1.178 | ||||
|  | ||||
|  | ||||
| ### New Funcs | ||||
|  | ||||
| 1. *AgentPoolsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *AgentPoolsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ContainerServicesCreateOrUpdateFutureType.UnmarshalJSON([]byte) error | ||||
| 1. *ContainerServicesDeleteFutureType.UnmarshalJSON([]byte) error | ||||
| 1. *ManagedClustersCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ManagedClustersDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ManagedClustersResetAADProfileFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ManagedClustersResetServicePrincipalProfileFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ManagedClustersRotateClusterCertificatesFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ManagedClustersUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *OpenShiftManagedClustersCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *OpenShiftManagedClustersDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *OpenShiftManagedClustersUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| @@ -1,18 +1,7 @@ | ||||
| package containerservice | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -53,8 +42,8 @@ func (client AgentPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroup | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -77,7 +66,7 @@ func (client AgentPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroup | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -116,7 +105,10 @@ func (client AgentPoolsClient) CreateOrUpdateSender(req *http.Request) (future A | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -125,7 +117,6 @@ func (client AgentPoolsClient) CreateOrUpdateSender(req *http.Request) (future A | ||||
| func (client AgentPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result AgentPool, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -143,8 +134,8 @@ func (client AgentPoolsClient) Delete(ctx context.Context, resourceGroupName str | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -167,7 +158,7 @@ func (client AgentPoolsClient) Delete(ctx context.Context, resourceGroupName str | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -204,7 +195,10 @@ func (client AgentPoolsClient) DeleteSender(req *http.Request) (future AgentPool | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -213,7 +207,6 @@ func (client AgentPoolsClient) DeleteSender(req *http.Request) (future AgentPool | ||||
| func (client AgentPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -262,6 +255,7 @@ func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -300,7 +294,6 @@ func (client AgentPoolsClient) GetSender(req *http.Request) (*http.Response, err | ||||
| func (client AgentPoolsClient) GetResponder(resp *http.Response) (result AgentPool, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -349,6 +342,7 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context | ||||
| 	result, err = client.GetAvailableAgentPoolVersionsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -386,7 +380,6 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersionsSender(req *http.Req | ||||
| func (client AgentPoolsClient) GetAvailableAgentPoolVersionsResponder(resp *http.Response) (result AgentPoolAvailableVersions, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -437,6 +430,7 @@ func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGr | ||||
| 	result, err = client.GetUpgradeProfileResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -475,7 +469,6 @@ func (client AgentPoolsClient) GetUpgradeProfileSender(req *http.Request) (*http | ||||
| func (client AgentPoolsClient) GetUpgradeProfileResponder(resp *http.Response) (result AgentPoolUpgradeProfile, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -526,6 +519,11 @@ func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName strin | ||||
| 	result.aplr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.aplr.hasNextLink() && result.aplr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -563,7 +561,6 @@ func (client AgentPoolsClient) ListSender(req *http.Request) (*http.Response, er | ||||
| func (client AgentPoolsClient) ListResponder(resp *http.Response) (result AgentPoolListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -3,19 +3,8 @@ | ||||
| // The Container Service Client. | ||||
| package containerservice | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package containerservice | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -54,8 +43,8 @@ func (client ContainerServicesClient) CreateOrUpdate(ctx context.Context, resour | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -102,7 +91,7 @@ func (client ContainerServicesClient) CreateOrUpdate(ctx context.Context, resour | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -140,7 +129,10 @@ func (client ContainerServicesClient) CreateOrUpdateSender(req *http.Request) (f | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -149,7 +141,6 @@ func (client ContainerServicesClient) CreateOrUpdateSender(req *http.Request) (f | ||||
| func (client ContainerServicesClient) CreateOrUpdateResponder(resp *http.Response) (result ContainerService, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -169,8 +160,8 @@ func (client ContainerServicesClient) Delete(ctx context.Context, resourceGroupN | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -183,7 +174,7 @@ func (client ContainerServicesClient) Delete(ctx context.Context, resourceGroupN | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -219,7 +210,10 @@ func (client ContainerServicesClient) DeleteSender(req *http.Request) (future Co | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -228,7 +222,6 @@ func (client ContainerServicesClient) DeleteSender(req *http.Request) (future Co | ||||
| func (client ContainerServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -268,6 +261,7 @@ func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -305,7 +299,6 @@ func (client ContainerServicesClient) GetSender(req *http.Request) (*http.Respon | ||||
| func (client ContainerServicesClient) GetResponder(resp *http.Response) (result ContainerService, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -343,6 +336,11 @@ func (client ContainerServicesClient) List(ctx context.Context) (result ListResu | ||||
| 	result.lr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.lr.hasNextLink() && result.lr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -378,7 +376,6 @@ func (client ContainerServicesClient) ListSender(req *http.Request) (*http.Respo | ||||
| func (client ContainerServicesClient) ListResponder(resp *http.Response) (result ListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -456,6 +453,11 @@ func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, r | ||||
| 	result.lr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.lr.hasNextLink() && result.lr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -492,7 +494,6 @@ func (client ContainerServicesClient) ListByResourceGroupSender(req *http.Reques | ||||
| func (client ContainerServicesClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -570,6 +571,7 @@ func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, loc | ||||
| 	result, err = client.ListOrchestratorsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -609,7 +611,6 @@ func (client ContainerServicesClient) ListOrchestratorsSender(req *http.Request) | ||||
| func (client ContainerServicesClient) ListOrchestratorsResponder(resp *http.Response) (result OrchestratorVersionProfileListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
							
								
								
									
										702
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-04-01/containerservice/enums.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										702
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2020-04-01/containerservice/enums.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,702 @@ | ||||
| package containerservice | ||||
|  | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
|  | ||||
| // AgentPoolMode enumerates the values for agent pool mode. | ||||
| type AgentPoolMode string | ||||
|  | ||||
| const ( | ||||
| 	// System ... | ||||
| 	System AgentPoolMode = "System" | ||||
| 	// User ... | ||||
| 	User AgentPoolMode = "User" | ||||
| ) | ||||
|  | ||||
| // PossibleAgentPoolModeValues returns an array of possible values for the AgentPoolMode const type. | ||||
| func PossibleAgentPoolModeValues() []AgentPoolMode { | ||||
| 	return []AgentPoolMode{System, User} | ||||
| } | ||||
|  | ||||
| // AgentPoolType enumerates the values for agent pool type. | ||||
| type AgentPoolType string | ||||
|  | ||||
| const ( | ||||
| 	// AvailabilitySet ... | ||||
| 	AvailabilitySet AgentPoolType = "AvailabilitySet" | ||||
| 	// VirtualMachineScaleSets ... | ||||
| 	VirtualMachineScaleSets AgentPoolType = "VirtualMachineScaleSets" | ||||
| ) | ||||
|  | ||||
| // PossibleAgentPoolTypeValues returns an array of possible values for the AgentPoolType const type. | ||||
| func PossibleAgentPoolTypeValues() []AgentPoolType { | ||||
| 	return []AgentPoolType{AvailabilitySet, VirtualMachineScaleSets} | ||||
| } | ||||
|  | ||||
| // Kind enumerates the values for kind. | ||||
| type Kind string | ||||
|  | ||||
| const ( | ||||
| 	// KindAADIdentityProvider ... | ||||
| 	KindAADIdentityProvider Kind = "AADIdentityProvider" | ||||
| 	// KindOpenShiftManagedClusterBaseIdentityProvider ... | ||||
| 	KindOpenShiftManagedClusterBaseIdentityProvider Kind = "OpenShiftManagedClusterBaseIdentityProvider" | ||||
| ) | ||||
|  | ||||
| // PossibleKindValues returns an array of possible values for the Kind const type. | ||||
| func PossibleKindValues() []Kind { | ||||
| 	return []Kind{KindAADIdentityProvider, KindOpenShiftManagedClusterBaseIdentityProvider} | ||||
| } | ||||
|  | ||||
| // LoadBalancerSku enumerates the values for load balancer sku. | ||||
| type LoadBalancerSku string | ||||
|  | ||||
| const ( | ||||
| 	// Basic ... | ||||
| 	Basic LoadBalancerSku = "basic" | ||||
| 	// Standard ... | ||||
| 	Standard LoadBalancerSku = "standard" | ||||
| ) | ||||
|  | ||||
| // PossibleLoadBalancerSkuValues returns an array of possible values for the LoadBalancerSku const type. | ||||
| func PossibleLoadBalancerSkuValues() []LoadBalancerSku { | ||||
| 	return []LoadBalancerSku{Basic, Standard} | ||||
| } | ||||
|  | ||||
| // ManagedClusterSKUName enumerates the values for managed cluster sku name. | ||||
| type ManagedClusterSKUName string | ||||
|  | ||||
| const ( | ||||
| 	// ManagedClusterSKUNameBasic ... | ||||
| 	ManagedClusterSKUNameBasic ManagedClusterSKUName = "Basic" | ||||
| ) | ||||
|  | ||||
| // PossibleManagedClusterSKUNameValues returns an array of possible values for the ManagedClusterSKUName const type. | ||||
| func PossibleManagedClusterSKUNameValues() []ManagedClusterSKUName { | ||||
| 	return []ManagedClusterSKUName{ManagedClusterSKUNameBasic} | ||||
| } | ||||
|  | ||||
| // ManagedClusterSKUTier enumerates the values for managed cluster sku tier. | ||||
| type ManagedClusterSKUTier string | ||||
|  | ||||
| const ( | ||||
| 	// Free ... | ||||
| 	Free ManagedClusterSKUTier = "Free" | ||||
| 	// Paid ... | ||||
| 	Paid ManagedClusterSKUTier = "Paid" | ||||
| ) | ||||
|  | ||||
| // PossibleManagedClusterSKUTierValues returns an array of possible values for the ManagedClusterSKUTier const type. | ||||
| func PossibleManagedClusterSKUTierValues() []ManagedClusterSKUTier { | ||||
| 	return []ManagedClusterSKUTier{Free, Paid} | ||||
| } | ||||
|  | ||||
| // NetworkMode enumerates the values for network mode. | ||||
| type NetworkMode string | ||||
|  | ||||
| const ( | ||||
| 	// Bridge ... | ||||
| 	Bridge NetworkMode = "bridge" | ||||
| 	// Transparent ... | ||||
| 	Transparent NetworkMode = "transparent" | ||||
| ) | ||||
|  | ||||
| // PossibleNetworkModeValues returns an array of possible values for the NetworkMode const type. | ||||
| func PossibleNetworkModeValues() []NetworkMode { | ||||
| 	return []NetworkMode{Bridge, Transparent} | ||||
| } | ||||
|  | ||||
| // NetworkPlugin enumerates the values for network plugin. | ||||
| type NetworkPlugin string | ||||
|  | ||||
| const ( | ||||
| 	// Azure ... | ||||
| 	Azure NetworkPlugin = "azure" | ||||
| 	// Kubenet ... | ||||
| 	Kubenet NetworkPlugin = "kubenet" | ||||
| ) | ||||
|  | ||||
| // PossibleNetworkPluginValues returns an array of possible values for the NetworkPlugin const type. | ||||
| func PossibleNetworkPluginValues() []NetworkPlugin { | ||||
| 	return []NetworkPlugin{Azure, Kubenet} | ||||
| } | ||||
|  | ||||
| // NetworkPolicy enumerates the values for network policy. | ||||
| type NetworkPolicy string | ||||
|  | ||||
| const ( | ||||
| 	// NetworkPolicyAzure ... | ||||
| 	NetworkPolicyAzure NetworkPolicy = "azure" | ||||
| 	// NetworkPolicyCalico ... | ||||
| 	NetworkPolicyCalico NetworkPolicy = "calico" | ||||
| ) | ||||
|  | ||||
| // PossibleNetworkPolicyValues returns an array of possible values for the NetworkPolicy const type. | ||||
| func PossibleNetworkPolicyValues() []NetworkPolicy { | ||||
| 	return []NetworkPolicy{NetworkPolicyAzure, NetworkPolicyCalico} | ||||
| } | ||||
|  | ||||
| // OpenShiftAgentPoolProfileRole enumerates the values for open shift agent pool profile role. | ||||
| type OpenShiftAgentPoolProfileRole string | ||||
|  | ||||
| const ( | ||||
| 	// Compute ... | ||||
| 	Compute OpenShiftAgentPoolProfileRole = "compute" | ||||
| 	// Infra ... | ||||
| 	Infra OpenShiftAgentPoolProfileRole = "infra" | ||||
| ) | ||||
|  | ||||
| // PossibleOpenShiftAgentPoolProfileRoleValues returns an array of possible values for the OpenShiftAgentPoolProfileRole const type. | ||||
| func PossibleOpenShiftAgentPoolProfileRoleValues() []OpenShiftAgentPoolProfileRole { | ||||
| 	return []OpenShiftAgentPoolProfileRole{Compute, Infra} | ||||
| } | ||||
|  | ||||
| // OpenShiftContainerServiceVMSize enumerates the values for open shift container service vm size. | ||||
| type OpenShiftContainerServiceVMSize string | ||||
|  | ||||
| const ( | ||||
| 	// StandardD16sV3 ... | ||||
| 	StandardD16sV3 OpenShiftContainerServiceVMSize = "Standard_D16s_v3" | ||||
| 	// StandardD2sV3 ... | ||||
| 	StandardD2sV3 OpenShiftContainerServiceVMSize = "Standard_D2s_v3" | ||||
| 	// StandardD32sV3 ... | ||||
| 	StandardD32sV3 OpenShiftContainerServiceVMSize = "Standard_D32s_v3" | ||||
| 	// StandardD4sV3 ... | ||||
| 	StandardD4sV3 OpenShiftContainerServiceVMSize = "Standard_D4s_v3" | ||||
| 	// StandardD64sV3 ... | ||||
| 	StandardD64sV3 OpenShiftContainerServiceVMSize = "Standard_D64s_v3" | ||||
| 	// StandardD8sV3 ... | ||||
| 	StandardD8sV3 OpenShiftContainerServiceVMSize = "Standard_D8s_v3" | ||||
| 	// StandardDS12V2 ... | ||||
| 	StandardDS12V2 OpenShiftContainerServiceVMSize = "Standard_DS12_v2" | ||||
| 	// StandardDS13V2 ... | ||||
| 	StandardDS13V2 OpenShiftContainerServiceVMSize = "Standard_DS13_v2" | ||||
| 	// StandardDS14V2 ... | ||||
| 	StandardDS14V2 OpenShiftContainerServiceVMSize = "Standard_DS14_v2" | ||||
| 	// StandardDS15V2 ... | ||||
| 	StandardDS15V2 OpenShiftContainerServiceVMSize = "Standard_DS15_v2" | ||||
| 	// StandardDS4V2 ... | ||||
| 	StandardDS4V2 OpenShiftContainerServiceVMSize = "Standard_DS4_v2" | ||||
| 	// StandardDS5V2 ... | ||||
| 	StandardDS5V2 OpenShiftContainerServiceVMSize = "Standard_DS5_v2" | ||||
| 	// StandardE16sV3 ... | ||||
| 	StandardE16sV3 OpenShiftContainerServiceVMSize = "Standard_E16s_v3" | ||||
| 	// StandardE20sV3 ... | ||||
| 	StandardE20sV3 OpenShiftContainerServiceVMSize = "Standard_E20s_v3" | ||||
| 	// StandardE32sV3 ... | ||||
| 	StandardE32sV3 OpenShiftContainerServiceVMSize = "Standard_E32s_v3" | ||||
| 	// StandardE4sV3 ... | ||||
| 	StandardE4sV3 OpenShiftContainerServiceVMSize = "Standard_E4s_v3" | ||||
| 	// StandardE64sV3 ... | ||||
| 	StandardE64sV3 OpenShiftContainerServiceVMSize = "Standard_E64s_v3" | ||||
| 	// StandardE8sV3 ... | ||||
| 	StandardE8sV3 OpenShiftContainerServiceVMSize = "Standard_E8s_v3" | ||||
| 	// StandardF16s ... | ||||
| 	StandardF16s OpenShiftContainerServiceVMSize = "Standard_F16s" | ||||
| 	// StandardF16sV2 ... | ||||
| 	StandardF16sV2 OpenShiftContainerServiceVMSize = "Standard_F16s_v2" | ||||
| 	// StandardF32sV2 ... | ||||
| 	StandardF32sV2 OpenShiftContainerServiceVMSize = "Standard_F32s_v2" | ||||
| 	// StandardF64sV2 ... | ||||
| 	StandardF64sV2 OpenShiftContainerServiceVMSize = "Standard_F64s_v2" | ||||
| 	// StandardF72sV2 ... | ||||
| 	StandardF72sV2 OpenShiftContainerServiceVMSize = "Standard_F72s_v2" | ||||
| 	// StandardF8s ... | ||||
| 	StandardF8s OpenShiftContainerServiceVMSize = "Standard_F8s" | ||||
| 	// StandardF8sV2 ... | ||||
| 	StandardF8sV2 OpenShiftContainerServiceVMSize = "Standard_F8s_v2" | ||||
| 	// StandardGS2 ... | ||||
| 	StandardGS2 OpenShiftContainerServiceVMSize = "Standard_GS2" | ||||
| 	// StandardGS3 ... | ||||
| 	StandardGS3 OpenShiftContainerServiceVMSize = "Standard_GS3" | ||||
| 	// StandardGS4 ... | ||||
| 	StandardGS4 OpenShiftContainerServiceVMSize = "Standard_GS4" | ||||
| 	// StandardGS5 ... | ||||
| 	StandardGS5 OpenShiftContainerServiceVMSize = "Standard_GS5" | ||||
| 	// StandardL16s ... | ||||
| 	StandardL16s OpenShiftContainerServiceVMSize = "Standard_L16s" | ||||
| 	// StandardL32s ... | ||||
| 	StandardL32s OpenShiftContainerServiceVMSize = "Standard_L32s" | ||||
| 	// StandardL4s ... | ||||
| 	StandardL4s OpenShiftContainerServiceVMSize = "Standard_L4s" | ||||
| 	// StandardL8s ... | ||||
| 	StandardL8s OpenShiftContainerServiceVMSize = "Standard_L8s" | ||||
| ) | ||||
|  | ||||
| // PossibleOpenShiftContainerServiceVMSizeValues returns an array of possible values for the OpenShiftContainerServiceVMSize const type. | ||||
| func PossibleOpenShiftContainerServiceVMSizeValues() []OpenShiftContainerServiceVMSize { | ||||
| 	return []OpenShiftContainerServiceVMSize{StandardD16sV3, StandardD2sV3, StandardD32sV3, StandardD4sV3, StandardD64sV3, StandardD8sV3, StandardDS12V2, StandardDS13V2, StandardDS14V2, StandardDS15V2, StandardDS4V2, StandardDS5V2, StandardE16sV3, StandardE20sV3, StandardE32sV3, StandardE4sV3, StandardE64sV3, StandardE8sV3, StandardF16s, StandardF16sV2, StandardF32sV2, StandardF64sV2, StandardF72sV2, StandardF8s, StandardF8sV2, StandardGS2, StandardGS3, StandardGS4, StandardGS5, StandardL16s, StandardL32s, StandardL4s, StandardL8s} | ||||
| } | ||||
|  | ||||
| // OrchestratorTypes enumerates the values for orchestrator types. | ||||
| type OrchestratorTypes string | ||||
|  | ||||
| const ( | ||||
| 	// Custom ... | ||||
| 	Custom OrchestratorTypes = "Custom" | ||||
| 	// DCOS ... | ||||
| 	DCOS OrchestratorTypes = "DCOS" | ||||
| 	// DockerCE ... | ||||
| 	DockerCE OrchestratorTypes = "DockerCE" | ||||
| 	// Kubernetes ... | ||||
| 	Kubernetes OrchestratorTypes = "Kubernetes" | ||||
| 	// Swarm ... | ||||
| 	Swarm OrchestratorTypes = "Swarm" | ||||
| ) | ||||
|  | ||||
| // PossibleOrchestratorTypesValues returns an array of possible values for the OrchestratorTypes const type. | ||||
| func PossibleOrchestratorTypesValues() []OrchestratorTypes { | ||||
| 	return []OrchestratorTypes{Custom, DCOS, DockerCE, Kubernetes, Swarm} | ||||
| } | ||||
|  | ||||
| // OSType enumerates the values for os type. | ||||
| type OSType string | ||||
|  | ||||
| const ( | ||||
| 	// Linux ... | ||||
| 	Linux OSType = "Linux" | ||||
| 	// Windows ... | ||||
| 	Windows OSType = "Windows" | ||||
| ) | ||||
|  | ||||
| // PossibleOSTypeValues returns an array of possible values for the OSType const type. | ||||
| func PossibleOSTypeValues() []OSType { | ||||
| 	return []OSType{Linux, Windows} | ||||
| } | ||||
|  | ||||
| // OutboundType enumerates the values for outbound type. | ||||
| type OutboundType string | ||||
|  | ||||
| const ( | ||||
| 	// LoadBalancer ... | ||||
| 	LoadBalancer OutboundType = "loadBalancer" | ||||
| 	// UserDefinedRouting ... | ||||
| 	UserDefinedRouting OutboundType = "userDefinedRouting" | ||||
| ) | ||||
|  | ||||
| // PossibleOutboundTypeValues returns an array of possible values for the OutboundType const type. | ||||
| func PossibleOutboundTypeValues() []OutboundType { | ||||
| 	return []OutboundType{LoadBalancer, UserDefinedRouting} | ||||
| } | ||||
|  | ||||
| // ResourceIdentityType enumerates the values for resource identity type. | ||||
| type ResourceIdentityType string | ||||
|  | ||||
| const ( | ||||
| 	// None ... | ||||
| 	None ResourceIdentityType = "None" | ||||
| 	// SystemAssigned ... | ||||
| 	SystemAssigned ResourceIdentityType = "SystemAssigned" | ||||
| ) | ||||
|  | ||||
| // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. | ||||
| func PossibleResourceIdentityTypeValues() []ResourceIdentityType { | ||||
| 	return []ResourceIdentityType{None, SystemAssigned} | ||||
| } | ||||
|  | ||||
| // ScaleSetEvictionPolicy enumerates the values for scale set eviction policy. | ||||
| type ScaleSetEvictionPolicy string | ||||
|  | ||||
| const ( | ||||
| 	// Deallocate ... | ||||
| 	Deallocate ScaleSetEvictionPolicy = "Deallocate" | ||||
| 	// Delete ... | ||||
| 	Delete ScaleSetEvictionPolicy = "Delete" | ||||
| ) | ||||
|  | ||||
| // PossibleScaleSetEvictionPolicyValues returns an array of possible values for the ScaleSetEvictionPolicy const type. | ||||
| func PossibleScaleSetEvictionPolicyValues() []ScaleSetEvictionPolicy { | ||||
| 	return []ScaleSetEvictionPolicy{Deallocate, Delete} | ||||
| } | ||||
|  | ||||
| // ScaleSetPriority enumerates the values for scale set priority. | ||||
| type ScaleSetPriority string | ||||
|  | ||||
| const ( | ||||
| 	// Regular ... | ||||
| 	Regular ScaleSetPriority = "Regular" | ||||
| 	// Spot ... | ||||
| 	Spot ScaleSetPriority = "Spot" | ||||
| ) | ||||
|  | ||||
| // PossibleScaleSetPriorityValues returns an array of possible values for the ScaleSetPriority const type. | ||||
| func PossibleScaleSetPriorityValues() []ScaleSetPriority { | ||||
| 	return []ScaleSetPriority{Regular, Spot} | ||||
| } | ||||
|  | ||||
| // StorageProfileTypes enumerates the values for storage profile types. | ||||
| type StorageProfileTypes string | ||||
|  | ||||
| const ( | ||||
| 	// ManagedDisks ... | ||||
| 	ManagedDisks StorageProfileTypes = "ManagedDisks" | ||||
| 	// StorageAccount ... | ||||
| 	StorageAccount StorageProfileTypes = "StorageAccount" | ||||
| ) | ||||
|  | ||||
| // PossibleStorageProfileTypesValues returns an array of possible values for the StorageProfileTypes const type. | ||||
| func PossibleStorageProfileTypesValues() []StorageProfileTypes { | ||||
| 	return []StorageProfileTypes{ManagedDisks, StorageAccount} | ||||
| } | ||||
|  | ||||
| // VMSizeTypes enumerates the values for vm size types. | ||||
| type VMSizeTypes string | ||||
|  | ||||
| const ( | ||||
| 	// VMSizeTypesStandardA1 ... | ||||
| 	VMSizeTypesStandardA1 VMSizeTypes = "Standard_A1" | ||||
| 	// VMSizeTypesStandardA10 ... | ||||
| 	VMSizeTypesStandardA10 VMSizeTypes = "Standard_A10" | ||||
| 	// VMSizeTypesStandardA11 ... | ||||
| 	VMSizeTypesStandardA11 VMSizeTypes = "Standard_A11" | ||||
| 	// VMSizeTypesStandardA1V2 ... | ||||
| 	VMSizeTypesStandardA1V2 VMSizeTypes = "Standard_A1_v2" | ||||
| 	// VMSizeTypesStandardA2 ... | ||||
| 	VMSizeTypesStandardA2 VMSizeTypes = "Standard_A2" | ||||
| 	// VMSizeTypesStandardA2mV2 ... | ||||
| 	VMSizeTypesStandardA2mV2 VMSizeTypes = "Standard_A2m_v2" | ||||
| 	// VMSizeTypesStandardA2V2 ... | ||||
| 	VMSizeTypesStandardA2V2 VMSizeTypes = "Standard_A2_v2" | ||||
| 	// VMSizeTypesStandardA3 ... | ||||
| 	VMSizeTypesStandardA3 VMSizeTypes = "Standard_A3" | ||||
| 	// VMSizeTypesStandardA4 ... | ||||
| 	VMSizeTypesStandardA4 VMSizeTypes = "Standard_A4" | ||||
| 	// VMSizeTypesStandardA4mV2 ... | ||||
| 	VMSizeTypesStandardA4mV2 VMSizeTypes = "Standard_A4m_v2" | ||||
| 	// VMSizeTypesStandardA4V2 ... | ||||
| 	VMSizeTypesStandardA4V2 VMSizeTypes = "Standard_A4_v2" | ||||
| 	// VMSizeTypesStandardA5 ... | ||||
| 	VMSizeTypesStandardA5 VMSizeTypes = "Standard_A5" | ||||
| 	// VMSizeTypesStandardA6 ... | ||||
| 	VMSizeTypesStandardA6 VMSizeTypes = "Standard_A6" | ||||
| 	// VMSizeTypesStandardA7 ... | ||||
| 	VMSizeTypesStandardA7 VMSizeTypes = "Standard_A7" | ||||
| 	// VMSizeTypesStandardA8 ... | ||||
| 	VMSizeTypesStandardA8 VMSizeTypes = "Standard_A8" | ||||
| 	// VMSizeTypesStandardA8mV2 ... | ||||
| 	VMSizeTypesStandardA8mV2 VMSizeTypes = "Standard_A8m_v2" | ||||
| 	// VMSizeTypesStandardA8V2 ... | ||||
| 	VMSizeTypesStandardA8V2 VMSizeTypes = "Standard_A8_v2" | ||||
| 	// VMSizeTypesStandardA9 ... | ||||
| 	VMSizeTypesStandardA9 VMSizeTypes = "Standard_A9" | ||||
| 	// VMSizeTypesStandardB2ms ... | ||||
| 	VMSizeTypesStandardB2ms VMSizeTypes = "Standard_B2ms" | ||||
| 	// VMSizeTypesStandardB2s ... | ||||
| 	VMSizeTypesStandardB2s VMSizeTypes = "Standard_B2s" | ||||
| 	// VMSizeTypesStandardB4ms ... | ||||
| 	VMSizeTypesStandardB4ms VMSizeTypes = "Standard_B4ms" | ||||
| 	// VMSizeTypesStandardB8ms ... | ||||
| 	VMSizeTypesStandardB8ms VMSizeTypes = "Standard_B8ms" | ||||
| 	// VMSizeTypesStandardD1 ... | ||||
| 	VMSizeTypesStandardD1 VMSizeTypes = "Standard_D1" | ||||
| 	// VMSizeTypesStandardD11 ... | ||||
| 	VMSizeTypesStandardD11 VMSizeTypes = "Standard_D11" | ||||
| 	// VMSizeTypesStandardD11V2 ... | ||||
| 	VMSizeTypesStandardD11V2 VMSizeTypes = "Standard_D11_v2" | ||||
| 	// VMSizeTypesStandardD11V2Promo ... | ||||
| 	VMSizeTypesStandardD11V2Promo VMSizeTypes = "Standard_D11_v2_Promo" | ||||
| 	// VMSizeTypesStandardD12 ... | ||||
| 	VMSizeTypesStandardD12 VMSizeTypes = "Standard_D12" | ||||
| 	// VMSizeTypesStandardD12V2 ... | ||||
| 	VMSizeTypesStandardD12V2 VMSizeTypes = "Standard_D12_v2" | ||||
| 	// VMSizeTypesStandardD12V2Promo ... | ||||
| 	VMSizeTypesStandardD12V2Promo VMSizeTypes = "Standard_D12_v2_Promo" | ||||
| 	// VMSizeTypesStandardD13 ... | ||||
| 	VMSizeTypesStandardD13 VMSizeTypes = "Standard_D13" | ||||
| 	// VMSizeTypesStandardD13V2 ... | ||||
| 	VMSizeTypesStandardD13V2 VMSizeTypes = "Standard_D13_v2" | ||||
| 	// VMSizeTypesStandardD13V2Promo ... | ||||
| 	VMSizeTypesStandardD13V2Promo VMSizeTypes = "Standard_D13_v2_Promo" | ||||
| 	// VMSizeTypesStandardD14 ... | ||||
| 	VMSizeTypesStandardD14 VMSizeTypes = "Standard_D14" | ||||
| 	// VMSizeTypesStandardD14V2 ... | ||||
| 	VMSizeTypesStandardD14V2 VMSizeTypes = "Standard_D14_v2" | ||||
| 	// VMSizeTypesStandardD14V2Promo ... | ||||
| 	VMSizeTypesStandardD14V2Promo VMSizeTypes = "Standard_D14_v2_Promo" | ||||
| 	// VMSizeTypesStandardD15V2 ... | ||||
| 	VMSizeTypesStandardD15V2 VMSizeTypes = "Standard_D15_v2" | ||||
| 	// VMSizeTypesStandardD16sV3 ... | ||||
| 	VMSizeTypesStandardD16sV3 VMSizeTypes = "Standard_D16s_v3" | ||||
| 	// VMSizeTypesStandardD16V3 ... | ||||
| 	VMSizeTypesStandardD16V3 VMSizeTypes = "Standard_D16_v3" | ||||
| 	// VMSizeTypesStandardD1V2 ... | ||||
| 	VMSizeTypesStandardD1V2 VMSizeTypes = "Standard_D1_v2" | ||||
| 	// VMSizeTypesStandardD2 ... | ||||
| 	VMSizeTypesStandardD2 VMSizeTypes = "Standard_D2" | ||||
| 	// VMSizeTypesStandardD2sV3 ... | ||||
| 	VMSizeTypesStandardD2sV3 VMSizeTypes = "Standard_D2s_v3" | ||||
| 	// VMSizeTypesStandardD2V2 ... | ||||
| 	VMSizeTypesStandardD2V2 VMSizeTypes = "Standard_D2_v2" | ||||
| 	// VMSizeTypesStandardD2V2Promo ... | ||||
| 	VMSizeTypesStandardD2V2Promo VMSizeTypes = "Standard_D2_v2_Promo" | ||||
| 	// VMSizeTypesStandardD2V3 ... | ||||
| 	VMSizeTypesStandardD2V3 VMSizeTypes = "Standard_D2_v3" | ||||
| 	// VMSizeTypesStandardD3 ... | ||||
| 	VMSizeTypesStandardD3 VMSizeTypes = "Standard_D3" | ||||
| 	// VMSizeTypesStandardD32sV3 ... | ||||
| 	VMSizeTypesStandardD32sV3 VMSizeTypes = "Standard_D32s_v3" | ||||
| 	// VMSizeTypesStandardD32V3 ... | ||||
| 	VMSizeTypesStandardD32V3 VMSizeTypes = "Standard_D32_v3" | ||||
| 	// VMSizeTypesStandardD3V2 ... | ||||
| 	VMSizeTypesStandardD3V2 VMSizeTypes = "Standard_D3_v2" | ||||
| 	// VMSizeTypesStandardD3V2Promo ... | ||||
| 	VMSizeTypesStandardD3V2Promo VMSizeTypes = "Standard_D3_v2_Promo" | ||||
| 	// VMSizeTypesStandardD4 ... | ||||
| 	VMSizeTypesStandardD4 VMSizeTypes = "Standard_D4" | ||||
| 	// VMSizeTypesStandardD4sV3 ... | ||||
| 	VMSizeTypesStandardD4sV3 VMSizeTypes = "Standard_D4s_v3" | ||||
| 	// VMSizeTypesStandardD4V2 ... | ||||
| 	VMSizeTypesStandardD4V2 VMSizeTypes = "Standard_D4_v2" | ||||
| 	// VMSizeTypesStandardD4V2Promo ... | ||||
| 	VMSizeTypesStandardD4V2Promo VMSizeTypes = "Standard_D4_v2_Promo" | ||||
| 	// VMSizeTypesStandardD4V3 ... | ||||
| 	VMSizeTypesStandardD4V3 VMSizeTypes = "Standard_D4_v3" | ||||
| 	// VMSizeTypesStandardD5V2 ... | ||||
| 	VMSizeTypesStandardD5V2 VMSizeTypes = "Standard_D5_v2" | ||||
| 	// VMSizeTypesStandardD5V2Promo ... | ||||
| 	VMSizeTypesStandardD5V2Promo VMSizeTypes = "Standard_D5_v2_Promo" | ||||
| 	// VMSizeTypesStandardD64sV3 ... | ||||
| 	VMSizeTypesStandardD64sV3 VMSizeTypes = "Standard_D64s_v3" | ||||
| 	// VMSizeTypesStandardD64V3 ... | ||||
| 	VMSizeTypesStandardD64V3 VMSizeTypes = "Standard_D64_v3" | ||||
| 	// VMSizeTypesStandardD8sV3 ... | ||||
| 	VMSizeTypesStandardD8sV3 VMSizeTypes = "Standard_D8s_v3" | ||||
| 	// VMSizeTypesStandardD8V3 ... | ||||
| 	VMSizeTypesStandardD8V3 VMSizeTypes = "Standard_D8_v3" | ||||
| 	// VMSizeTypesStandardDS1 ... | ||||
| 	VMSizeTypesStandardDS1 VMSizeTypes = "Standard_DS1" | ||||
| 	// VMSizeTypesStandardDS11 ... | ||||
| 	VMSizeTypesStandardDS11 VMSizeTypes = "Standard_DS11" | ||||
| 	// VMSizeTypesStandardDS11V2 ... | ||||
| 	VMSizeTypesStandardDS11V2 VMSizeTypes = "Standard_DS11_v2" | ||||
| 	// VMSizeTypesStandardDS11V2Promo ... | ||||
| 	VMSizeTypesStandardDS11V2Promo VMSizeTypes = "Standard_DS11_v2_Promo" | ||||
| 	// VMSizeTypesStandardDS12 ... | ||||
| 	VMSizeTypesStandardDS12 VMSizeTypes = "Standard_DS12" | ||||
| 	// VMSizeTypesStandardDS12V2 ... | ||||
| 	VMSizeTypesStandardDS12V2 VMSizeTypes = "Standard_DS12_v2" | ||||
| 	// VMSizeTypesStandardDS12V2Promo ... | ||||
| 	VMSizeTypesStandardDS12V2Promo VMSizeTypes = "Standard_DS12_v2_Promo" | ||||
| 	// VMSizeTypesStandardDS13 ... | ||||
| 	VMSizeTypesStandardDS13 VMSizeTypes = "Standard_DS13" | ||||
| 	// VMSizeTypesStandardDS132V2 ... | ||||
| 	VMSizeTypesStandardDS132V2 VMSizeTypes = "Standard_DS13-2_v2" | ||||
| 	// VMSizeTypesStandardDS134V2 ... | ||||
| 	VMSizeTypesStandardDS134V2 VMSizeTypes = "Standard_DS13-4_v2" | ||||
| 	// VMSizeTypesStandardDS13V2 ... | ||||
| 	VMSizeTypesStandardDS13V2 VMSizeTypes = "Standard_DS13_v2" | ||||
| 	// VMSizeTypesStandardDS13V2Promo ... | ||||
| 	VMSizeTypesStandardDS13V2Promo VMSizeTypes = "Standard_DS13_v2_Promo" | ||||
| 	// VMSizeTypesStandardDS14 ... | ||||
| 	VMSizeTypesStandardDS14 VMSizeTypes = "Standard_DS14" | ||||
| 	// VMSizeTypesStandardDS144V2 ... | ||||
| 	VMSizeTypesStandardDS144V2 VMSizeTypes = "Standard_DS14-4_v2" | ||||
| 	// VMSizeTypesStandardDS148V2 ... | ||||
| 	VMSizeTypesStandardDS148V2 VMSizeTypes = "Standard_DS14-8_v2" | ||||
| 	// VMSizeTypesStandardDS14V2 ... | ||||
| 	VMSizeTypesStandardDS14V2 VMSizeTypes = "Standard_DS14_v2" | ||||
| 	// VMSizeTypesStandardDS14V2Promo ... | ||||
| 	VMSizeTypesStandardDS14V2Promo VMSizeTypes = "Standard_DS14_v2_Promo" | ||||
| 	// VMSizeTypesStandardDS15V2 ... | ||||
| 	VMSizeTypesStandardDS15V2 VMSizeTypes = "Standard_DS15_v2" | ||||
| 	// VMSizeTypesStandardDS1V2 ... | ||||
| 	VMSizeTypesStandardDS1V2 VMSizeTypes = "Standard_DS1_v2" | ||||
| 	// VMSizeTypesStandardDS2 ... | ||||
| 	VMSizeTypesStandardDS2 VMSizeTypes = "Standard_DS2" | ||||
| 	// VMSizeTypesStandardDS2V2 ... | ||||
| 	VMSizeTypesStandardDS2V2 VMSizeTypes = "Standard_DS2_v2" | ||||
| 	// VMSizeTypesStandardDS2V2Promo ... | ||||
| 	VMSizeTypesStandardDS2V2Promo VMSizeTypes = "Standard_DS2_v2_Promo" | ||||
| 	// VMSizeTypesStandardDS3 ... | ||||
| 	VMSizeTypesStandardDS3 VMSizeTypes = "Standard_DS3" | ||||
| 	// VMSizeTypesStandardDS3V2 ... | ||||
| 	VMSizeTypesStandardDS3V2 VMSizeTypes = "Standard_DS3_v2" | ||||
| 	// VMSizeTypesStandardDS3V2Promo ... | ||||
| 	VMSizeTypesStandardDS3V2Promo VMSizeTypes = "Standard_DS3_v2_Promo" | ||||
| 	// VMSizeTypesStandardDS4 ... | ||||
| 	VMSizeTypesStandardDS4 VMSizeTypes = "Standard_DS4" | ||||
| 	// VMSizeTypesStandardDS4V2 ... | ||||
| 	VMSizeTypesStandardDS4V2 VMSizeTypes = "Standard_DS4_v2" | ||||
| 	// VMSizeTypesStandardDS4V2Promo ... | ||||
| 	VMSizeTypesStandardDS4V2Promo VMSizeTypes = "Standard_DS4_v2_Promo" | ||||
| 	// VMSizeTypesStandardDS5V2 ... | ||||
| 	VMSizeTypesStandardDS5V2 VMSizeTypes = "Standard_DS5_v2" | ||||
| 	// VMSizeTypesStandardDS5V2Promo ... | ||||
| 	VMSizeTypesStandardDS5V2Promo VMSizeTypes = "Standard_DS5_v2_Promo" | ||||
| 	// VMSizeTypesStandardE16sV3 ... | ||||
| 	VMSizeTypesStandardE16sV3 VMSizeTypes = "Standard_E16s_v3" | ||||
| 	// VMSizeTypesStandardE16V3 ... | ||||
| 	VMSizeTypesStandardE16V3 VMSizeTypes = "Standard_E16_v3" | ||||
| 	// VMSizeTypesStandardE2sV3 ... | ||||
| 	VMSizeTypesStandardE2sV3 VMSizeTypes = "Standard_E2s_v3" | ||||
| 	// VMSizeTypesStandardE2V3 ... | ||||
| 	VMSizeTypesStandardE2V3 VMSizeTypes = "Standard_E2_v3" | ||||
| 	// VMSizeTypesStandardE3216sV3 ... | ||||
| 	VMSizeTypesStandardE3216sV3 VMSizeTypes = "Standard_E32-16s_v3" | ||||
| 	// VMSizeTypesStandardE328sV3 ... | ||||
| 	VMSizeTypesStandardE328sV3 VMSizeTypes = "Standard_E32-8s_v3" | ||||
| 	// VMSizeTypesStandardE32sV3 ... | ||||
| 	VMSizeTypesStandardE32sV3 VMSizeTypes = "Standard_E32s_v3" | ||||
| 	// VMSizeTypesStandardE32V3 ... | ||||
| 	VMSizeTypesStandardE32V3 VMSizeTypes = "Standard_E32_v3" | ||||
| 	// VMSizeTypesStandardE4sV3 ... | ||||
| 	VMSizeTypesStandardE4sV3 VMSizeTypes = "Standard_E4s_v3" | ||||
| 	// VMSizeTypesStandardE4V3 ... | ||||
| 	VMSizeTypesStandardE4V3 VMSizeTypes = "Standard_E4_v3" | ||||
| 	// VMSizeTypesStandardE6416sV3 ... | ||||
| 	VMSizeTypesStandardE6416sV3 VMSizeTypes = "Standard_E64-16s_v3" | ||||
| 	// VMSizeTypesStandardE6432sV3 ... | ||||
| 	VMSizeTypesStandardE6432sV3 VMSizeTypes = "Standard_E64-32s_v3" | ||||
| 	// VMSizeTypesStandardE64sV3 ... | ||||
| 	VMSizeTypesStandardE64sV3 VMSizeTypes = "Standard_E64s_v3" | ||||
| 	// VMSizeTypesStandardE64V3 ... | ||||
| 	VMSizeTypesStandardE64V3 VMSizeTypes = "Standard_E64_v3" | ||||
| 	// VMSizeTypesStandardE8sV3 ... | ||||
| 	VMSizeTypesStandardE8sV3 VMSizeTypes = "Standard_E8s_v3" | ||||
| 	// VMSizeTypesStandardE8V3 ... | ||||
| 	VMSizeTypesStandardE8V3 VMSizeTypes = "Standard_E8_v3" | ||||
| 	// VMSizeTypesStandardF1 ... | ||||
| 	VMSizeTypesStandardF1 VMSizeTypes = "Standard_F1" | ||||
| 	// VMSizeTypesStandardF16 ... | ||||
| 	VMSizeTypesStandardF16 VMSizeTypes = "Standard_F16" | ||||
| 	// VMSizeTypesStandardF16s ... | ||||
| 	VMSizeTypesStandardF16s VMSizeTypes = "Standard_F16s" | ||||
| 	// VMSizeTypesStandardF16sV2 ... | ||||
| 	VMSizeTypesStandardF16sV2 VMSizeTypes = "Standard_F16s_v2" | ||||
| 	// VMSizeTypesStandardF1s ... | ||||
| 	VMSizeTypesStandardF1s VMSizeTypes = "Standard_F1s" | ||||
| 	// VMSizeTypesStandardF2 ... | ||||
| 	VMSizeTypesStandardF2 VMSizeTypes = "Standard_F2" | ||||
| 	// VMSizeTypesStandardF2s ... | ||||
| 	VMSizeTypesStandardF2s VMSizeTypes = "Standard_F2s" | ||||
| 	// VMSizeTypesStandardF2sV2 ... | ||||
| 	VMSizeTypesStandardF2sV2 VMSizeTypes = "Standard_F2s_v2" | ||||
| 	// VMSizeTypesStandardF32sV2 ... | ||||
| 	VMSizeTypesStandardF32sV2 VMSizeTypes = "Standard_F32s_v2" | ||||
| 	// VMSizeTypesStandardF4 ... | ||||
| 	VMSizeTypesStandardF4 VMSizeTypes = "Standard_F4" | ||||
| 	// VMSizeTypesStandardF4s ... | ||||
| 	VMSizeTypesStandardF4s VMSizeTypes = "Standard_F4s" | ||||
| 	// VMSizeTypesStandardF4sV2 ... | ||||
| 	VMSizeTypesStandardF4sV2 VMSizeTypes = "Standard_F4s_v2" | ||||
| 	// VMSizeTypesStandardF64sV2 ... | ||||
| 	VMSizeTypesStandardF64sV2 VMSizeTypes = "Standard_F64s_v2" | ||||
| 	// VMSizeTypesStandardF72sV2 ... | ||||
| 	VMSizeTypesStandardF72sV2 VMSizeTypes = "Standard_F72s_v2" | ||||
| 	// VMSizeTypesStandardF8 ... | ||||
| 	VMSizeTypesStandardF8 VMSizeTypes = "Standard_F8" | ||||
| 	// VMSizeTypesStandardF8s ... | ||||
| 	VMSizeTypesStandardF8s VMSizeTypes = "Standard_F8s" | ||||
| 	// VMSizeTypesStandardF8sV2 ... | ||||
| 	VMSizeTypesStandardF8sV2 VMSizeTypes = "Standard_F8s_v2" | ||||
| 	// VMSizeTypesStandardG1 ... | ||||
| 	VMSizeTypesStandardG1 VMSizeTypes = "Standard_G1" | ||||
| 	// VMSizeTypesStandardG2 ... | ||||
| 	VMSizeTypesStandardG2 VMSizeTypes = "Standard_G2" | ||||
| 	// VMSizeTypesStandardG3 ... | ||||
| 	VMSizeTypesStandardG3 VMSizeTypes = "Standard_G3" | ||||
| 	// VMSizeTypesStandardG4 ... | ||||
| 	VMSizeTypesStandardG4 VMSizeTypes = "Standard_G4" | ||||
| 	// VMSizeTypesStandardG5 ... | ||||
| 	VMSizeTypesStandardG5 VMSizeTypes = "Standard_G5" | ||||
| 	// VMSizeTypesStandardGS1 ... | ||||
| 	VMSizeTypesStandardGS1 VMSizeTypes = "Standard_GS1" | ||||
| 	// VMSizeTypesStandardGS2 ... | ||||
| 	VMSizeTypesStandardGS2 VMSizeTypes = "Standard_GS2" | ||||
| 	// VMSizeTypesStandardGS3 ... | ||||
| 	VMSizeTypesStandardGS3 VMSizeTypes = "Standard_GS3" | ||||
| 	// VMSizeTypesStandardGS4 ... | ||||
| 	VMSizeTypesStandardGS4 VMSizeTypes = "Standard_GS4" | ||||
| 	// VMSizeTypesStandardGS44 ... | ||||
| 	VMSizeTypesStandardGS44 VMSizeTypes = "Standard_GS4-4" | ||||
| 	// VMSizeTypesStandardGS48 ... | ||||
| 	VMSizeTypesStandardGS48 VMSizeTypes = "Standard_GS4-8" | ||||
| 	// VMSizeTypesStandardGS5 ... | ||||
| 	VMSizeTypesStandardGS5 VMSizeTypes = "Standard_GS5" | ||||
| 	// VMSizeTypesStandardGS516 ... | ||||
| 	VMSizeTypesStandardGS516 VMSizeTypes = "Standard_GS5-16" | ||||
| 	// VMSizeTypesStandardGS58 ... | ||||
| 	VMSizeTypesStandardGS58 VMSizeTypes = "Standard_GS5-8" | ||||
| 	// VMSizeTypesStandardH16 ... | ||||
| 	VMSizeTypesStandardH16 VMSizeTypes = "Standard_H16" | ||||
| 	// VMSizeTypesStandardH16m ... | ||||
| 	VMSizeTypesStandardH16m VMSizeTypes = "Standard_H16m" | ||||
| 	// VMSizeTypesStandardH16mr ... | ||||
| 	VMSizeTypesStandardH16mr VMSizeTypes = "Standard_H16mr" | ||||
| 	// VMSizeTypesStandardH16r ... | ||||
| 	VMSizeTypesStandardH16r VMSizeTypes = "Standard_H16r" | ||||
| 	// VMSizeTypesStandardH8 ... | ||||
| 	VMSizeTypesStandardH8 VMSizeTypes = "Standard_H8" | ||||
| 	// VMSizeTypesStandardH8m ... | ||||
| 	VMSizeTypesStandardH8m VMSizeTypes = "Standard_H8m" | ||||
| 	// VMSizeTypesStandardL16s ... | ||||
| 	VMSizeTypesStandardL16s VMSizeTypes = "Standard_L16s" | ||||
| 	// VMSizeTypesStandardL32s ... | ||||
| 	VMSizeTypesStandardL32s VMSizeTypes = "Standard_L32s" | ||||
| 	// VMSizeTypesStandardL4s ... | ||||
| 	VMSizeTypesStandardL4s VMSizeTypes = "Standard_L4s" | ||||
| 	// VMSizeTypesStandardL8s ... | ||||
| 	VMSizeTypesStandardL8s VMSizeTypes = "Standard_L8s" | ||||
| 	// VMSizeTypesStandardM12832ms ... | ||||
| 	VMSizeTypesStandardM12832ms VMSizeTypes = "Standard_M128-32ms" | ||||
| 	// VMSizeTypesStandardM12864ms ... | ||||
| 	VMSizeTypesStandardM12864ms VMSizeTypes = "Standard_M128-64ms" | ||||
| 	// VMSizeTypesStandardM128ms ... | ||||
| 	VMSizeTypesStandardM128ms VMSizeTypes = "Standard_M128ms" | ||||
| 	// VMSizeTypesStandardM128s ... | ||||
| 	VMSizeTypesStandardM128s VMSizeTypes = "Standard_M128s" | ||||
| 	// VMSizeTypesStandardM6416ms ... | ||||
| 	VMSizeTypesStandardM6416ms VMSizeTypes = "Standard_M64-16ms" | ||||
| 	// VMSizeTypesStandardM6432ms ... | ||||
| 	VMSizeTypesStandardM6432ms VMSizeTypes = "Standard_M64-32ms" | ||||
| 	// VMSizeTypesStandardM64ms ... | ||||
| 	VMSizeTypesStandardM64ms VMSizeTypes = "Standard_M64ms" | ||||
| 	// VMSizeTypesStandardM64s ... | ||||
| 	VMSizeTypesStandardM64s VMSizeTypes = "Standard_M64s" | ||||
| 	// VMSizeTypesStandardNC12 ... | ||||
| 	VMSizeTypesStandardNC12 VMSizeTypes = "Standard_NC12" | ||||
| 	// VMSizeTypesStandardNC12sV2 ... | ||||
| 	VMSizeTypesStandardNC12sV2 VMSizeTypes = "Standard_NC12s_v2" | ||||
| 	// VMSizeTypesStandardNC12sV3 ... | ||||
| 	VMSizeTypesStandardNC12sV3 VMSizeTypes = "Standard_NC12s_v3" | ||||
| 	// VMSizeTypesStandardNC24 ... | ||||
| 	VMSizeTypesStandardNC24 VMSizeTypes = "Standard_NC24" | ||||
| 	// VMSizeTypesStandardNC24r ... | ||||
| 	VMSizeTypesStandardNC24r VMSizeTypes = "Standard_NC24r" | ||||
| 	// VMSizeTypesStandardNC24rsV2 ... | ||||
| 	VMSizeTypesStandardNC24rsV2 VMSizeTypes = "Standard_NC24rs_v2" | ||||
| 	// VMSizeTypesStandardNC24rsV3 ... | ||||
| 	VMSizeTypesStandardNC24rsV3 VMSizeTypes = "Standard_NC24rs_v3" | ||||
| 	// VMSizeTypesStandardNC24sV2 ... | ||||
| 	VMSizeTypesStandardNC24sV2 VMSizeTypes = "Standard_NC24s_v2" | ||||
| 	// VMSizeTypesStandardNC24sV3 ... | ||||
| 	VMSizeTypesStandardNC24sV3 VMSizeTypes = "Standard_NC24s_v3" | ||||
| 	// VMSizeTypesStandardNC6 ... | ||||
| 	VMSizeTypesStandardNC6 VMSizeTypes = "Standard_NC6" | ||||
| 	// VMSizeTypesStandardNC6sV2 ... | ||||
| 	VMSizeTypesStandardNC6sV2 VMSizeTypes = "Standard_NC6s_v2" | ||||
| 	// VMSizeTypesStandardNC6sV3 ... | ||||
| 	VMSizeTypesStandardNC6sV3 VMSizeTypes = "Standard_NC6s_v3" | ||||
| 	// VMSizeTypesStandardND12s ... | ||||
| 	VMSizeTypesStandardND12s VMSizeTypes = "Standard_ND12s" | ||||
| 	// VMSizeTypesStandardND24rs ... | ||||
| 	VMSizeTypesStandardND24rs VMSizeTypes = "Standard_ND24rs" | ||||
| 	// VMSizeTypesStandardND24s ... | ||||
| 	VMSizeTypesStandardND24s VMSizeTypes = "Standard_ND24s" | ||||
| 	// VMSizeTypesStandardND6s ... | ||||
| 	VMSizeTypesStandardND6s VMSizeTypes = "Standard_ND6s" | ||||
| 	// VMSizeTypesStandardNV12 ... | ||||
| 	VMSizeTypesStandardNV12 VMSizeTypes = "Standard_NV12" | ||||
| 	// VMSizeTypesStandardNV24 ... | ||||
| 	VMSizeTypesStandardNV24 VMSizeTypes = "Standard_NV24" | ||||
| 	// VMSizeTypesStandardNV6 ... | ||||
| 	VMSizeTypesStandardNV6 VMSizeTypes = "Standard_NV6" | ||||
| ) | ||||
|  | ||||
| // PossibleVMSizeTypesValues returns an array of possible values for the VMSizeTypes const type. | ||||
| func PossibleVMSizeTypesValues() []VMSizeTypes { | ||||
| 	return []VMSizeTypes{VMSizeTypesStandardA1, VMSizeTypesStandardA10, VMSizeTypesStandardA11, VMSizeTypesStandardA1V2, VMSizeTypesStandardA2, VMSizeTypesStandardA2mV2, VMSizeTypesStandardA2V2, VMSizeTypesStandardA3, VMSizeTypesStandardA4, VMSizeTypesStandardA4mV2, VMSizeTypesStandardA4V2, VMSizeTypesStandardA5, VMSizeTypesStandardA6, VMSizeTypesStandardA7, VMSizeTypesStandardA8, VMSizeTypesStandardA8mV2, VMSizeTypesStandardA8V2, VMSizeTypesStandardA9, VMSizeTypesStandardB2ms, VMSizeTypesStandardB2s, VMSizeTypesStandardB4ms, VMSizeTypesStandardB8ms, VMSizeTypesStandardD1, VMSizeTypesStandardD11, VMSizeTypesStandardD11V2, VMSizeTypesStandardD11V2Promo, VMSizeTypesStandardD12, VMSizeTypesStandardD12V2, VMSizeTypesStandardD12V2Promo, VMSizeTypesStandardD13, VMSizeTypesStandardD13V2, VMSizeTypesStandardD13V2Promo, VMSizeTypesStandardD14, VMSizeTypesStandardD14V2, VMSizeTypesStandardD14V2Promo, VMSizeTypesStandardD15V2, VMSizeTypesStandardD16sV3, VMSizeTypesStandardD16V3, VMSizeTypesStandardD1V2, VMSizeTypesStandardD2, VMSizeTypesStandardD2sV3, VMSizeTypesStandardD2V2, VMSizeTypesStandardD2V2Promo, VMSizeTypesStandardD2V3, VMSizeTypesStandardD3, VMSizeTypesStandardD32sV3, VMSizeTypesStandardD32V3, VMSizeTypesStandardD3V2, VMSizeTypesStandardD3V2Promo, VMSizeTypesStandardD4, VMSizeTypesStandardD4sV3, VMSizeTypesStandardD4V2, VMSizeTypesStandardD4V2Promo, VMSizeTypesStandardD4V3, VMSizeTypesStandardD5V2, VMSizeTypesStandardD5V2Promo, VMSizeTypesStandardD64sV3, VMSizeTypesStandardD64V3, VMSizeTypesStandardD8sV3, VMSizeTypesStandardD8V3, VMSizeTypesStandardDS1, VMSizeTypesStandardDS11, VMSizeTypesStandardDS11V2, VMSizeTypesStandardDS11V2Promo, VMSizeTypesStandardDS12, VMSizeTypesStandardDS12V2, VMSizeTypesStandardDS12V2Promo, VMSizeTypesStandardDS13, VMSizeTypesStandardDS132V2, VMSizeTypesStandardDS134V2, VMSizeTypesStandardDS13V2, VMSizeTypesStandardDS13V2Promo, VMSizeTypesStandardDS14, VMSizeTypesStandardDS144V2, VMSizeTypesStandardDS148V2, VMSizeTypesStandardDS14V2, VMSizeTypesStandardDS14V2Promo, VMSizeTypesStandardDS15V2, VMSizeTypesStandardDS1V2, VMSizeTypesStandardDS2, VMSizeTypesStandardDS2V2, VMSizeTypesStandardDS2V2Promo, VMSizeTypesStandardDS3, VMSizeTypesStandardDS3V2, VMSizeTypesStandardDS3V2Promo, VMSizeTypesStandardDS4, VMSizeTypesStandardDS4V2, VMSizeTypesStandardDS4V2Promo, VMSizeTypesStandardDS5V2, VMSizeTypesStandardDS5V2Promo, VMSizeTypesStandardE16sV3, VMSizeTypesStandardE16V3, VMSizeTypesStandardE2sV3, VMSizeTypesStandardE2V3, VMSizeTypesStandardE3216sV3, VMSizeTypesStandardE328sV3, VMSizeTypesStandardE32sV3, VMSizeTypesStandardE32V3, VMSizeTypesStandardE4sV3, VMSizeTypesStandardE4V3, VMSizeTypesStandardE6416sV3, VMSizeTypesStandardE6432sV3, VMSizeTypesStandardE64sV3, VMSizeTypesStandardE64V3, VMSizeTypesStandardE8sV3, VMSizeTypesStandardE8V3, VMSizeTypesStandardF1, VMSizeTypesStandardF16, VMSizeTypesStandardF16s, VMSizeTypesStandardF16sV2, VMSizeTypesStandardF1s, VMSizeTypesStandardF2, VMSizeTypesStandardF2s, VMSizeTypesStandardF2sV2, VMSizeTypesStandardF32sV2, VMSizeTypesStandardF4, VMSizeTypesStandardF4s, VMSizeTypesStandardF4sV2, VMSizeTypesStandardF64sV2, VMSizeTypesStandardF72sV2, VMSizeTypesStandardF8, VMSizeTypesStandardF8s, VMSizeTypesStandardF8sV2, VMSizeTypesStandardG1, VMSizeTypesStandardG2, VMSizeTypesStandardG3, VMSizeTypesStandardG4, VMSizeTypesStandardG5, VMSizeTypesStandardGS1, VMSizeTypesStandardGS2, VMSizeTypesStandardGS3, VMSizeTypesStandardGS4, VMSizeTypesStandardGS44, VMSizeTypesStandardGS48, VMSizeTypesStandardGS5, VMSizeTypesStandardGS516, VMSizeTypesStandardGS58, VMSizeTypesStandardH16, VMSizeTypesStandardH16m, VMSizeTypesStandardH16mr, VMSizeTypesStandardH16r, VMSizeTypesStandardH8, VMSizeTypesStandardH8m, VMSizeTypesStandardL16s, VMSizeTypesStandardL32s, VMSizeTypesStandardL4s, VMSizeTypesStandardL8s, VMSizeTypesStandardM12832ms, VMSizeTypesStandardM12864ms, VMSizeTypesStandardM128ms, VMSizeTypesStandardM128s, VMSizeTypesStandardM6416ms, VMSizeTypesStandardM6432ms, VMSizeTypesStandardM64ms, VMSizeTypesStandardM64s, VMSizeTypesStandardNC12, VMSizeTypesStandardNC12sV2, VMSizeTypesStandardNC12sV3, VMSizeTypesStandardNC24, VMSizeTypesStandardNC24r, VMSizeTypesStandardNC24rsV2, VMSizeTypesStandardNC24rsV3, VMSizeTypesStandardNC24sV2, VMSizeTypesStandardNC24sV3, VMSizeTypesStandardNC6, VMSizeTypesStandardNC6sV2, VMSizeTypesStandardNC6sV3, VMSizeTypesStandardND12s, VMSizeTypesStandardND24rs, VMSizeTypesStandardND24s, VMSizeTypesStandardND6s, VMSizeTypesStandardNV12, VMSizeTypesStandardNV24, VMSizeTypesStandardNV6} | ||||
| } | ||||
| @@ -1,18 +1,7 @@ | ||||
| package containerservice | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -53,8 +42,8 @@ func (client ManagedClustersClient) CreateOrUpdate(ctx context.Context, resource | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -75,9 +64,7 @@ func (client ManagedClustersClient) CreateOrUpdate(ctx context.Context, resource | ||||
| 							Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile.SSH.PublicKeys", Name: validation.Null, Rule: true, Chain: nil}}}, | ||||
| 					}}, | ||||
| 					{Target: "parameters.ManagedClusterProperties.WindowsProfile", Name: validation.Null, Rule: false, | ||||
| 						Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.WindowsProfile.AdminUsername", Name: validation.Null, Rule: true, | ||||
| 							Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.WindowsProfile.AdminUsername", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$`, Chain: nil}}}, | ||||
| 						}}, | ||||
| 						Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.WindowsProfile.AdminUsername", Name: validation.Null, Rule: true, Chain: nil}}}, | ||||
| 					{Target: "parameters.ManagedClusterProperties.ServicePrincipalProfile", Name: validation.Null, Rule: false, | ||||
| 						Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.ServicePrincipalProfile.ClientID", Name: validation.Null, Rule: true, Chain: nil}}}, | ||||
| 					{Target: "parameters.ManagedClusterProperties.NetworkProfile", Name: validation.Null, Rule: false, | ||||
| @@ -118,7 +105,7 @@ func (client ManagedClustersClient) CreateOrUpdate(ctx context.Context, resource | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -156,7 +143,10 @@ func (client ManagedClustersClient) CreateOrUpdateSender(req *http.Request) (fut | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -165,7 +155,6 @@ func (client ManagedClustersClient) CreateOrUpdateSender(req *http.Request) (fut | ||||
| func (client ManagedClustersClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedCluster, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -182,8 +171,8 @@ func (client ManagedClustersClient) Delete(ctx context.Context, resourceGroupNam | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -206,7 +195,7 @@ func (client ManagedClustersClient) Delete(ctx context.Context, resourceGroupNam | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -242,7 +231,10 @@ func (client ManagedClustersClient) DeleteSender(req *http.Request) (future Mana | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -251,7 +243,6 @@ func (client ManagedClustersClient) DeleteSender(req *http.Request) (future Mana | ||||
| func (client ManagedClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -299,6 +290,7 @@ func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName s | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -336,7 +328,6 @@ func (client ManagedClustersClient) GetSender(req *http.Request) (*http.Response | ||||
| func (client ManagedClustersClient) GetResponder(resp *http.Response) (result ManagedCluster, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -391,6 +382,7 @@ func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resour | ||||
| 	result, err = client.GetAccessProfileResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -429,7 +421,6 @@ func (client ManagedClustersClient) GetAccessProfileSender(req *http.Request) (* | ||||
| func (client ManagedClustersClient) GetAccessProfileResponder(resp *http.Response) (result ManagedClusterAccessProfile, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -479,6 +470,7 @@ func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resou | ||||
| 	result, err = client.GetUpgradeProfileResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -516,7 +508,6 @@ func (client ManagedClustersClient) GetUpgradeProfileSender(req *http.Request) ( | ||||
| func (client ManagedClustersClient) GetUpgradeProfileResponder(resp *http.Response) (result ManagedClusterUpgradeProfile, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -554,6 +545,11 @@ func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClu | ||||
| 	result.mclr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.mclr.hasNextLink() && result.mclr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -589,7 +585,6 @@ func (client ManagedClustersClient) ListSender(req *http.Request) (*http.Respons | ||||
| func (client ManagedClustersClient) ListResponder(resp *http.Response) (result ManagedClusterListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -672,6 +667,11 @@ func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, res | ||||
| 	result.mclr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.mclr.hasNextLink() && result.mclr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -708,7 +708,6 @@ func (client ManagedClustersClient) ListByResourceGroupSender(req *http.Request) | ||||
| func (client ManagedClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ManagedClusterListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -795,6 +794,7 @@ func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Cont | ||||
| 	result, err = client.ListClusterAdminCredentialsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -832,7 +832,6 @@ func (client ManagedClustersClient) ListClusterAdminCredentialsSender(req *http. | ||||
| func (client ManagedClustersClient) ListClusterAdminCredentialsResponder(resp *http.Response) (result CredentialResults, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -882,6 +881,7 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx con | ||||
| 	result, err = client.ListClusterMonitoringUserCredentialsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterMonitoringUserCredentials", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -919,7 +919,6 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentialsSender(r | ||||
| func (client ManagedClustersClient) ListClusterMonitoringUserCredentialsResponder(resp *http.Response) (result CredentialResults, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -969,6 +968,7 @@ func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Conte | ||||
| 	result, err = client.ListClusterUserCredentialsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -1006,7 +1006,6 @@ func (client ManagedClustersClient) ListClusterUserCredentialsSender(req *http.R | ||||
| func (client ManagedClustersClient) ListClusterUserCredentialsResponder(resp *http.Response) (result CredentialResults, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1024,8 +1023,8 @@ func (client ManagedClustersClient) ResetAADProfile(ctx context.Context, resourc | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ResetAADProfile") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1048,7 +1047,7 @@ func (client ManagedClustersClient) ResetAADProfile(ctx context.Context, resourc | ||||
|  | ||||
| 	result, err = client.ResetAADProfileSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetAADProfile", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetAADProfile", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1086,7 +1085,10 @@ func (client ManagedClustersClient) ResetAADProfileSender(req *http.Request) (fu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1095,7 +1097,6 @@ func (client ManagedClustersClient) ResetAADProfileSender(req *http.Request) (fu | ||||
| func (client ManagedClustersClient) ResetAADProfileResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1112,8 +1113,8 @@ func (client ManagedClustersClient) ResetServicePrincipalProfile(ctx context.Con | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ResetServicePrincipalProfile") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1138,7 +1139,7 @@ func (client ManagedClustersClient) ResetServicePrincipalProfile(ctx context.Con | ||||
|  | ||||
| 	result, err = client.ResetServicePrincipalProfileSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetServicePrincipalProfile", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetServicePrincipalProfile", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1176,7 +1177,10 @@ func (client ManagedClustersClient) ResetServicePrincipalProfileSender(req *http | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1185,7 +1189,6 @@ func (client ManagedClustersClient) ResetServicePrincipalProfileSender(req *http | ||||
| func (client ManagedClustersClient) ResetServicePrincipalProfileResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1201,8 +1204,8 @@ func (client ManagedClustersClient) RotateClusterCertificates(ctx context.Contex | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.RotateClusterCertificates") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1225,7 +1228,7 @@ func (client ManagedClustersClient) RotateClusterCertificates(ctx context.Contex | ||||
|  | ||||
| 	result, err = client.RotateClusterCertificatesSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "RotateClusterCertificates", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "RotateClusterCertificates", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1261,7 +1264,10 @@ func (client ManagedClustersClient) RotateClusterCertificatesSender(req *http.Re | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1270,7 +1276,6 @@ func (client ManagedClustersClient) RotateClusterCertificatesSender(req *http.Re | ||||
| func (client ManagedClustersClient) RotateClusterCertificatesResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1287,8 +1292,8 @@ func (client ManagedClustersClient) UpdateTags(ctx context.Context, resourceGrou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.UpdateTags") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1311,7 +1316,7 @@ func (client ManagedClustersClient) UpdateTags(ctx context.Context, resourceGrou | ||||
|  | ||||
| 	result, err = client.UpdateTagsSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "UpdateTags", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "UpdateTags", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1349,7 +1354,10 @@ func (client ManagedClustersClient) UpdateTagsSender(req *http.Request) (future | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1358,7 +1366,6 @@ func (client ManagedClustersClient) UpdateTagsSender(req *http.Request) (future | ||||
| func (client ManagedClustersClient) UpdateTagsResponder(resp *http.Response) (result ManagedCluster, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,18 +1,7 @@ | ||||
| package containerservice | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -54,8 +43,8 @@ func (client OpenShiftManagedClustersClient) CreateOrUpdate(ctx context.Context, | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -80,7 +69,7 @@ func (client OpenShiftManagedClustersClient) CreateOrUpdate(ctx context.Context, | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -118,7 +107,10 @@ func (client OpenShiftManagedClustersClient) CreateOrUpdateSender(req *http.Requ | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -127,7 +119,6 @@ func (client OpenShiftManagedClustersClient) CreateOrUpdateSender(req *http.Requ | ||||
| func (client OpenShiftManagedClustersClient) CreateOrUpdateResponder(resp *http.Response) (result OpenShiftManagedCluster, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -144,8 +135,8 @@ func (client OpenShiftManagedClustersClient) Delete(ctx context.Context, resourc | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -164,7 +155,7 @@ func (client OpenShiftManagedClustersClient) Delete(ctx context.Context, resourc | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -200,7 +191,10 @@ func (client OpenShiftManagedClustersClient) DeleteSender(req *http.Request) (fu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -209,7 +203,6 @@ func (client OpenShiftManagedClustersClient) DeleteSender(req *http.Request) (fu | ||||
| func (client OpenShiftManagedClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -253,6 +246,7 @@ func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGr | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -290,7 +284,6 @@ func (client OpenShiftManagedClustersClient) GetSender(req *http.Request) (*http | ||||
| func (client OpenShiftManagedClustersClient) GetResponder(resp *http.Response) (result OpenShiftManagedCluster, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -328,6 +321,11 @@ func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result O | ||||
| 	result.osmclr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -363,7 +361,6 @@ func (client OpenShiftManagedClustersClient) ListSender(req *http.Request) (*htt | ||||
| func (client OpenShiftManagedClustersClient) ListResponder(resp *http.Response) (result OpenShiftManagedClusterListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -446,6 +443,11 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Con | ||||
| 	result.osmclr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.osmclr.hasNextLink() && result.osmclr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -482,7 +484,6 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroupSender(req *http | ||||
| func (client OpenShiftManagedClustersClient) ListByResourceGroupResponder(resp *http.Response) (result OpenShiftManagedClusterListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -537,8 +538,8 @@ func (client OpenShiftManagedClustersClient) UpdateTags(ctx context.Context, res | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.UpdateTags") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -557,7 +558,7 @@ func (client OpenShiftManagedClustersClient) UpdateTags(ctx context.Context, res | ||||
|  | ||||
| 	result, err = client.UpdateTagsSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "UpdateTags", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "UpdateTags", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -595,7 +596,10 @@ func (client OpenShiftManagedClustersClient) UpdateTagsSender(req *http.Request) | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -604,7 +608,6 @@ func (client OpenShiftManagedClustersClient) UpdateTagsSender(req *http.Request) | ||||
| func (client OpenShiftManagedClustersClient) UpdateTagsResponder(resp *http.Response) (result OpenShiftManagedCluster, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package containerservice | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -69,6 +58,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe | ||||
| 	result, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -100,7 +90,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er | ||||
| func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -2,19 +2,8 @@ package containerservice | ||||
|  | ||||
| import "github.com/Azure/azure-sdk-for-go/version" | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
|   | ||||
							
								
								
									
										186
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-06-01/network/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										186
									
								
								vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-06-01/network/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,186 @@ | ||||
| Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82//specification/network/resource-manager/readme.md tag: `package-2019-06` | ||||
|  | ||||
| Code generator @microsoft.azure/autorest.go@2.1.178 | ||||
|  | ||||
|  | ||||
| ### New Funcs | ||||
|  | ||||
| 1. *ApplicationGatewaysBackendHealthFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ApplicationGatewaysBackendHealthOnDemandFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ApplicationGatewaysCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ApplicationGatewaysDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ApplicationGatewaysStartFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ApplicationGatewaysStopFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ApplicationGatewaysUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ApplicationSecurityGroupsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ApplicationSecurityGroupsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ApplicationSecurityGroupsUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *AzureFirewallsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *AzureFirewallsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *BastionHostsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *BastionHostsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *BastionHostsUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ConnectionMonitorsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ConnectionMonitorsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ConnectionMonitorsQueryFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ConnectionMonitorsStartFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ConnectionMonitorsStopFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DdosCustomPoliciesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DdosCustomPoliciesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DdosCustomPoliciesUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DdosProtectionPlansCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DdosProtectionPlansDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *DdosProtectionPlansUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitAuthorizationsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitConnectionsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitConnectionsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitPeeringsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitPeeringsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitsListArpTableFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitsListRoutesTableFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitsListRoutesTableSummaryFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCircuitsUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteConnectionsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteConnectionsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCrossConnectionPeeringsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCrossConnectionsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCrossConnectionsListArpTableFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCrossConnectionsListRoutesTableFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCrossConnectionsListRoutesTableSummaryFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteCrossConnectionsUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteGatewaysCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRouteGatewaysDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRoutePortsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRoutePortsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ExpressRoutePortsUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *FirewallPoliciesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *FirewallPoliciesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *FirewallPolicyRuleGroupsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *FirewallPolicyRuleGroupsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *InboundNatRulesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *InboundNatRulesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *InterfaceTapConfigurationsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *InterfaceTapConfigurationsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *InterfacesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *InterfacesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *InterfacesGetEffectiveRouteTableFuture.UnmarshalJSON([]byte) error | ||||
| 1. *InterfacesListEffectiveNetworkSecurityGroupsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *InterfacesUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *LoadBalancersCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *LoadBalancersDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *LoadBalancersUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *LocalNetworkGatewaysCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *LocalNetworkGatewaysDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *LocalNetworkGatewaysUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *NatGatewaysCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *NatGatewaysDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *P2sVpnGatewaysCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *P2sVpnGatewaysDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *P2sVpnGatewaysGenerateVpnProfileFuture.UnmarshalJSON([]byte) error | ||||
| 1. *P2sVpnGatewaysGetP2sVpnConnectionHealthFuture.UnmarshalJSON([]byte) error | ||||
| 1. *P2sVpnGatewaysUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *P2sVpnServerConfigurationsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *P2sVpnServerConfigurationsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PacketCapturesCreateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PacketCapturesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PacketCapturesGetStatusFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PacketCapturesStopFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PrivateEndpointsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PrivateEndpointsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PrivateLinkServicesCheckPrivateLinkServiceVisibilityFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PrivateLinkServicesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PrivateLinkServicesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PrivateLinkServicesDeletePrivateEndpointConnectionFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ProfilesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PublicIPAddressesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PublicIPAddressesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PublicIPAddressesUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PublicIPPrefixesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PublicIPPrefixesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *PublicIPPrefixesUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RouteFilterRulesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RouteFilterRulesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RouteFilterRulesUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RouteFiltersCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RouteFiltersDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RouteFiltersUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RouteTablesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RouteTablesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RouteTablesUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RoutesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *RoutesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SecurityGroupsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SecurityGroupsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SecurityGroupsUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SecurityRulesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SecurityRulesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ServiceEndpointPoliciesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ServiceEndpointPoliciesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ServiceEndpointPoliciesUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *ServiceEndpointPolicyDefinitionsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SubnetsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SubnetsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SubnetsPrepareNetworkPoliciesFuture.UnmarshalJSON([]byte) error | ||||
| 1. *SubnetsUnprepareNetworkPoliciesFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualHubsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualHubsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualHubsUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewayConnectionsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewayConnectionsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewayConnectionsResetSharedKeyFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewayConnectionsSetSharedKeyFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewayConnectionsUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysGenerateVpnProfileFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysGeneratevpnclientpackageFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysGetAdvertisedRoutesFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysGetBgpPeerStatusFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysGetLearnedRoutesFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysGetVpnProfilePackageURLFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysGetVpnclientConnectionHealthFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysResetFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysResetVpnClientSharedKeyFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkGatewaysUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkPeeringsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkPeeringsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkTapsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkTapsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworkTapsUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworksCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworksDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualNetworksUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualWansCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualWansDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VirtualWansUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VpnConnectionsCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VpnConnectionsDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VpnGatewaysCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VpnGatewaysDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VpnGatewaysResetFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VpnGatewaysUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VpnSitesConfigurationDownloadFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VpnSitesCreateOrUpdateFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VpnSitesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *VpnSitesUpdateTagsFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersCheckConnectivityFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersDeleteFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersGetAzureReachabilityReportFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersGetFlowLogStatusFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersGetNetworkConfigurationDiagnosticFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersGetNextHopFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersGetTroubleshootingFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersGetTroubleshootingResultFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersGetVMSecurityRulesFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersListAvailableProvidersFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersSetFlowLogConfigurationFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WatchersVerifyIPFlowFuture.UnmarshalJSON([]byte) error | ||||
| 1. *WebApplicationFirewallPoliciesDeleteFuture.UnmarshalJSON([]byte) error | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -53,8 +42,8 @@ func (client ApplicationGatewaysClient) BackendHealth(ctx context.Context, resou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.BackendHealth") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -67,7 +56,7 @@ func (client ApplicationGatewaysClient) BackendHealth(ctx context.Context, resou | ||||
|  | ||||
| 	result, err = client.BackendHealthSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealth", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealth", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -106,7 +95,10 @@ func (client ApplicationGatewaysClient) BackendHealthSender(req *http.Request) ( | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -115,7 +107,6 @@ func (client ApplicationGatewaysClient) BackendHealthSender(req *http.Request) ( | ||||
| func (client ApplicationGatewaysClient) BackendHealthResponder(resp *http.Response) (result ApplicationGatewayBackendHealth, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -135,8 +126,8 @@ func (client ApplicationGatewaysClient) BackendHealthOnDemand(ctx context.Contex | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.BackendHealthOnDemand") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -149,7 +140,7 @@ func (client ApplicationGatewaysClient) BackendHealthOnDemand(ctx context.Contex | ||||
|  | ||||
| 	result, err = client.BackendHealthOnDemandSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealthOnDemand", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "BackendHealthOnDemand", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -190,7 +181,10 @@ func (client ApplicationGatewaysClient) BackendHealthOnDemandSender(req *http.Re | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -199,7 +193,6 @@ func (client ApplicationGatewaysClient) BackendHealthOnDemandSender(req *http.Re | ||||
| func (client ApplicationGatewaysClient) BackendHealthOnDemandResponder(resp *http.Response) (result ApplicationGatewayBackendHealthOnDemand, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -217,8 +210,8 @@ func (client ApplicationGatewaysClient) CreateOrUpdate(ctx context.Context, reso | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -259,7 +252,7 @@ func (client ApplicationGatewaysClient) CreateOrUpdate(ctx context.Context, reso | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -297,7 +290,10 @@ func (client ApplicationGatewaysClient) CreateOrUpdateSender(req *http.Request) | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -306,7 +302,6 @@ func (client ApplicationGatewaysClient) CreateOrUpdateSender(req *http.Request) | ||||
| func (client ApplicationGatewaysClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationGateway, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -323,8 +318,8 @@ func (client ApplicationGatewaysClient) Delete(ctx context.Context, resourceGrou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -337,7 +332,7 @@ func (client ApplicationGatewaysClient) Delete(ctx context.Context, resourceGrou | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -373,7 +368,10 @@ func (client ApplicationGatewaysClient) DeleteSender(req *http.Request) (future | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -382,7 +380,6 @@ func (client ApplicationGatewaysClient) DeleteSender(req *http.Request) (future | ||||
| func (client ApplicationGatewaysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -420,6 +417,7 @@ func (client ApplicationGatewaysClient) Get(ctx context.Context, resourceGroupNa | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -457,7 +455,6 @@ func (client ApplicationGatewaysClient) GetSender(req *http.Request) (*http.Resp | ||||
| func (client ApplicationGatewaysClient) GetResponder(resp *http.Response) (result ApplicationGateway, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -495,6 +492,7 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Conte | ||||
| 	result, err = client.GetSslPredefinedPolicyResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "GetSslPredefinedPolicy", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -531,7 +529,6 @@ func (client ApplicationGatewaysClient) GetSslPredefinedPolicySender(req *http.R | ||||
| func (client ApplicationGatewaysClient) GetSslPredefinedPolicyResponder(resp *http.Response) (result ApplicationGatewaySslPredefinedPolicy, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -570,6 +567,11 @@ func (client ApplicationGatewaysClient) List(ctx context.Context, resourceGroupN | ||||
| 	result.aglr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.aglr.hasNextLink() && result.aglr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -606,7 +608,6 @@ func (client ApplicationGatewaysClient) ListSender(req *http.Request) (*http.Res | ||||
| func (client ApplicationGatewaysClient) ListResponder(resp *http.Response) (result ApplicationGatewayListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -680,6 +681,11 @@ func (client ApplicationGatewaysClient) ListAll(ctx context.Context) (result App | ||||
| 	result.aglr, err = client.ListAllResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAll", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.aglr.hasNextLink() && result.aglr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -715,7 +721,6 @@ func (client ApplicationGatewaysClient) ListAllSender(req *http.Request) (*http. | ||||
| func (client ApplicationGatewaysClient) ListAllResponder(resp *http.Response) (result ApplicationGatewayListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -788,6 +793,7 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context. | ||||
| 	result, err = client.ListAvailableRequestHeadersResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableRequestHeaders", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -823,7 +829,6 @@ func (client ApplicationGatewaysClient) ListAvailableRequestHeadersSender(req *h | ||||
| func (client ApplicationGatewaysClient) ListAvailableRequestHeadersResponder(resp *http.Response) (result ListString, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result.Value), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -859,6 +864,7 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context | ||||
| 	result, err = client.ListAvailableResponseHeadersResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableResponseHeaders", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -894,7 +900,6 @@ func (client ApplicationGatewaysClient) ListAvailableResponseHeadersSender(req * | ||||
| func (client ApplicationGatewaysClient) ListAvailableResponseHeadersResponder(resp *http.Response) (result ListString, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result.Value), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -930,6 +935,7 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariables(ctx context | ||||
| 	result, err = client.ListAvailableServerVariablesResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableServerVariables", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -965,7 +971,6 @@ func (client ApplicationGatewaysClient) ListAvailableServerVariablesSender(req * | ||||
| func (client ApplicationGatewaysClient) ListAvailableServerVariablesResponder(resp *http.Response) (result ListString, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result.Value), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1001,6 +1006,7 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Cont | ||||
| 	result, err = client.ListAvailableSslOptionsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslOptions", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -1036,7 +1042,6 @@ func (client ApplicationGatewaysClient) ListAvailableSslOptionsSender(req *http. | ||||
| func (client ApplicationGatewaysClient) ListAvailableSslOptionsResponder(resp *http.Response) (result ApplicationGatewayAvailableSslOptions, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1073,6 +1078,11 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx c | ||||
| 	result.agaspp, err = client.ListAvailableSslPredefinedPoliciesResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableSslPredefinedPolicies", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.agaspp.hasNextLink() && result.agaspp.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -1108,7 +1118,6 @@ func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesSender | ||||
| func (client ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesResponder(resp *http.Response) (result ApplicationGatewayAvailableSslPredefinedPolicies, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1181,6 +1190,7 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Con | ||||
| 	result, err = client.ListAvailableWafRuleSetsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "ListAvailableWafRuleSets", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -1216,7 +1226,6 @@ func (client ApplicationGatewaysClient) ListAvailableWafRuleSetsSender(req *http | ||||
| func (client ApplicationGatewaysClient) ListAvailableWafRuleSetsResponder(resp *http.Response) (result ApplicationGatewayAvailableWafRuleSetsResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -1233,8 +1242,8 @@ func (client ApplicationGatewaysClient) Start(ctx context.Context, resourceGroup | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.Start") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1247,7 +1256,7 @@ func (client ApplicationGatewaysClient) Start(ctx context.Context, resourceGroup | ||||
|  | ||||
| 	result, err = client.StartSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Start", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Start", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1283,7 +1292,10 @@ func (client ApplicationGatewaysClient) StartSender(req *http.Request) (future A | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1292,7 +1304,6 @@ func (client ApplicationGatewaysClient) StartSender(req *http.Request) (future A | ||||
| func (client ApplicationGatewaysClient) StartResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1308,8 +1319,8 @@ func (client ApplicationGatewaysClient) Stop(ctx context.Context, resourceGroupN | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.Stop") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1322,7 +1333,7 @@ func (client ApplicationGatewaysClient) Stop(ctx context.Context, resourceGroupN | ||||
|  | ||||
| 	result, err = client.StopSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Stop", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "Stop", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1358,7 +1369,10 @@ func (client ApplicationGatewaysClient) StopSender(req *http.Request) (future Ap | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1367,7 +1381,6 @@ func (client ApplicationGatewaysClient) StopSender(req *http.Request) (future Ap | ||||
| func (client ApplicationGatewaysClient) StopResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -1384,8 +1397,8 @@ func (client ApplicationGatewaysClient) UpdateTags(ctx context.Context, resource | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationGatewaysClient.UpdateTags") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -1398,7 +1411,7 @@ func (client ApplicationGatewaysClient) UpdateTags(ctx context.Context, resource | ||||
|  | ||||
| 	result, err = client.UpdateTagsSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysClient", "UpdateTags", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -1436,7 +1449,10 @@ func (client ApplicationGatewaysClient) UpdateTagsSender(req *http.Request) (fut | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -1445,7 +1461,6 @@ func (client ApplicationGatewaysClient) UpdateTagsSender(req *http.Request) (fut | ||||
| func (client ApplicationGatewaysClient) UpdateTagsResponder(resp *http.Response) (result ApplicationGateway, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -52,8 +41,8 @@ func (client ApplicationSecurityGroupsClient) CreateOrUpdate(ctx context.Context | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -66,7 +55,7 @@ func (client ApplicationSecurityGroupsClient) CreateOrUpdate(ctx context.Context | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -105,7 +94,10 @@ func (client ApplicationSecurityGroupsClient) CreateOrUpdateSender(req *http.Req | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -114,7 +106,6 @@ func (client ApplicationSecurityGroupsClient) CreateOrUpdateSender(req *http.Req | ||||
| func (client ApplicationSecurityGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationSecurityGroup, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -131,8 +122,8 @@ func (client ApplicationSecurityGroupsClient) Delete(ctx context.Context, resour | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -145,7 +136,7 @@ func (client ApplicationSecurityGroupsClient) Delete(ctx context.Context, resour | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -181,7 +172,10 @@ func (client ApplicationSecurityGroupsClient) DeleteSender(req *http.Request) (f | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -190,7 +184,6 @@ func (client ApplicationSecurityGroupsClient) DeleteSender(req *http.Request) (f | ||||
| func (client ApplicationSecurityGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -228,6 +221,7 @@ func (client ApplicationSecurityGroupsClient) Get(ctx context.Context, resourceG | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -265,7 +259,6 @@ func (client ApplicationSecurityGroupsClient) GetSender(req *http.Request) (*htt | ||||
| func (client ApplicationSecurityGroupsClient) GetResponder(resp *http.Response) (result ApplicationSecurityGroup, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -304,6 +297,11 @@ func (client ApplicationSecurityGroupsClient) List(ctx context.Context, resource | ||||
| 	result.asglr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.asglr.hasNextLink() && result.asglr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -340,7 +338,6 @@ func (client ApplicationSecurityGroupsClient) ListSender(req *http.Request) (*ht | ||||
| func (client ApplicationSecurityGroupsClient) ListResponder(resp *http.Response) (result ApplicationSecurityGroupListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -414,6 +411,11 @@ func (client ApplicationSecurityGroupsClient) ListAll(ctx context.Context) (resu | ||||
| 	result.asglr, err = client.ListAllResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "ListAll", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.asglr.hasNextLink() && result.asglr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -449,7 +451,6 @@ func (client ApplicationSecurityGroupsClient) ListAllSender(req *http.Request) ( | ||||
| func (client ApplicationSecurityGroupsClient) ListAllResponder(resp *http.Response) (result ApplicationSecurityGroupListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -504,8 +505,8 @@ func (client ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, re | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationSecurityGroupsClient.UpdateTags") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -518,7 +519,7 @@ func (client ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, re | ||||
|  | ||||
| 	result, err = client.UpdateTagsSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsClient", "UpdateTags", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -556,7 +557,10 @@ func (client ApplicationSecurityGroupsClient) UpdateTagsSender(req *http.Request | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -565,7 +569,6 @@ func (client ApplicationSecurityGroupsClient) UpdateTagsSender(req *http.Request | ||||
| func (client ApplicationSecurityGroupsClient) UpdateTagsResponder(resp *http.Response) (result ApplicationSecurityGroup, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -73,6 +62,11 @@ func (client AvailableDelegationsClient) List(ctx context.Context, location stri | ||||
| 	result.adr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AvailableDelegationsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.adr.hasNextLink() && result.adr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -109,7 +103,6 @@ func (client AvailableDelegationsClient) ListSender(req *http.Request) (*http.Re | ||||
| func (client AvailableDelegationsClient) ListResponder(resp *http.Response) (result AvailableDelegationsResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -73,6 +62,11 @@ func (client AvailableEndpointServicesClient) List(ctx context.Context, location | ||||
| 	result.eslr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AvailableEndpointServicesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.eslr.hasNextLink() && result.eslr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -109,7 +103,6 @@ func (client AvailableEndpointServicesClient) ListSender(req *http.Request) (*ht | ||||
| func (client AvailableEndpointServicesClient) ListResponder(resp *http.Response) (result EndpointServicesListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -73,6 +62,11 @@ func (client AvailablePrivateEndpointTypesClient) List(ctx context.Context, loca | ||||
| 	result.apetr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.apetr.hasNextLink() && result.apetr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -109,7 +103,6 @@ func (client AvailablePrivateEndpointTypesClient) ListSender(req *http.Request) | ||||
| func (client AvailablePrivateEndpointTypesClient) ListResponder(resp *http.Response) (result AvailablePrivateEndpointTypesResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -187,6 +180,11 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroup(ctx contex | ||||
| 	result.apetr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AvailablePrivateEndpointTypesClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.apetr.hasNextLink() && result.apetr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -224,7 +222,6 @@ func (client AvailablePrivateEndpointTypesClient) ListByResourceGroupSender(req | ||||
| func (client AvailablePrivateEndpointTypesClient) ListByResourceGroupResponder(resp *http.Response) (result AvailablePrivateEndpointTypesResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -75,6 +64,11 @@ func (client AvailableResourceGroupDelegationsClient) List(ctx context.Context, | ||||
| 	result.adr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AvailableResourceGroupDelegationsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.adr.hasNextLink() && result.adr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -112,7 +106,6 @@ func (client AvailableResourceGroupDelegationsClient) ListSender(req *http.Reque | ||||
| func (client AvailableResourceGroupDelegationsClient) ListResponder(resp *http.Response) (result AvailableDelegationsResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -71,6 +60,11 @@ func (client AzureFirewallFqdnTagsClient) ListAll(ctx context.Context) (result A | ||||
| 	result.afftlr, err = client.ListAllResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AzureFirewallFqdnTagsClient", "ListAll", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.afftlr.hasNextLink() && result.afftlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -106,7 +100,6 @@ func (client AzureFirewallFqdnTagsClient) ListAllSender(req *http.Request) (*htt | ||||
| func (client AzureFirewallFqdnTagsClient) ListAllResponder(resp *http.Response) (result AzureFirewallFqdnTagListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -51,8 +40,8 @@ func (client AzureFirewallsClient) CreateOrUpdate(ctx context.Context, resourceG | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -65,7 +54,7 @@ func (client AzureFirewallsClient) CreateOrUpdate(ctx context.Context, resourceG | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -104,7 +93,10 @@ func (client AzureFirewallsClient) CreateOrUpdateSender(req *http.Request) (futu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -113,7 +105,6 @@ func (client AzureFirewallsClient) CreateOrUpdateSender(req *http.Request) (futu | ||||
| func (client AzureFirewallsClient) CreateOrUpdateResponder(resp *http.Response) (result AzureFirewall, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -130,8 +121,8 @@ func (client AzureFirewallsClient) Delete(ctx context.Context, resourceGroupName | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/AzureFirewallsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -144,7 +135,7 @@ func (client AzureFirewallsClient) Delete(ctx context.Context, resourceGroupName | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -180,7 +171,10 @@ func (client AzureFirewallsClient) DeleteSender(req *http.Request) (future Azure | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -189,7 +183,6 @@ func (client AzureFirewallsClient) DeleteSender(req *http.Request) (future Azure | ||||
| func (client AzureFirewallsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -227,6 +220,7 @@ func (client AzureFirewallsClient) Get(ctx context.Context, resourceGroupName st | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -264,7 +258,6 @@ func (client AzureFirewallsClient) GetSender(req *http.Request) (*http.Response, | ||||
| func (client AzureFirewallsClient) GetResponder(resp *http.Response) (result AzureFirewall, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -303,6 +296,11 @@ func (client AzureFirewallsClient) List(ctx context.Context, resourceGroupName s | ||||
| 	result.aflr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.aflr.hasNextLink() && result.aflr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -339,7 +337,6 @@ func (client AzureFirewallsClient) ListSender(req *http.Request) (*http.Response | ||||
| func (client AzureFirewallsClient) ListResponder(resp *http.Response) (result AzureFirewallListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -413,6 +410,11 @@ func (client AzureFirewallsClient) ListAll(ctx context.Context) (result AzureFir | ||||
| 	result.aflr, err = client.ListAllResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "ListAll", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.aflr.hasNextLink() && result.aflr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -448,7 +450,6 @@ func (client AzureFirewallsClient) ListAllSender(req *http.Request) (*http.Respo | ||||
| func (client AzureFirewallsClient) ListAllResponder(resp *http.Response) (result AzureFirewallListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -525,6 +526,7 @@ func (client AzureFirewallsClient) UpdateTags(ctx context.Context, resourceGroup | ||||
| 	result, err = client.UpdateTagsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.AzureFirewallsClient", "UpdateTags", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -565,7 +567,6 @@ func (client AzureFirewallsClient) UpdateTagsSender(req *http.Request) (*http.Re | ||||
| func (client AzureFirewallsClient) UpdateTagsResponder(resp *http.Response) (result AzureFirewall, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -51,8 +40,8 @@ func (client BastionHostsClient) CreateOrUpdate(ctx context.Context, resourceGro | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -65,7 +54,7 @@ func (client BastionHostsClient) CreateOrUpdate(ctx context.Context, resourceGro | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -104,7 +93,10 @@ func (client BastionHostsClient) CreateOrUpdateSender(req *http.Request) (future | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -113,7 +105,6 @@ func (client BastionHostsClient) CreateOrUpdateSender(req *http.Request) (future | ||||
| func (client BastionHostsClient) CreateOrUpdateResponder(resp *http.Response) (result BastionHost, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -130,8 +121,8 @@ func (client BastionHostsClient) Delete(ctx context.Context, resourceGroupName s | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -144,7 +135,7 @@ func (client BastionHostsClient) Delete(ctx context.Context, resourceGroupName s | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -180,7 +171,10 @@ func (client BastionHostsClient) DeleteSender(req *http.Request) (future Bastion | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -189,7 +183,6 @@ func (client BastionHostsClient) DeleteSender(req *http.Request) (future Bastion | ||||
| func (client BastionHostsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -227,6 +220,7 @@ func (client BastionHostsClient) Get(ctx context.Context, resourceGroupName stri | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -264,7 +258,6 @@ func (client BastionHostsClient) GetSender(req *http.Request) (*http.Response, e | ||||
| func (client BastionHostsClient) GetResponder(resp *http.Response) (result BastionHost, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -301,6 +294,11 @@ func (client BastionHostsClient) List(ctx context.Context) (result BastionHostLi | ||||
| 	result.bhlr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -336,7 +334,6 @@ func (client BastionHostsClient) ListSender(req *http.Request) (*http.Response, | ||||
| func (client BastionHostsClient) ListResponder(resp *http.Response) (result BastionHostListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -412,6 +409,11 @@ func (client BastionHostsClient) ListByResourceGroup(ctx context.Context, resour | ||||
| 	result.bhlr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.bhlr.hasNextLink() && result.bhlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -448,7 +450,6 @@ func (client BastionHostsClient) ListByResourceGroupSender(req *http.Request) (* | ||||
| func (client BastionHostsClient) ListByResourceGroupResponder(resp *http.Response) (result BastionHostListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -503,8 +504,8 @@ func (client BastionHostsClient) UpdateTags(ctx context.Context, resourceGroupNa | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/BastionHostsClient.UpdateTags") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -517,7 +518,7 @@ func (client BastionHostsClient) UpdateTags(ctx context.Context, resourceGroupNa | ||||
|  | ||||
| 	result, err = client.UpdateTagsSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "UpdateTags", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.BastionHostsClient", "UpdateTags", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -555,7 +556,10 @@ func (client BastionHostsClient) UpdateTagsSender(req *http.Request) (future Bas | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -564,7 +568,6 @@ func (client BastionHostsClient) UpdateTagsSender(req *http.Request) (future Bas | ||||
| func (client BastionHostsClient) UpdateTagsResponder(resp *http.Response) (result BastionHost, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -71,6 +60,11 @@ func (client BgpServiceCommunitiesClient) List(ctx context.Context) (result BgpS | ||||
| 	result.bsclr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.BgpServiceCommunitiesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.bsclr.hasNextLink() && result.bsclr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -106,7 +100,6 @@ func (client BgpServiceCommunitiesClient) ListSender(req *http.Request) (*http.R | ||||
| func (client BgpServiceCommunitiesClient) ListResponder(resp *http.Response) (result BgpServiceCommunityListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -3,19 +3,8 @@ | ||||
| // Network Client | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -87,6 +76,7 @@ func (client BaseClient) CheckDNSNameAvailability(ctx context.Context, location | ||||
| 	result, err = client.CheckDNSNameAvailabilityResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.BaseClient", "CheckDNSNameAvailability", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -124,7 +114,6 @@ func (client BaseClient) CheckDNSNameAvailabilitySender(req *http.Request) (*htt | ||||
| func (client BaseClient) CheckDNSNameAvailabilityResponder(resp *http.Response) (result DNSNameAvailabilityResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -163,6 +152,7 @@ func (client BaseClient) SupportedSecurityProviders(ctx context.Context, resourc | ||||
| 	result, err = client.SupportedSecurityProvidersResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.BaseClient", "SupportedSecurityProviders", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -200,7 +190,6 @@ func (client BaseClient) SupportedSecurityProvidersSender(req *http.Request) (*h | ||||
| func (client BaseClient) SupportedSecurityProvidersResponder(resp *http.Response) (result VirtualWanSecurityProviders, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -54,8 +43,8 @@ func (client ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, resou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -78,7 +67,7 @@ func (client ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, resou | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -117,7 +106,10 @@ func (client ConnectionMonitorsClient) CreateOrUpdateSender(req *http.Request) ( | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -126,7 +118,6 @@ func (client ConnectionMonitorsClient) CreateOrUpdateSender(req *http.Request) ( | ||||
| func (client ConnectionMonitorsClient) CreateOrUpdateResponder(resp *http.Response) (result ConnectionMonitorResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -144,8 +135,8 @@ func (client ConnectionMonitorsClient) Delete(ctx context.Context, resourceGroup | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -158,7 +149,7 @@ func (client ConnectionMonitorsClient) Delete(ctx context.Context, resourceGroup | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -195,7 +186,10 @@ func (client ConnectionMonitorsClient) DeleteSender(req *http.Request) (future C | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -204,7 +198,6 @@ func (client ConnectionMonitorsClient) DeleteSender(req *http.Request) (future C | ||||
| func (client ConnectionMonitorsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -243,6 +236,7 @@ func (client ConnectionMonitorsClient) Get(ctx context.Context, resourceGroupNam | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -281,7 +275,6 @@ func (client ConnectionMonitorsClient) GetSender(req *http.Request) (*http.Respo | ||||
| func (client ConnectionMonitorsClient) GetResponder(resp *http.Response) (result ConnectionMonitorResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -320,6 +313,7 @@ func (client ConnectionMonitorsClient) List(ctx context.Context, resourceGroupNa | ||||
| 	result, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -357,7 +351,6 @@ func (client ConnectionMonitorsClient) ListSender(req *http.Request) (*http.Resp | ||||
| func (client ConnectionMonitorsClient) ListResponder(resp *http.Response) (result ConnectionMonitorListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -375,8 +368,8 @@ func (client ConnectionMonitorsClient) Query(ctx context.Context, resourceGroupN | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Query") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -389,7 +382,7 @@ func (client ConnectionMonitorsClient) Query(ctx context.Context, resourceGroupN | ||||
|  | ||||
| 	result, err = client.QuerySender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Query", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Query", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -426,7 +419,10 @@ func (client ConnectionMonitorsClient) QuerySender(req *http.Request) (future Co | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -435,7 +431,6 @@ func (client ConnectionMonitorsClient) QuerySender(req *http.Request) (future Co | ||||
| func (client ConnectionMonitorsClient) QueryResponder(resp *http.Response) (result ConnectionMonitorQueryResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -453,8 +448,8 @@ func (client ConnectionMonitorsClient) Start(ctx context.Context, resourceGroupN | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Start") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -467,7 +462,7 @@ func (client ConnectionMonitorsClient) Start(ctx context.Context, resourceGroupN | ||||
|  | ||||
| 	result, err = client.StartSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Start", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Start", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -504,7 +499,10 @@ func (client ConnectionMonitorsClient) StartSender(req *http.Request) (future Co | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -513,7 +511,6 @@ func (client ConnectionMonitorsClient) StartSender(req *http.Request) (future Co | ||||
| func (client ConnectionMonitorsClient) StartResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -530,8 +527,8 @@ func (client ConnectionMonitorsClient) Stop(ctx context.Context, resourceGroupNa | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/ConnectionMonitorsClient.Stop") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -544,7 +541,7 @@ func (client ConnectionMonitorsClient) Stop(ctx context.Context, resourceGroupNa | ||||
|  | ||||
| 	result, err = client.StopSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Stop", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "Stop", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -581,7 +578,10 @@ func (client ConnectionMonitorsClient) StopSender(req *http.Request) (future Con | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -590,7 +590,6 @@ func (client ConnectionMonitorsClient) StopSender(req *http.Request) (future Con | ||||
| func (client ConnectionMonitorsClient) StopResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -630,6 +629,7 @@ func (client ConnectionMonitorsClient) UpdateTags(ctx context.Context, resourceG | ||||
| 	result, err = client.UpdateTagsResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsClient", "UpdateTags", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -670,7 +670,6 @@ func (client ConnectionMonitorsClient) UpdateTagsSender(req *http.Request) (*htt | ||||
| func (client ConnectionMonitorsClient) UpdateTagsResponder(resp *http.Response) (result ConnectionMonitorResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -52,8 +41,8 @@ func (client DdosCustomPoliciesClient) CreateOrUpdate(ctx context.Context, resou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DdosCustomPoliciesClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -66,7 +55,7 @@ func (client DdosCustomPoliciesClient) CreateOrUpdate(ctx context.Context, resou | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -105,7 +94,10 @@ func (client DdosCustomPoliciesClient) CreateOrUpdateSender(req *http.Request) ( | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -114,7 +106,6 @@ func (client DdosCustomPoliciesClient) CreateOrUpdateSender(req *http.Request) ( | ||||
| func (client DdosCustomPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DdosCustomPolicy, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -131,8 +122,8 @@ func (client DdosCustomPoliciesClient) Delete(ctx context.Context, resourceGroup | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DdosCustomPoliciesClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -145,7 +136,7 @@ func (client DdosCustomPoliciesClient) Delete(ctx context.Context, resourceGroup | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -181,7 +172,10 @@ func (client DdosCustomPoliciesClient) DeleteSender(req *http.Request) (future D | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -190,7 +184,6 @@ func (client DdosCustomPoliciesClient) DeleteSender(req *http.Request) (future D | ||||
| func (client DdosCustomPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -228,6 +221,7 @@ func (client DdosCustomPoliciesClient) Get(ctx context.Context, resourceGroupNam | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -265,7 +259,6 @@ func (client DdosCustomPoliciesClient) GetSender(req *http.Request) (*http.Respo | ||||
| func (client DdosCustomPoliciesClient) GetResponder(resp *http.Response) (result DdosCustomPolicy, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -283,8 +276,8 @@ func (client DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceG | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DdosCustomPoliciesClient.UpdateTags") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -297,7 +290,7 @@ func (client DdosCustomPoliciesClient) UpdateTags(ctx context.Context, resourceG | ||||
|  | ||||
| 	result, err = client.UpdateTagsSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesClient", "UpdateTags", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -335,7 +328,10 @@ func (client DdosCustomPoliciesClient) UpdateTagsSender(req *http.Request) (futu | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -344,7 +340,6 @@ func (client DdosCustomPoliciesClient) UpdateTagsSender(req *http.Request) (futu | ||||
| func (client DdosCustomPoliciesClient) UpdateTagsResponder(resp *http.Response) (result DdosCustomPolicy, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -52,8 +41,8 @@ func (client DdosProtectionPlansClient) CreateOrUpdate(ctx context.Context, reso | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.CreateOrUpdate") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -66,7 +55,7 @@ func (client DdosProtectionPlansClient) CreateOrUpdate(ctx context.Context, reso | ||||
|  | ||||
| 	result, err = client.CreateOrUpdateSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "CreateOrUpdate", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "CreateOrUpdate", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -108,7 +97,10 @@ func (client DdosProtectionPlansClient) CreateOrUpdateSender(req *http.Request) | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -117,7 +109,6 @@ func (client DdosProtectionPlansClient) CreateOrUpdateSender(req *http.Request) | ||||
| func (client DdosProtectionPlansClient) CreateOrUpdateResponder(resp *http.Response) (result DdosProtectionPlan, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -134,8 +125,8 @@ func (client DdosProtectionPlansClient) Delete(ctx context.Context, resourceGrou | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.Delete") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -148,7 +139,7 @@ func (client DdosProtectionPlansClient) Delete(ctx context.Context, resourceGrou | ||||
|  | ||||
| 	result, err = client.DeleteSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Delete", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Delete", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -184,7 +175,10 @@ func (client DdosProtectionPlansClient) DeleteSender(req *http.Request) (future | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -193,7 +187,6 @@ func (client DdosProtectionPlansClient) DeleteSender(req *http.Request) (future | ||||
| func (client DdosProtectionPlansClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), | ||||
| 		autorest.ByClosing()) | ||||
| 	result.Response = resp | ||||
| @@ -231,6 +224,7 @@ func (client DdosProtectionPlansClient) Get(ctx context.Context, resourceGroupNa | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -268,7 +262,6 @@ func (client DdosProtectionPlansClient) GetSender(req *http.Request) (*http.Resp | ||||
| func (client DdosProtectionPlansClient) GetResponder(resp *http.Response) (result DdosProtectionPlan, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -305,6 +298,11 @@ func (client DdosProtectionPlansClient) List(ctx context.Context) (result DdosPr | ||||
| 	result.dpplr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -340,7 +338,6 @@ func (client DdosProtectionPlansClient) ListSender(req *http.Request) (*http.Res | ||||
| func (client DdosProtectionPlansClient) ListResponder(resp *http.Response) (result DdosProtectionPlanListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -416,6 +413,11 @@ func (client DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, | ||||
| 	result.dpplr, err = client.ListByResourceGroupResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "ListByResourceGroup", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.dpplr.hasNextLink() && result.dpplr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -452,7 +454,6 @@ func (client DdosProtectionPlansClient) ListByResourceGroupSender(req *http.Requ | ||||
| func (client DdosProtectionPlansClient) ListByResourceGroupResponder(resp *http.Response) (result DdosProtectionPlanListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -507,8 +508,8 @@ func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resource | ||||
| 		ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.UpdateTags") | ||||
| 		defer func() { | ||||
| 			sc := -1 | ||||
| 			if result.Response() != nil { | ||||
| 				sc = result.Response().StatusCode | ||||
| 			if result.FutureAPI != nil && result.FutureAPI.Response() != nil { | ||||
| 				sc = result.FutureAPI.Response().StatusCode | ||||
| 			} | ||||
| 			tracing.EndSpan(ctx, sc, err) | ||||
| 		}() | ||||
| @@ -521,7 +522,7 @@ func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resource | ||||
|  | ||||
| 	result, err = client.UpdateTagsSender(req) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", result.Response(), "Failure sending request") | ||||
| 		err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", nil, "Failure sending request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| @@ -559,7 +560,10 @@ func (client DdosProtectionPlansClient) UpdateTagsSender(req *http.Request) (fut | ||||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 	future.Future, err = azure.NewFutureFromResponse(resp) | ||||
| 	var azf azure.Future | ||||
| 	azf, err = azure.NewFutureFromResponse(resp) | ||||
| 	future.FutureAPI = &azf | ||||
| 	future.Result = future.result | ||||
| 	return | ||||
| } | ||||
|  | ||||
| @@ -568,7 +572,6 @@ func (client DdosProtectionPlansClient) UpdateTagsSender(req *http.Request) (fut | ||||
| func (client DdosProtectionPlansClient) UpdateTagsResponder(resp *http.Response) (result DdosProtectionPlan, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
| @@ -1,18 +1,7 @@ | ||||
| package network | ||||
|  | ||||
| // Copyright (c) Microsoft and contributors.  All rights reserved. | ||||
| // | ||||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| // you may not use this file except in compliance with the License. | ||||
| // You may obtain a copy of the License at | ||||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| // | ||||
| // Unless required by applicable law or agreed to in writing, software | ||||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| // | ||||
| // See the License for the specific language governing permissions and | ||||
| // limitations under the License. | ||||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||||
| // | ||||
| // Code generated by Microsoft (R) AutoRest Code Generator. | ||||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||||
| @@ -74,6 +63,7 @@ func (client DefaultSecurityRulesClient) Get(ctx context.Context, resourceGroupN | ||||
| 	result, err = client.GetResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "Get", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -112,7 +102,6 @@ func (client DefaultSecurityRulesClient) GetSender(req *http.Request) (*http.Res | ||||
| func (client DefaultSecurityRulesClient) GetResponder(resp *http.Response) (result SecurityRule, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
| @@ -152,6 +141,11 @@ func (client DefaultSecurityRulesClient) List(ctx context.Context, resourceGroup | ||||
| 	result.srlr, err = client.ListResponder(resp) | ||||
| 	if err != nil { | ||||
| 		err = autorest.NewErrorWithError(err, "network.DefaultSecurityRulesClient", "List", resp, "Failure responding to request") | ||||
| 		return | ||||
| 	} | ||||
| 	if result.srlr.hasNextLink() && result.srlr.IsEmpty() { | ||||
| 		err = result.NextWithContext(ctx) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	return | ||||
| @@ -189,7 +183,6 @@ func (client DefaultSecurityRulesClient) ListSender(req *http.Request) (*http.Re | ||||
| func (client DefaultSecurityRulesClient) ListResponder(resp *http.Response) (result SecurityRuleListResult, err error) { | ||||
| 	err = autorest.Respond( | ||||
| 		resp, | ||||
| 		client.ByInspecting(), | ||||
| 		azure.WithErrorUnlessStatusCode(http.StatusOK), | ||||
| 		autorest.ByUnmarshallingJSON(&result), | ||||
| 		autorest.ByClosing()) | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user
	 Pengfei Ni
					Pengfei Ni