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

codegen onboard datafactory #1321

Merged
merged 51 commits into from
Jun 23, 2020
Merged

codegen onboard datafactory #1321

merged 51 commits into from
Jun 23, 2020

Conversation

qiaozha
Copy link
Member

@qiaozha qiaozha commented Feb 26, 2020


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

@azuresdkci
Copy link

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:

docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/Azure/azure-cli-extensions.git@autorest-az-datafactory-onboard#subdirectory=src/$EXT&egg=$EXT"

@qiaozha qiaozha changed the title first commit of datafactory codegen onboard datafactory Jun 2, 2020
==========================================

This package is for the 'datafactory' extension.
i.e. 'az datafactory'
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

@qiaozha qiaozha Jun 8, 2020

Choose a reason for hiding this comment

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

This has not been fixed yet, the outdated status is outdated just because I changed the eof mark.

@yonzhan yonzhan requested a review from Juliehzl June 2, 2020 11:26
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 2, 2020

datafactory

examples:
- name: Factories_Get
text: |-
az datafactory factory show --name "exampleFactoryName" --resource-group "exampleResourceGroup"
Copy link
Member

Choose a reason for hiding this comment

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

Recommend to use MyFactoryName and MyResourceGroup to follow the example value pattern.

Copy link
Member Author

Choose a reason for hiding this comment

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

This has not been fixed yet, the outdated status is outdated just because I changed the eof mark.

Copy link
Member Author

Choose a reason for hiding this comment

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

This should've been fixed, please check again. thx

@qiaozha
Copy link
Member Author

qiaozha commented Jun 22, 2020

@fengzhou-msft @Juliehzl All the issues should've been resolved, please go ahead and review it. thx.

KEY_VNET_NIC = 'nic'


class VirtualNetworkPreparer(NoTrafficRecordingPreparer, SingleValueReplacer):
Copy link
Member

Choose a reason for hiding this comment

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

remove this file if not used.

Copy link
Member Author

Choose a reason for hiding this comment

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

@changlong-liu Will the current preparer generation logic generate all type of Preparer no matter it's used or not?

Copy link
Member Author

Choose a reason for hiding this comment

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

removed.

return client.update(resource_group_name=resource_group_name,
factory_name=factory_name,
tags=tags,
identity=json.loads("{\"type\": \"SystemAssigned\"}"))
Copy link
Member

Choose a reason for hiding this comment

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

Would this also work?

Suggested change
identity=json.loads("{\"type\": \"SystemAssigned\"}"))
identity={"type": "SystemAssigned"})

Copy link
Member Author

Choose a reason for hiding this comment

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

Got your point now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed. thx

@qiaozha qiaozha merged commit 456cf12 into master Jun 23, 2020
@qiaozha qiaozha deleted the autorest-az-datafactory-onboard branch June 23, 2020 05:43
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