Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
Bump az version (#296)
Browse files Browse the repository at this point in the history
* clear output-folder

* small fix

* change back managed-network

* doc update

* add faq

* add test recordings

* remove the unused code

* bump to 1.3

* clicommon 0.4.6

* change faq
  • Loading branch information
qiaozha authored Apr 9, 2020
1 parent be37498 commit 38fed80
Show file tree
Hide file tree
Showing 24 changed files with 93 additions and 75 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ debug-output-folder: $(output-folder)/_az_debug
az-output-folder: $(output-folder)

use-extension:
"@autorest/python": "5.0.0-dev.20200326.1"
"@autorest/clicommon": "0.4.4"
"@autorest/python": "5.0.0-preview.1-dev.20200406.1"
"@autorest/clicommon": "0.4.6"
#"@autorest/python": "latest"

cli:
Expand Down
4 changes: 2 additions & 2 deletions doc/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Configuration can be put in either *xxx.cli.md* or *xxx.az.md* in *Azure/azure-r
> Example can be found at [here](https://github.com/Azure/azure-rest-api-specs/tree/master/specification/logic/resource-manager)
## What should the output-folder be and what would the clear-output-folder clear
* the output-folder has been changed into <azure-cli-extensions-repo>/src/<extension-name>
* the clear-output-folder would clear everything under <azure-cli-extensions-repo>/src/<extension-name> except the manual folder which is <azure-cli-extensions-repo>/src/<extension-name>/azext_<extension-name>/manual now.
* the output-folder has been changed into <azure-cli-extensions-repo>/src/extension-name
* the clear-output-folder would clear everything under <azure-cli-extensions-repo>/src/extension-name except the manual folder which is <azure-cli-extensions-repo>/src/extension-name/azext_extension_name/manual now.


## How to hide an operation, operationGroup, parameter
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autorest/az",
"version": "1.2.3",
"version": "1.3.0",
"description": "Autorest Azure AZ extension",
"main": "dist/index.js",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/test/scenario-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require('source-map-support').install();

@suite class Process {
async runAz(directory: string, each: string) {
let cmd = `${__dirname}/../../` + "node_modules/.bin/autorest --version=3.0.6253 --az --use=" + `${__dirname}/../../` + " " + directory + "/configuration/readme.md --output-folder=" + directory + "/tmpoutput/src/" + each;
let cmd = `${__dirname}/../../` + "node_modules/.bin/autorest --version=3.0.6271 --az --use=" + `${__dirname}/../../` + " " + directory + "/configuration/readme.md --output-folder=" + directory + "/tmpoutput/src/" + each;
console.log(cmd);
return await new Promise<boolean>((resolve, reject) => {
exec(cmd, function(error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@

__version__ = VERSION
__all__ = ['AttestationManagementClient']

try:
from .patch import patch_sdk
patch_sdk()
except ImportError:
pass
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AttestationManagementClient(object):
:ivar attestation_provider: AttestationProviderOperations operations
:vartype attestation_provider: azure.mgmt.attestation.operations.AttestationProviderOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AttestationManagementClientConfiguration(Configuration):
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ class AttestationManagementClient(object):
:ivar attestation_provider: AttestationProviderOperations operations
:vartype attestation_provider: azure.mgmt.attestation.aio.operations_async.AttestationProviderOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self,
credential: "TokenCredential",
credential: "AsyncTokenCredential",
subscription_id: str,
base_url: Optional[str] = None,
**kwargs: Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ class AttestationManagementClientConfiguration(Configuration):
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
"""

def __init__(
self,
credential: "TokenCredential",
credential: "AsyncTokenCredential",
subscription_id: str,
**kwargs: Any
) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(
):
super(TrackedResource, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
self.location = kwargs.get('location', None)
self.location = kwargs['location']


class AttestationProvider(TrackedResource):
Expand All @@ -112,8 +112,8 @@ class AttestationProvider(TrackedResource):
:type location: str
:param trust_model: Trust model for the attestation service instance.
:type trust_model: str
:param status: Required. Status of attestation service. Possible values include: 'Ready',
'NotReady', 'Error'.
:param status: Required. Status of attestation service. Possible values include: "Ready",
"NotReady", "Error".
:type status: str or ~azure.mgmt.attestation.models.AttestationServiceStatus
:param attest_uri: Gets the uri of attestation service.
:type attest_uri: str
Expand Down Expand Up @@ -144,7 +144,7 @@ def __init__(
):
super(AttestationProvider, self).__init__(**kwargs)
self.trust_model = kwargs.get('trust_model', None)
self.status = kwargs.get('status', None)
self.status = kwargs['status']
self.attest_uri = kwargs.get('attest_uri', None)


Expand Down Expand Up @@ -203,7 +203,7 @@ def __init__(
**kwargs
):
super(AttestationServiceCreationParams, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.location = kwargs['location']
self.tags = kwargs.get('tags', None)
self.attestation_policy = kwargs.get('attestation_policy', None)
self.keys = kwargs.get('keys', None)
Expand Down Expand Up @@ -351,20 +351,20 @@ def __init__(
**kwargs
):
super(JsonWebKey, self).__init__(**kwargs)
self.alg = kwargs.get('alg', None)
self.alg = kwargs['alg']
self.crv = kwargs.get('crv', None)
self.d = kwargs.get('d', None)
self.dp = kwargs.get('dp', None)
self.dq = kwargs.get('dq', None)
self.e = kwargs.get('e', None)
self.k = kwargs.get('k', None)
self.kid = kwargs.get('kid', None)
self.kty = kwargs.get('kty', None)
self.kid = kwargs['kid']
self.kty = kwargs['kty']
self.n = kwargs.get('n', None)
self.p = kwargs.get('p', None)
self.q = kwargs.get('q', None)
self.qi = kwargs.get('qi', None)
self.use = kwargs.get('use', None)
self.use = kwargs['use']
self.x = kwargs.get('x', None)
self.x5_c = kwargs.get('x5_c', None)
self.y = kwargs.get('y', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ class AttestationProvider(TrackedResource):
:type location: str
:param trust_model: Trust model for the attestation service instance.
:type trust_model: str
:param status: Required. Status of attestation service. Possible values include: 'Ready',
'NotReady', 'Error'.
:param status: Required. Status of attestation service. Possible values include: "Ready",
"NotReady", "Error".
:type status: str or ~azure.mgmt.attestation.models.AttestationServiceStatus
:param attest_uri: Gets the uri of attestation service.
:type attest_uri: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@

__version__ = VERSION
__all__ = ['DataFactoryManagementClient']

try:
from .patch import patch_sdk
patch_sdk()
except ImportError:
pass
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class DataFactoryManagementClientConfiguration(Configuration):
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription identifier.
:type subscription_id: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DataFactoryManagementClient(object):
:ivar factory: FactoryOperations operations
:vartype factory: azure.mgmt.datafactory.operations.FactoryOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription identifier.
:type subscription_id: str
:param str base_url: Service URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ class DataFactoryManagementClientConfiguration(Configuration):
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The subscription identifier.
:type subscription_id: str
"""

def __init__(
self,
credential: "TokenCredential",
credential: "AsyncTokenCredential",
subscription_id: str,
**kwargs: Any
) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ class DataFactoryManagementClient(object):
:ivar factory: FactoryOperations operations
:vartype factory: azure.mgmt.datafactory.aio.operations_async.FactoryOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The subscription identifier.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self,
credential: "TokenCredential",
credential: "AsyncTokenCredential",
subscription_id: str,
base_url: Optional[str] = None,
**kwargs: Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def __init__(
**kwargs
):
super(CloudError, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.code = kwargs['code']
self.message = kwargs['message']
self.target = kwargs.get('target', None)
self.details = kwargs.get('details', None)

Expand Down Expand Up @@ -241,10 +241,10 @@ def __init__(
):
super(FactoryRepoConfiguration, self).__init__(**kwargs)
self.type = None
self.account_name = kwargs.get('account_name', None)
self.repository_name = kwargs.get('repository_name', None)
self.collaboration_branch = kwargs.get('collaboration_branch', None)
self.root_folder = kwargs.get('root_folder', None)
self.account_name = kwargs['account_name']
self.repository_name = kwargs['repository_name']
self.collaboration_branch = kwargs['collaboration_branch']
self.root_folder = kwargs['root_folder']
self.last_commit_id = kwargs.get('last_commit_id', None)


Expand Down Expand Up @@ -360,7 +360,7 @@ def __init__(
**kwargs
):
super(FactoryListResponse, self).__init__(**kwargs)
self.value = kwargs.get('value', None)
self.value = kwargs['value']
self.next_link = kwargs.get('next_link', None)


Expand Down Expand Up @@ -459,7 +459,7 @@ def __init__(
):
super(FactoryVstsConfiguration, self).__init__(**kwargs)
self.type = 'FactoryVSTSConfiguration'
self.project_name = kwargs.get('project_name', None)
self.project_name = kwargs['project_name']
self.tenant_id = kwargs.get('tenant_id', None)


Expand Down Expand Up @@ -492,9 +492,9 @@ def __init__(
**kwargs
):
super(GitHubAccessTokenRequest, self).__init__(**kwargs)
self.git_hub_access_code = kwargs.get('git_hub_access_code', None)
self.git_hub_access_code = kwargs['git_hub_access_code']
self.git_hub_client_id = kwargs.get('git_hub_client_id', None)
self.git_hub_access_token_base_url = kwargs.get('git_hub_access_token_base_url', None)
self.git_hub_access_token_base_url = kwargs['git_hub_access_token_base_url']


class GitHubAccessTokenResponse(msrest.serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@

from ._managed_network_management_client import ManagedNetworkManagementClient
__all__ = ['ManagedNetworkManagementClient']

try:
from .patch import patch_sdk
patch_sdk()
except ImportError:
pass
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ManagedNetworkManagementClientConfiguration(Configuration):
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
:type subscription_id: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ManagedNetworkManagementClient(object):
:ivar operation: OperationOperations operations
:vartype operation: managed_network_management_client.operations.OperationOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
:type subscription_id: str
:param str base_url: Service URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ class ManagedNetworkManagementClientConfiguration(Configuration):
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
:type subscription_id: str
"""

def __init__(
self,
credential: "TokenCredential",
credential: "AsyncTokenCredential",
subscription_id: str,
**kwargs: Any
) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ class ManagedNetworkManagementClient(object):
:ivar operation: OperationOperations operations
:vartype operation: managed_network_management_client.aio.operations_async.OperationOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: azure.core.credentials.TokenCredential
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self,
credential: "TokenCredential",
credential: "AsyncTokenCredential",
subscription_id: str,
base_url: Optional[str] = None,
**kwargs: Any
Expand Down
Loading

0 comments on commit 38fed80

Please sign in to comment.