|
15 | 15 | validate_app_insights_parameters, validate_instance_count, validate_java_agent_parameters, |
16 | 16 | validate_jar) |
17 | 17 | from ._validators_enterprise import (validate_config_file_patterns, validate_cpu, validate_memory, |
18 | | - validate_buildpacks_binding_properties, |
19 | | - validate_buildpacks_binding_secrets, only_support_enterprise, |
20 | | - validate_buildpacks_binding_not_exist, validate_buildpacks_binding_exist, |
| 18 | + validate_buildpack_binding_properties, |
| 19 | + validate_buildpack_binding_secrets, only_support_enterprise, |
| 20 | + validate_buildpack_binding_not_exist, validate_buildpack_binding_exist, |
21 | 21 | validate_git_uri, validate_acs_patterns, validate_routes, validate_builder, |
22 | 22 | validate_build_pool_size, validate_builder_resource, validate_builder_create, |
23 | 23 | validate_builder_update) |
@@ -539,34 +539,55 @@ def prepare_logs_argument(c): |
539 | 539 | with self.argument_context(scope) as c: |
540 | 540 | c.argument('name', type=str, help="The builder name.") |
541 | 541 |
|
542 | | - for scope in ['spring-cloud build-service buildpacks-binding create', |
543 | | - 'spring-cloud build-service buildpacks-binding set']: |
| 542 | + # BuildpackBinding in Builder |
| 543 | + for scope in ['spring-cloud build-service builder buildpack-binding create']: |
544 | 544 | with self.argument_context(scope) as c: |
545 | 545 | c.argument('type', |
546 | 546 | arg_type=get_enum_type(v20220101_preview_AppPlatformEnums.BindingType), |
547 | | - help='Required type for buildpacks binding.') |
| 547 | + help='Required type for buildpack binding.') |
548 | 548 | c.argument('properties', |
549 | 549 | help='Non-sensitive properties for launchProperties. Format "key[=value]".', |
550 | 550 | nargs='*', |
551 | | - validator=validate_buildpacks_binding_properties) |
| 551 | + validator=validate_buildpack_binding_properties) |
552 | 552 | c.argument('secrets', |
553 | 553 | help='Sensitive properties for launchProperties. ' |
554 | 554 | 'Once put, it will be encrypted and never return to user. ' |
555 | 555 | 'Format "key[=value]".', |
556 | 556 | nargs='*', |
557 | | - validator=validate_buildpacks_binding_secrets) |
| 557 | + validator=validate_buildpack_binding_secrets) |
| 558 | + c.argument('name', help='Name for buildpack binding.', validator=validate_buildpack_binding_not_exist) |
| 559 | + c.argument('builder_name', help='The name for builder.', default="default") |
| 560 | + c.argument('service', service_name_type, validator=only_support_enterprise) |
| 561 | + |
558 | 562 |
|
559 | | - for scope in ['spring-cloud build-service buildpacks-binding create']: |
| 563 | + for scope in ['spring-cloud build-service builder buildpack-binding set']: |
560 | 564 | with self.argument_context(scope) as c: |
561 | | - c.argument('name', help='Name for buildpacks binding.', validator=validate_buildpacks_binding_not_exist) |
| 565 | + c.argument('type', |
| 566 | + arg_type=get_enum_type(v20220101_preview_AppPlatformEnums.BindingType), |
| 567 | + help='Required type for buildpack binding.') |
| 568 | + c.argument('properties', |
| 569 | + help='Non-sensitive properties for launchProperties. Format "key[=value]".', |
| 570 | + nargs='*', |
| 571 | + validator=validate_buildpack_binding_properties) |
| 572 | + c.argument('secrets', |
| 573 | + help='Sensitive properties for launchProperties. ' |
| 574 | + 'Once put, it will be encrypted and never return to user. ' |
| 575 | + 'Format "key[=value]".', |
| 576 | + nargs='*', |
| 577 | + validator=validate_buildpack_binding_secrets) |
| 578 | + c.argument('name', help='Name for buildpack binding.', validator=validate_buildpack_binding_exist) |
| 579 | + c.argument('builder_name', help='The name for builder.', default="default") |
| 580 | + c.argument('service', service_name_type, validator=only_support_enterprise) |
| 581 | + |
562 | 582 |
|
563 | | - for scope in ['spring-cloud build-service buildpacks-binding set']: |
| 583 | + for scope in ['spring-cloud build-service builder buildpack-binding show', |
| 584 | + 'spring-cloud build-service builder buildpack-binding delete']: |
564 | 585 | with self.argument_context(scope) as c: |
565 | | - c.argument('name', help='Name for buildpacks binding.', validator=validate_buildpacks_binding_exist) |
| 586 | + c.argument('name', help='Name for buildpack binding.', validator=validate_buildpack_binding_exist) |
| 587 | + c.argument('builder_name', help='The name for builder.', default="default") |
| 588 | + c.argument('service', service_name_type, validator=only_support_enterprise) |
566 | 589 |
|
567 | | - for scope in ['spring-cloud build-service buildpacks-binding create', |
568 | | - 'spring-cloud build-service buildpacks-binding set', |
569 | | - 'spring-cloud build-service buildpacks-binding show', |
570 | | - 'spring-cloud build-service buildpacks-binding delete']: |
| 590 | + for scope in ['spring-cloud build-service builder buildpack-binding list']: |
571 | 591 | with self.argument_context(scope) as c: |
| 592 | + c.argument('builder_name', help='The name for builder.', default="default") |
572 | 593 | c.argument('service', service_name_type, validator=only_support_enterprise) |
0 commit comments