Skip to content

Make subscription a method parameter#6106

Merged
lmazuel merged 1 commit intoAzure:masterfrom
lmazuel:sub_location_fix
May 24, 2019
Merged

Make subscription a method parameter#6106
lmazuel merged 1 commit intoAzure:masterfrom
lmazuel:sub_location_fix

Conversation

@lmazuel
Copy link
Member

@lmazuel lmazuel commented May 24, 2019

Subscription SDK is a special one where all is about subscription. By convention, operations should take subscription as a method parameter and not a client parameter, since the purpose is to act globally.

This was the case until the rename/cancel were added.

@AutorestCI
Copy link

AutorestCI commented May 24, 2019

Automation for azure-sdk-for-python

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

@AutorestCI
Copy link

AutorestCI commented May 24, 2019

Automation for azure-sdk-for-js

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

@AutorestCI
Copy link

AutorestCI commented May 24, 2019

Automation for azure-sdk-for-ruby

Nothing to generate for azure-sdk-for-ruby

@AutorestCI
Copy link

AutorestCI commented May 24, 2019

Automation for azure-sdk-for-java

Encountered a Subprocess error: (azure-sdk-for-java)

Command: ['/usr/local/bin/autorest', '/tmp/tmp7oiah6kr/rest/specification/subscription/resource-manager/readme.md', '--perform-load=false', '--swagger-to-sdk', '--output-artifact=configuration.json', '--input-file=foo', '--output-folder=/tmp/tmp41w02mc3']
Finished with return code 7
and output:

AutoRest code generation utility [version: 2.0.4283; node: v8.12.0]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Failure:
Error: Unable to start AutoRest Core from /root/.autorest/@microsoft.azure_autorest-core@2.0.4373/node_modules/@microsoft.azure/autorest-core
Error: Unable to start AutoRest Core from /root/.autorest/@microsoft.azure_autorest-core@2.0.4373/node_modules/@microsoft.azure/autorest-core
    at main (/opt/node_modules/autorest/dist/app.js:232:19)
    at <anonymous>

/root/.autorest/@microsoft.azure_autorest-core@2.0.4373/node_modules/@microsoft.azure/autorest-core/dist/app.js:33
    autorest_core_1.Shutdown();
    ^
ReferenceError: autorest_core_1 is not defined
    at process.on (/root/.autorest/@microsoft.azure_autorest-core@2.0.4373/node_modules/@microsoft.azure/autorest-core/dist/app.js:33:5)
    at emitOne (events.js:121:20)
    at process.emit (events.js:211:7)
    at process.emit (/node_modules/source-map-support/source-map-support.js:439:21)
fs.js:612
  return binding.close(fd);
                 ^

Error: EBADF: bad file descriptor, close
    at Object.fs.closeSync (fs.js:612:18)
    at StaticVolumeFile.shutdown (/opt/node_modules/autorest/dist/static-loader.js:352:10)
    at StaticFilesystem.shutdown (/opt/node_modules/autorest/dist/static-loader.js:406:17)
    at process.exit.n [as exit] (/opt/node_modules/autorest/dist/static-loader.js:169:11)
    at printErrorAndExit (/node_modules/source-map-support/source-map-support.js:423:11)
    at process.emit (/node_modules/source-map-support/source-map-support.js:435:16)
    at process._fatalException (bootstrap_node.js:391:26)

@AutorestCI
Copy link

AutorestCI commented May 24, 2019

Automation for azure-sdk-for-go

Nothing to generate for azure-sdk-for-go

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@lmazuel
Copy link
Member Author

lmazuel commented May 24, 2019

Approved by email by Venkatesh

@lmazuel lmazuel merged commit 9e85618 into Azure:master May 24, 2019
@lmazuel lmazuel deleted the sub_location_fix branch May 24, 2019 17:36
mccleanp pushed a commit that referenced this pull request Mar 23, 2022
* Copied existing api version to new folder

* Update version in examples/spec

* Added new API functionality. Gallery CRUD, Images and Image versions.

* Use specific name for example
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