-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[CDN] Add support for Rules engine feature #11724
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
Closed
Closed
Changes from 5 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
783355f
add rulesEngine support
hytao 1b43539
Fix typo in `KeyVaultMgmtScenarioTest` (#11722)
bim-msft cbacc40
[General][Minor]Update Code Onwers (#11705)
mmyyrroonn fc532b4
[Compute][Feature]az vm create: Support default data source settings …
mmyyrroonn 1c88592
[RecoveryServices Backup]Added disk exclusion Feature for IAASVM (#11…
b1db572
fix typo in authoring_commands.md (#11730)
24c48b3
update codeowner for resource (#11739)
Juliehzl 7afe0b8
Fix the test of test_managedapp (#11727)
zhoxing-ms cece44d
Fix the test of test_resource_policyset (#11723)
zhoxing-ms 7565b12
add libc6-compat in dockerfile (#11742)
fengzhou-msft dfb9b34
Update Cosmos DB python package (#11551)
shurd 594f6a0
[AppConfig] Adding new command 'set-keyvault' to kv subgroup (#11571)
avanigupta 591db0d
Merge hotfix for version color into dev (#11741)
fengzhou-msft 2de9058
[AppConfig] Support Import/Export of features in yaml files (#11637)
avanigupta 71a4ff6
[App Service] Add az webapp up flag for HTML static sites (#11719)
ammanifold 8ded942
udpate
1ebd51a
udpate changelog
a96aad8
update params.py
9152d87
update
c8b028d
[Compute] Feature issue #11203 Add new reapply command action for az …
arrownj 585eb06
Added new parameters for account blob service properties to manage de…
zhoxing-ms 4d684d2
[misc] Add 'az version' (#11680)
jiasli cae1b8f
update
0346d31
Removing ReceiveDisabled status from EventHub and ServiceBus CLI doc …
basilhariri 85f04e7
[RBAC] Return exit code 3 if app or sp doesn't exist (#11725)
jiasli 8213288
update azure-cli version to 2.0.79 (#11762)
dc0e83d
update history
0d0937f
fix params
ca85d63
retry CI
bfbb4b2
add codeonwer for sql (#11777)
Juliehzl 7391ca4
fix: az monitor metric alert create. Fix test failure. (#11776)
mmyyrroonn fd1c960
updating BYOS commands to mark them as preview (#11755)
btardif ad8d70f
Fix: tox can use ADO default Python 2.7 (#11802)
347caa7
python3.8 migration for homebrew (#11803)
fengzhou-msft ab8b7df
[Storage] Support Table and Queue Encryption Service for storage acco…
Juliehzl 7bb6319
update CODEOWNERS (#11814)
Juliehzl bf60878
[Webapp] Adding E2E tests for az webapp up (#11774)
panchagnula ddf6f45
[Doc] Try new features before release (#11784)
qwordy ce44655
Chore: move CredScansuppressions.json to codeownder guarded folder (#…
ec3f1cb
[Compute] disk update: Add --disk-encryption-set and --encryption-typ…
qwordy 16d6ebf
[AKS] Update example help text to reflect change of defaults to Stand…
seanmck cde7498
Upgrade to Azure CLI 2.0.80 (#11826)
ac278b9
Add table output to backup commands (#11764)
bcf9c48
Fix typo in History.rst (#11835)
ankitkumarr 51e26fa
[IoT Central] Add new sku name to iotcentral (#11810)
poanchen d369f9e
[Core] Expose example_provider hook to include AI examples (#10987)
mirdaki 3a40b9f
fix: enabling monitoring for OpenShift managed cluster (#11778)
ganga1980 9629542
Update fedora install troubleshooting doc (#11827)
fengzhou-msft d735dbf
Fix: 'az redis update' operation for RDB/AOF enabled redis caches (#1…
MECHANDR 0b41c91
Chore: disable CredScan job temporary for ADO security concern (#11844)
496f78d
add rulesEngine support
hytao ca4536a
udpate
8a6d577
udpate changelog
55a0994
update params.py
4aac0b4
update
8347cc8
update
487f5df
update history
ddacc2a
fix params
479f362
retry CI
0537052
update
4209ffd
Merge branch 'rulesEngine2' of https://github.com/hytao/azure-cli int…
9cdc78e
add rulesEngine support
hytao 1b6f7f6
udpate
b1efd26
udpate changelog
706b2a0
update params.py
e691ffb
update
150d1ac
update
c3ee609
update history
75a22b5
fix params
7360ba2
retry CI
95be9d7
add rulesEngine support
hytao 25f5404
update
5adaf2f
a
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,7 @@ def get_origin(self, values, option_string): | |
| return deep_created_origin | ||
|
|
||
|
|
||
| # pylint:disable=too-many-statements | ||
| def load_arguments(self, _): | ||
|
|
||
| name_arg_type = CLIArgumentType(options_list=('--name', '-n'), metavar='NAME') | ||
|
|
@@ -82,6 +83,50 @@ def load_arguments(self, _): | |
| c.argument('content_types_to_compress', nargs='+') | ||
| c.argument('profile_name', help=profile_name_help, id_part='name') | ||
|
|
||
| with self.argument_context('cdn endpoint rule') as c: | ||
| c.argument('rule_name', help='Name of the rule.') | ||
| c.argument('order', help='The order of the rule. The order number must start from 0 and consecutive.\ | ||
| Rule with higher order will be applied later.') | ||
| c.argument('match_variable', help='Name of the match condition.') | ||
| c.argument('operator', help='Operator of the match condition.') | ||
| c.argument('selector', help='Selector of the match condition.') | ||
|
||
| c.argument('match_values', help='Match values of the match condition (comma separated).') | ||
| c.argument('transform', arg_type=get_enum_type(['Lowercase', 'Uppercase']), | ||
| help='Transform to apply before matching.') | ||
| c.argument('negate_condition', arg_type=get_three_state_flag(), options_list='--negate-condition', | ||
| help='If true, negates the condition') | ||
| c.argument('action_name', help='Name of the action.') | ||
| c.argument('cache_behavior', arg_type=get_enum_type(['BypassCache', 'Override', 'SetIfMissing']), | ||
| help='Caching behavior for the requests.') | ||
| c.argument('cache_duration', help='The duration for which the content needs to be cached. \ | ||
| Allowed format is [d.]hh:mm:ss.') | ||
| c.argument('header_action', arg_type=get_enum_type(['Append', 'Overwrite', 'Delete']), | ||
| help='Header action for the requests.') | ||
| c.argument('header_name', help='Name of the header to modify.') | ||
| c.argument('header_value', help='Value of the header.') | ||
| c.argument('redirect_type', | ||
| arg_type=get_enum_type(['Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect']), | ||
| help='The redirect type the rule will use when redirecting traffic.') | ||
| c.argument('redirect_protocol', arg_type=get_enum_type(['MatchRequest', 'Http', 'Https']), | ||
| help='Protocol to use for the redirect. Possible values are MatchRequest, Http, Https.') | ||
| c.argument('custom_hostname', help='Host to redirect. \ | ||
| Leave empty to use the incoming host as the destination host.') | ||
| c.argument('custom_path', help='The full path to redirect. Path cannot be empty and must start with /. \ | ||
| Leave empty to use the incoming path as destination path.') | ||
| c.argument('custom_querystring', help='The set of query strings to be placed in the redirect URL. \ | ||
| leave empty to preserve the incoming query string.') | ||
| c.argument('custom_fragment', help='Fragment to add to the redirect URL.') | ||
| c.argument('query_string_behavior', arg_type=get_enum_type(['Include', 'IncludeAll', 'Exclude', 'ExcludeAll']), | ||
| help='Query string behavior for the requests.') | ||
| c.argument('query_parameters', help='Query parameters to include or exclude (comma separated).') | ||
| c.argument('source_pattern', help='A request URI pattern that identifies the type of \ | ||
| requests that may be rewritten.') | ||
| c.argument('destination', help='The destination path to be used in the rewrite.') | ||
| c.argument('preserve_unmatched_path', arg_type=get_three_state_flag(), options_list='--preserve-unmatched-path', | ||
| help='If True, the remaining path after the source \ | ||
| pattern will be appended to the new destination path.') | ||
| c.argument('index', help='The index of the condition/action') | ||
|
|
||
| with self.argument_context('cdn endpoint create') as c: | ||
| c.argument('name', name_arg_type, id_part='name', help='Name of the CDN endpoint.') | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your history is very stale. pls run
git rebase devfor your branch to updateThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have created new PR to fix the versioning issue.