@@ -5392,100 +5392,6 @@ def sig_shared_image_version_list(client, location, gallery_unique_name, gallery
5392
5392
return get_page_result (generator , marker , show_next_marker )
5393
5393
5394
5394
5395
- def gallery_application_version_create (client ,
5396
- resource_group_name ,
5397
- gallery_name ,
5398
- gallery_application_name ,
5399
- gallery_application_version_name ,
5400
- location ,
5401
- package_file_link ,
5402
- install_command ,
5403
- remove_command ,
5404
- tags = None ,
5405
- update_command = None ,
5406
- target_regions = None ,
5407
- default_file_link = None ,
5408
- end_of_life_date = None ,
5409
- package_file_name = None ,
5410
- config_file_name = None ,
5411
- exclude_from = None ,
5412
- no_wait = False ):
5413
- gallery_application_version = {}
5414
- gallery_application_version ['publishing_profile' ] = {}
5415
- gallery_application_version ['location' ] = location
5416
- if tags is not None :
5417
- gallery_application_version ['tags' ] = tags
5418
- source = {}
5419
- source ['media_link' ] = package_file_link
5420
- if default_file_link is not None :
5421
- source ['default_configuration_link' ] = default_file_link
5422
- gallery_application_version ['publishing_profile' ]['source' ] = source
5423
- manage_actions = {}
5424
- manage_actions ['install' ] = install_command
5425
- manage_actions ['remove' ] = remove_command
5426
- if update_command is not None :
5427
- manage_actions ['update' ] = update_command
5428
- gallery_application_version ['publishing_profile' ]['manage_actions' ] = manage_actions
5429
- if target_regions is not None :
5430
- gallery_application_version ['publishing_profile' ]['target_regions' ] = target_regions
5431
- if exclude_from is not None :
5432
- gallery_application_version ['publishing_profile' ]['exclude_from_latest' ] = exclude_from
5433
- if end_of_life_date is not None :
5434
- gallery_application_version ['publishing_profile' ]['end_of_life_date' ] = end_of_life_date
5435
- settings = {}
5436
- if package_file_name is not None :
5437
- settings ['package_file_name' ] = package_file_name
5438
- if config_file_name is not None :
5439
- settings ['config_file_name' ] = config_file_name
5440
- if settings :
5441
- gallery_application_version ['publishing_profile' ]['settings' ] = settings
5442
- return sdk_no_wait (no_wait ,
5443
- client .begin_create_or_update ,
5444
- resource_group_name = resource_group_name ,
5445
- gallery_name = gallery_name ,
5446
- gallery_application_name = gallery_application_name ,
5447
- gallery_application_version_name = gallery_application_version_name ,
5448
- gallery_application_version = gallery_application_version )
5449
-
5450
-
5451
- def gallery_application_version_update (client ,
5452
- resource_group_name ,
5453
- gallery_name ,
5454
- gallery_application_name ,
5455
- gallery_application_version_name ,
5456
- location ,
5457
- package_file_link ,
5458
- tags = None ,
5459
- target_regions = None ,
5460
- default_file_link = None ,
5461
- end_of_life_date = None ,
5462
- exclude_from = None ,
5463
- no_wait = False ):
5464
- gallery_application_version = {}
5465
- gallery_application_version ['publishing_profile' ] = {}
5466
- gallery_application_version ['location' ] = location
5467
- if tags is not None :
5468
- gallery_application_version ['tags' ] = tags
5469
- source = {}
5470
- source ['media_link' ] = package_file_link
5471
- if default_file_link is not None :
5472
- source ['default_configuration_link' ] = default_file_link
5473
- gallery_application_version ['publishing_profile' ]['source' ] = source
5474
- if target_regions is not None :
5475
- gallery_application_version ['publishing_profile' ]['target_regions' ] = [target_regions ]
5476
- if exclude_from is not None :
5477
- gallery_application_version ['publishing_profile' ]['exclude_from_latest' ] = exclude_from
5478
- if end_of_life_date is not None :
5479
- gallery_application_version ['publishing_profile' ]['end_of_life_date' ] = end_of_life_date
5480
- return sdk_no_wait (no_wait ,
5481
- client .begin_create_or_update ,
5482
- resource_group_name = resource_group_name ,
5483
- gallery_name = gallery_name ,
5484
- gallery_application_name = gallery_application_name ,
5485
- gallery_application_version_name = gallery_application_version_name ,
5486
- gallery_application_version = gallery_application_version )
5487
-
5488
-
5489
5395
def create_capacity_reservation_group (cmd , client , resource_group_name , capacity_reservation_group_name , location = None ,
5490
5396
tags = None , zones = None , sharing_profile = None ):
5491
5397
CapacityReservationGroup = cmd .get_models ('CapacityReservationGroup' )
0 commit comments