Skip to content
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

Added power state to Hana Instance #3570

Merged
merged 3 commits into from
Aug 2, 2018
Merged

Added power state to Hana Instance #3570

merged 3 commits into from
Aug 2, 2018

Conversation

PakDLiu
Copy link
Contributor

@PakDLiu PakDLiu commented Aug 2, 2018

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Aug 2, 2018

Automation for azure-sdk-for-python

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-python#3070

@AutorestCI
Copy link

AutorestCI commented Aug 2, 2018

Automation for azure-sdk-for-node

Nothing to generate for azure-sdk-for-node

@AutorestCI
Copy link

AutorestCI commented Aug 2, 2018

Automation for azure-sdk-for-ruby

Nothing to generate for azure-sdk-for-ruby

@AutorestCI
Copy link

AutorestCI commented Aug 2, 2018

Automation for azure-sdk-for-java

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-java#2297

@AutorestCI
Copy link

AutorestCI commented Aug 2, 2018

Automation for azure-sdk-for-go

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-go#2386

@@ -220,6 +220,11 @@
"type": "string",
"description": "Resource location"
},
"powerState": {
Copy link
Contributor

@dsgouda dsgouda Aug 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This cannot be a top level resource property. Must be a part of the properties property

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, updated

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check if this is how the service is consuming/returning the resource information

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just updated our API to move the power state. here is a sample:

{
    "id": "/subscriptions/c5c14913-17c5-4bb7-a8d4-5fb40d0a4823/resourceGroups/rg10004/providers/Microsoft.HanaOnAzure/hanaInstances/westusbmiName",
    "name": "westusbmiName",
    "type": "Microsoft.HanaOnAzure/hanaInstances",
    "location": "westus",
    "tags": {
     "owner": "alias4"
    },
    "properties": {
     "hanaInstanceId": "2e30e358-7ceb-42d0-b7f4-cb7e41e1a8bc",
     "powerState": "started",
     "hardwareProfile": {
      "hardwareType": "Cisco_UCS",
      "hanaInstanceSize": "S72"
     },
     "networkProfile": {
      "networkInterfaces": [
       {
        "ipAddress": "123.123.123.123"
       }
      ],
      "circuitId": "/subscriptions/c5c14913-17c5-4bb7-a8d4-5fb40d0a4823/resourceGroups/rg10004/providers/Microsoft.Network/expressRouteCircuits/westusbmiName"
     },
     "storageProfile": {
      "nfsIpAddress": "123.123.123.124"
     },
     "osProfile": {
      "computerName": "westusbmiName",
      "osType": "SLES 12 SP2",
      "version": "12 SP2"
     }
    }
   }

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
As a sidenote, it looks like powerstate could be an enum, you could simply use an x-ms-enum

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

powerstate is an enum now

@dsgouda
Copy link
Contributor

dsgouda commented Aug 2, 2018

LGTM

@dsgouda dsgouda merged commit 90464a8 into Azure:master Aug 2, 2018
mccleanp pushed a commit that referenced this pull request Mar 23, 2022
Co-authored-by: Ben Viglietta <benvi@ntdev.microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants