Skip to content

[ARM Batch] use the referenced param for accoutName in account create op#11301

Closed
deyaaeldeen wants to merge 1 commit intoAzure:masterfrom
deyaaeldeen:arm-batch-fix
Closed

[ARM Batch] use the referenced param for accoutName in account create op#11301
deyaaeldeen wants to merge 1 commit intoAzure:masterfrom
deyaaeldeen:arm-batch-fix

Conversation

@deyaaeldeen
Copy link
Member

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

Contribution checklist:

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

  • Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

    • Adding new API(s)
    • Adding a new API version
    • Adding a new service
  • Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

  • If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist

If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in stable version
  • Removing properties in stable version
  • Removing API version(s) in stable version
  • Updating API in stable version with Breaking Change Validation errors
  • Updating API(s) in preview over 1 year

Please follow the link to find more details on PR review process.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Oct 20, 2020

[Staging] Swagger Validation Report

BreakingChange: 1 Errors, 0 Warnings [Detail] [Expand]
Rule Message
1036 - ConstraintChanged The new version has a different 'pattern' value than the previous one.
New: Microsoft.Batch/stable/2020-09-01/BatchManagement.json#L60:9
Old: Microsoft.Batch/stable/2020-09-01/BatchManagement.json#L64:11
️✔️LintDiff [Detail]
 Validation passes for LintDiff. 
️✔️Avocado [Detail]
 Validation passes for Avocado. 
️✔️ModelValidation [Detail]
 Validation passes for ModelValidation. 
️✔️SemanticValidation [Detail]
 Validation passes for SemanticValidation. 
Posted by Swagger Pipeline | How to fix these errors?

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 20, 2020

azure-sdk-for-go

⚠️ warning [Logs] [Expand Details]

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 20, 2020

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 20, 2020

azure-sdk-for-js

️✔️ succeeded [Logs] [Expand Details]
  • ️✔️ Generate from 829aeea with merge commit 0b8de75df97108d06856313830f2268f97aa928f. SDK Automation 13.0.17.20200918.2
  • ️✔️@azure/arm-batch [View full logs]  [Preview SDK Changes]
    Only show 100 items here, please refer to log for details.
    [npmPack] npm WARN deprecated rollup-plugin-node-resolve@5.2.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
    [npmPack] npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    [npmPack] npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    [npmPack] npm notice created a lockfile as package-lock.json. You should commit this file.
    [npmPack] loaded rollup.config.js with warnings
    [npmPack] (!) Unused external imports
    [npmPack] default imported from external module 'rollup' but never used
    [npmPack] 
    [npmPack] ./esm/batchManagementClient.js → ./dist/arm-batch.js...
    [npmPack] created ./dist/arm-batch.js in 483ms
    [npmPack] npm notice 
    [npmPack] npm notice package: @azure/arm-batch@4.0.0
    [npmPack] npm notice === Tarball Contents === 
    [npmPack] npm notice 7.5kB   esm/operations/applicationOperations.js                       
    [npmPack] npm notice 1.7kB   esm/models/applicationOperationsMappers.js                    
    [npmPack] npm notice 8.2kB   esm/operations/applicationPackageOperations.js                
    [npmPack] npm notice 1.8kB   esm/models/applicationPackageOperationsMappers.js             
    [npmPack] npm notice 221.8kB dist/arm-batch.js                                             
    [npmPack] npm notice 80.5kB  dist/arm-batch.min.js                                         
    [npmPack] npm notice 14.4kB  esm/operations/batchAccountOperations.js                      
    [npmPack] npm notice 1.9kB   esm/models/batchAccountOperationsMappers.js                   
    [npmPack] npm notice 2.2kB   esm/batchManagementClient.js                                  
    [npmPack] npm notice 2.6kB   esm/batchManagementClientContext.js                           
    [npmPack] npm notice 12.7kB  esm/operations/certificateOperations.js                       
    [npmPack] npm notice 1.8kB   esm/models/certificateOperationsMappers.js                    
    [npmPack] npm notice 345B    esm/models/index.js                                           
    [npmPack] npm notice 719B    esm/operations/index.js                                       
    [npmPack] npm notice 2.9kB   esm/operations/location.js                                    
    [npmPack] npm notice 485B    esm/models/locationMappers.js                                 
    [npmPack] npm notice 89.9kB  esm/models/mappers.js                                         
    [npmPack] npm notice 2.2kB   esm/operations/operations.js                                  
    [npmPack] npm notice 455B    esm/models/operationsMappers.js                               
    [npmPack] npm notice 5.1kB   esm/models/parameters.js                                      
    [npmPack] npm notice 12.6kB  esm/operations/poolOperations.js                              
    [npmPack] npm notice 1.8kB   esm/models/poolOperationsMappers.js                           
    [npmPack] npm notice 7.7kB   esm/operations/privateEndpointConnectionOperations.js         
    [npmPack] npm notice 1.8kB   esm/models/privateEndpointConnectionOperationsMappers.js      
    [npmPack] npm notice 4.1kB   esm/operations/privateLinkResourceOperations.js               
    [npmPack] npm notice 1.7kB   esm/models/privateLinkResourceOperationsMappers.js            
    [npmPack] npm notice 977B    rollup.config.js                                              
    [npmPack] npm notice 1.6kB   package.json                                                  
    [npmPack] npm notice 457B    tsconfig.json                                                 
    [npmPack] npm notice 3.3kB   esm/operations/applicationOperations.d.ts.map                 
    [npmPack] npm notice 4.3kB   esm/operations/applicationOperations.js.map                   
    [npmPack] npm notice 937B    esm/models/applicationOperationsMappers.d.ts.map              
    [npmPack] npm notice 950B    esm/models/applicationOperationsMappers.js.map                
    [npmPack] npm notice 3.6kB   esm/operations/applicationPackageOperations.d.ts.map          
    [npmPack] npm notice 4.6kB   esm/operations/applicationPackageOperations.js.map            
    [npmPack] npm notice 964B    esm/models/applicationPackageOperationsMappers.d.ts.map       
    [npmPack] npm notice 977B    esm/models/applicationPackageOperationsMappers.js.map         
    [npmPack] npm notice 464.8kB dist/arm-batch.js.map                                         
    [npmPack] npm notice 60.7kB  dist/arm-batch.min.js.map                                     
    [npmPack] npm notice 4.9kB   esm/operations/batchAccountOperations.d.ts.map                
    [npmPack] npm notice 7.7kB   esm/operations/batchAccountOperations.js.map                  
    [npmPack] npm notice 1.0kB   esm/models/batchAccountOperationsMappers.d.ts.map             
    [npmPack] npm notice 1.0kB   esm/models/batchAccountOperationsMappers.js.map               
    [npmPack] npm notice 923B    esm/batchManagementClient.d.ts.map                            
    [npmPack] npm notice 1.2kB   esm/batchManagementClient.js.map                              
    [npmPack] npm notice 509B    esm/batchManagementClientContext.d.ts.map                     
    [npmPack] npm notice 1.4kB   esm/batchManagementClientContext.js.map                       
    [npmPack] npm notice 3.6kB   esm/operations/certificateOperations.d.ts.map                 
    [npmPack] npm notice 6.1kB   esm/operations/certificateOperations.js.map                   
    [npmPack] npm notice 1.0kB   esm/models/certificateOperationsMappers.d.ts.map              
    [npmPack] npm notice 1.0kB   esm/models/certificateOperationsMappers.js.map                
    [npmPack] npm notice 30.4kB  esm/models/index.d.ts.map                                     
    [npmPack] npm notice 319B    esm/operations/index.d.ts.map                                 
    [npmPack] npm notice 126B    esm/models/index.js.map                                       
    [npmPack] npm notice 334B    esm/operations/index.js.map                                   
    [npmPack] npm notice 1.2kB   esm/operations/location.d.ts.map                              
    [npmPack] npm notice 1.7kB   esm/operations/location.js.map                                
    [npmPack] npm notice 214B    esm/models/locationMappers.d.ts.map                           
    [npmPack] npm notice 227B    esm/models/locationMappers.js.map                             
    [npmPack] npm notice 4.7kB   esm/models/mappers.d.ts.map                                   
    [npmPack] npm notice 48.9kB  esm/models/mappers.js.map                                     
    [npmPack] npm notice 1.0kB   esm/operations/operations.d.ts.map                            
    [npmPack] npm notice 1.4kB   esm/operations/operations.js.map                              
    [npmPack] npm notice 215B    esm/models/operationsMappers.d.ts.map                         
    [npmPack] npm notice 228B    esm/models/operationsMappers.js.map                           
    [npmPack] npm notice 1.0kB   esm/models/parameters.d.ts.map                                
    [npmPack] npm notice 3.7kB   esm/models/parameters.js.map                                  
    [npmPack] npm notice 4.0kB   esm/operations/poolOperations.d.ts.map                        
    [npmPack] npm notice 6.7kB   esm/operations/poolOperations.js.map                          
    [npmPack] npm notice 995B    esm/models/poolOperationsMappers.d.ts.map                     
    [npmPack] npm notice 1.0kB   esm/models/poolOperationsMappers.js.map                       
    [npmPack] npm notice 2.2kB   esm/operations/privateEndpointConnectionOperations.d.ts.map   
    [npmPack] npm notice 3.5kB   esm/operations/privateEndpointConnectionOperations.js.map     
    [npmPack] npm notice 978B    esm/models/privateEndpointConnectionOperationsMappers.d.ts.map
    [npmPack] npm notice 991B    esm/models/privateEndpointConnectionOperationsMappers.js.map  
    [npmPack] npm notice 1.7kB   esm/operations/privateLinkResourceOperations.d.ts.map         
    [npmPack] npm notice 2.3kB   esm/operations/privateLinkResourceOperations.js.map           
    [npmPack] npm notice 953B    esm/models/privateLinkResourceOperationsMappers.d.ts.map      
    [npmPack] npm notice 966B    esm/models/privateLinkResourceOperationsMappers.js.map        
    [npmPack] npm notice 3.4kB   README.md                                                     
    [npmPack] npm notice 9.3kB   esm/operations/applicationOperations.d.ts                     
    [npmPack] npm notice 16.3kB  src/operations/applicationOperations.ts                       
    [npmPack] npm notice 1.4kB   esm/models/applicationOperationsMappers.d.ts                  
    [npmPack] npm notice 1.8kB   src/models/applicationOperationsMappers.ts                    
    [npmPack] npm notice 11.2kB  esm/operations/applicationPackageOperations.d.ts              
    [npmPack] npm notice 18.9kB  src/operations/applicationPackageOperations.ts                
    [npmPack] npm notice 1.4kB   esm/models/applicationPackageOperationsMappers.d.ts           

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 20, 2020

Azure CLI Extension Generation

No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 20, 2020

azure-sdk-for-python

- Breaking Change detected in SDK

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from 829aeea with merge commit 0b8de75df97108d06856313830f2268f97aa928f. SDK Automation 13.0.17.20200918.2
  • ⚠️azure-mgmt-batch [View full logs]  [Preview SDK Changes] Breaking Change Detected
    [build_conf] INFO:packaging_tools:Building template azure-mgmt-batch
    [build_conf] INFO:packaging_tools.conf:Skipping default conf since the file exists
    [build_conf] INFO:packaging_tools:Skipping CHANGELOG.md template, since a previous one was found
    [build_conf] INFO:packaging_tools:Template done azure-mgmt-batch
    [build_package] /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
    [build_package]   warnings.warn(msg)
    [build_package] /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
    [build_package]   warnings.warn(msg)
    [breaking_change_setup] Ignoring mock: markers 'python_version <= "2.7"' don't match your environment
    [ChangeLog] Size of delta 0.912% size of original (original: 55785 chars, delta: 509 chars)
    [ChangeLog] **Features**
    [ChangeLog] 
    [ChangeLog]   - Model Pool has a new parameter task_slots_per_node
    [ChangeLog] 
    [ChangeLog] **Breaking changes**
    [ChangeLog] 
    [ChangeLog]   - Model Pool no longer has parameter max_tasks_per_node
    [ChangeLog]   - Model ContainerRegistry no longer has parameter username
    [ChangeLog]   - Model ContainerRegistry has a new required parameter user_name

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 20, 2020

azure-sdk-for-net

️✔️ succeeded [Logs] [Expand Details]

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 20, 2020

azure-sdk-for-python-track2

No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Oct 20, 2020

azure-resource-manager-schemas

️✔️ succeeded [Logs] [Expand Details]
  • ️✔️ Generate from 829aeea with merge commit 0b8de75df97108d06856313830f2268f97aa928f. Schema Automation 13.0.17.20200918.2
    [batch][after_scripts|node] configure: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend
    [batch][after_scripts|node] configure: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend
    [batch][after_scripts|node] configure: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend
    • [after_scripts|node] PostProcessor finished successfully.
      [after_scripts|node]   5778 passing (1m)
      AzureResourceSchema has no registered package commands.

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Oct 20, 2020

    Trenton Generation

    No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

    @xingwu1
    Copy link
    Member

    xingwu1 commented Oct 20, 2020

    I rejected the change. We intended to write the swagger spec this way to correctly reflect service behavior:
    For account creation, we only accept the lower case as account name (in old version, we accepted upper case, but will automatically lower the case when we store the account) to meet ARM requirement.
    But for other account related operations, we will accept both upper and lower cases name (case insensitive) to back compatible with existing Cx codes.

    "minLength": 3,
    "maxLength": 24,
    "description": "A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/."
    "$ref": "#/parameters/AccountNameParameter"
    Copy link
    Member

    Choose a reason for hiding this comment

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

    The account creation will only accept lower case.

    @deyaaeldeen
    Copy link
    Member Author

    I see. Well, let's close this then.

    @deyaaeldeen deyaaeldeen deleted the arm-batch-fix branch October 20, 2020 19:13
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    3 participants