Skip to content

Add swagger spec for "Microsoft.Authorization/denyAssignments"#3987

Merged
hovsepm merged 2 commits intoAzure:masterfrom
kirankulkarni747:master
Sep 26, 2018
Merged

Add swagger spec for "Microsoft.Authorization/denyAssignments"#3987
hovsepm merged 2 commits intoAzure:masterfrom
kirankulkarni747:master

Conversation

@kirankulkarni747
Copy link
Contributor

@kirankulkarni747 kirankulkarni747 commented Sep 22, 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

@AutorestCI
Copy link

AutorestCI commented Sep 22, 2018

Automation for azure-sdk-for-python

Nothing to generate for azure-sdk-for-python

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Sep 22, 2018

Automation for azure-sdk-for-js

Nothing to generate for azure-sdk-for-js

@AutorestCI
Copy link

AutorestCI commented Sep 22, 2018

Automation for azure-sdk-for-ruby

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

@AutorestCI
Copy link

AutorestCI commented Sep 22, 2018

Automation for azure-sdk-for-node

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

@AutorestCI
Copy link

AutorestCI commented Sep 22, 2018

Automation for azure-sdk-for-java

Nothing to generate for azure-sdk-for-java

@AutorestCI
Copy link

AutorestCI commented Sep 22, 2018

Automation for azure-sdk-for-go

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

@hovsepm
Copy link
Contributor

hovsepm commented Sep 24, 2018

@kirankulkarni747 please address model validation errors:

Validating "examples" and "x-ms-examples" in  specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json:
 error: 
operationId: DenyAssignments_ListForResource
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: value/0/properties/principals/principals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition: !<tag:yaml.org,2002:js/undefined> ''
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetDenyAssignmentsForResource.json
 error: 
operationId: DenyAssignments_ListForResource
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: value/0/properties/excludePrincipals/excludePrincipals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition: !<tag:yaml.org,2002:js/undefined> ''
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetDenyAssignmentsForResource.json
 error: 
operationId: DenyAssignments_ListForResourceGroup
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: value/0/properties/principals/principals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition: !<tag:yaml.org,2002:js/undefined> ''
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetDenyAssignmentsForResourceGroup.json
 error: 
operationId: DenyAssignments_ListForResourceGroup
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: value/0/properties/excludePrincipals/excludePrincipals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition: !<tag:yaml.org,2002:js/undefined> ''
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetDenyAssignmentsForResourceGroup.json
 error: 
operationId: DenyAssignments_List
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: value/0/properties/principals/principals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition: !<tag:yaml.org,2002:js/undefined> ''
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetAllDenyAssignments.json
 error: 
operationId: DenyAssignments_List
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: value/0/properties/excludePrincipals/excludePrincipals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition: !<tag:yaml.org,2002:js/undefined> ''
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetAllDenyAssignments.json
 error: 
operationId: DenyAssignments_Get
scenario: GetConfigurations
source: request
responseCode: ALL
severity: 0
errorCode: DOUBLE_FORWARD_SLASHES_IN_URL
errorDetails:
  code: DOUBLE_FORWARD_SLASHES_IN_URL
  id: OAV129
  message: >-
    In operation "DenyAssignments_Get", example for parameter "scope":
    "/subscriptions/subId/resourcegroups/rgname" starts with a forward slash and
    the path template:
    "/{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}"
    contains a forward slash before the parameter starts. This will cause double
    forward slashes  in the request url. Thus making it incorrect. Please
    rectify the example.
  innerErrors: !<tag:yaml.org,2002:js/undefined> ''
 error: 
operationId: DenyAssignments_Get
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: properties/principals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition:
    line: 29
    column: 13
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetDenyAssignmentByNameId.json
 error: 
operationId: DenyAssignments_Get
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: properties/excludePrincipals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition:
    line: 35
    column: 13
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetDenyAssignmentByNameId.json
 error: 
operationId: DenyAssignments_GetById
scenario: GetConfigurations
source: request
responseCode: ALL
severity: 0
errorCode: DOUBLE_FORWARD_SLASHES_IN_URL
errorDetails:
  code: DOUBLE_FORWARD_SLASHES_IN_URL
  id: OAV129
  message: >-
    In operation "DenyAssignments_GetById", example for parameter
    "denyAssignmentId":
    "/subscriptions/subId/resourcegroups/rgname/providers/Microsoft.Authorization/denyAssignments/daId"
    starts with a forward slash and the path template: "/{denyAssignmentId}"
    contains a forward slash before the parameter starts. This will cause double
    forward slashes  in the request url. Thus making it incorrect. Please
    rectify the example.
  innerErrors: !<tag:yaml.org,2002:js/undefined> ''
 error: 
operationId: DenyAssignments_GetById
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: properties/principals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition:
    line: 28
    column: 13
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetDenyAssignmentById.json
 error: 
operationId: DenyAssignments_GetById
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: properties/excludePrincipals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition:
    line: 34
    column: 13
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetDenyAssignmentById.json
 error: 
operationId: DenyAssignments_ListForScope
scenario: GetConfigurations
source: request
responseCode: ALL
severity: 0
errorCode: DOUBLE_FORWARD_SLASHES_IN_URL
errorDetails:
  code: DOUBLE_FORWARD_SLASHES_IN_URL
  id: OAV129
  message: >-
    In operation "DenyAssignments_ListForScope", example for parameter "scope":
    "/subscriptions/subId" starts with a forward slash and the path template:
    "/{scope}/providers/Microsoft.Authorization/denyAssignments" contains a
    forward slash before the parameter starts. This will cause double forward
    slashes  in the request url. Thus making it incorrect. Please rectify the
    example.
  innerErrors: !<tag:yaml.org,2002:js/undefined> ''
 error: 
operationId: DenyAssignments_ListForScope
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: value/0/properties/principals/principals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition: !<tag:yaml.org,2002:js/undefined> ''
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetDenyAssignmentByScope.json
 error: 
operationId: DenyAssignments_ListForScope
scenario: GetConfigurations
source: response
responseCode: '200'
severity: 0
errorCode: OBJECT_ADDITIONAL_PROPERTIES
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - Type
      - Id
  message: 'Additional properties not allowed: Type,Id'
  path: value/0/properties/excludePrincipals/excludePrincipals/0
  title: /definitions/Principal
  description: Deny assignment principal.
  position:
    line: 438
    column: 18
  url: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json
  jsonPosition: !<tag:yaml.org,2002:js/undefined> ''
  jsonUrl: >-
    specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/examples/GetDenyAssignmentByScope.json

@hovsepm hovsepm added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Sep 24, 2018
@hovsepm
Copy link
Contributor

hovsepm commented Sep 24, 2018

@ravbhatnagar please take a look. This PR adds new API version.

Copy link
Contributor

@ryansbenson ryansbenson left a comment

Choose a reason for hiding this comment

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

Reviewed

Copy link
Contributor

@darshanhs90 darshanhs90 left a comment

Choose a reason for hiding this comment

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

:shipit:

@KrisBash KrisBash added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Sep 26, 2018
@hovsepm hovsepm merged commit c0b634d into Azure:master Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants