-
Notifications
You must be signed in to change notification settings - Fork 2.2k
mgmt, improve sample code #15763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mgmt, improve sample code #15763
Conversation
| * @throws IllegalStateException unexcepted state | ||
| */ | ||
| public static boolean runSample(AzureResourceManager azureResourceManager, String clientId) throws IOException, KeyStoreException, CertificateException, NoSuchAlgorithmException { | ||
| final String rgName = azureResourceManager.resourceGroups().manager().internalContext().randomResourceName("rg", 24); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hide these to Utils.
| * @param urlString the target URL. | ||
| * @return Content of the HTTP response. | ||
| */ | ||
| public static String sendGetRequest(String urlString) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename it to sendGetRequest.
| * @param body the request body. | ||
| * @return Content of the HTTP response. | ||
| * */ | ||
| public static String sendPostRequest(String urlString, String body) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename it to sendPostRequest.
…nction ready to use
Signed-off-by: Weidong Xu <[email protected]>
[Hub Generated] Public private branch 'raonon-MixedReality-UpdateResourceResponse' (Azure#15763) * Updated response payload to include missing properties * Reverted Identity property * Updated stable/2020_05_01/proxy.json to include missing object properties Co-authored-by: Raymond Ononiwu <[email protected]>
No description provided.